combine {EBImage}R Documentation

Combining images

Description

Merges images to create image sequences.

Usage

combine(x, y, ...)

Arguments

x

An Image object, an array, or a list of Image objects and arrays.

y

An Image object or an array.

...

Image objects or arrays.

Details

The function combine uses abind to merge multi-dimensionnal arrays along the dimension depending on the color mode of x. If x is a Grayscale image or an array, image objects are combined along the third dimension, wherease when x is a Color image they are combined along the forth dimension, leaving room on the third dimension for color channels.

Value

An Image object or an array.

Author(s)

Gregoire Pau, Andrzej Oles, 2013

See Also

Image

Examples

  ## combination of color images
  lena = readImage(system.file("images", "lena-color.png", package="EBImage"))
  x = combine(lena, flip(lena), flop(lena))
  if (interactive()) display(x)

  ## Blurred lenas
  x = resize(lena, 128, 128)
  xt = list()
  for (t in seq(0.1, 5, len=9)) xt=c(xt, list(gblur(x, s=t)))
  xt = combine(xt)
  if (interactive()) display(xt, title='Blurred Lenas')

[Package EBImage version 4.4.0 Index]