merge images into a multiChannel antsImage

mergeChannels(imageList)

Arguments

imageList

a list of antsImage objects to merge

Value

A multiChannel antsImage object

Examples

dims = c(30, 30) n = prod(dims) r <- floor( seq(n) / (n) * 255 ) dim(r) <- dims arr = r r <- as.antsImage(r) g <- r*0 b <- r*0 rgbImage = mergeChannels( list(r,g,b) ) testthat::expect_error(mergeChannels(list(arr, arr)))