RNotes | EBImage


library(EBImage)

combine merges images to create image sequences.

The function combine merges multi-dimensional arrays along the dimension depending on the color mode of image x, which is the first image specified. If x is a Grayscale image or an array, image objects are combined along the third dimension, whereas when x is a Color image they are combined along the forth dimension, leaving room on the third dimension for color channels. [from ?combine help]

Combination of color images

Image, Flip, Flop

img <- readImage(system.file("images", "sample-color.png", package="EBImage"))[257:768,,]
x <- combine(img, flip(img), flop(img))
display(x, all=TRUE)