mergeChannels.Rd
merge images into a multiChannel antsImage
mergeChannels(imageList)
A multiChannel antsImage object
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)))