Learn R Programming

ANTsR (version 0.4.0)

mergeChannels: merge images into a multiChannel antsImage

Description

merge images into a multiChannel antsImage

Usage

mergeChannels(imageList)

Arguments

imageList

a list of antsImage objects to merge

Value

A multiChannel antsImage object

Examples

Run this code
# NOT RUN {
 r <- floor( seq(1:(64*64)) / (64*64) * 255 )
 dim(r) <- c(64,64)
 r <- as.antsImage(r)
 g <- r*0
 b <- r*0
 rgbImage = mergeChannels( list(r,g,b) )

# }

Run the code above in your browser using DataLab