Learn R Programming

ANTsR (version 0.7.2.0)

mergeListToNDImage: mergeListToNDImage

Description

This function will copy a list of d-1 images into a d-dimension target image. This function reverses the operation performed by splitNDImageToList.

Usage

mergeListToNDImage(img, imgList)

Arguments

img

input image of class antsImage, last dimension will be split

imgList

input list to be merged back into dimension d space

Value

output list filled with d-1 volumes of class antsImage

Examples

Run this code
# NOT RUN {
my4Dimage = makeImage( c(5,5,5,4), rnorm( 5*5*5*4 ) )
my3Dlist = splitNDImageToList( my4Dimage )
my4DimageR = mergeListToNDImage( my4Dimage, my3Dlist )

# }

Run the code above in your browser using DataLab