mergeListToNDImage: mergeListToNDImage

Description Usage Arguments Value Author(s) Examples

View source: R/splitNDImageToList.R

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

1
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

Author(s)

Pustina D, Avants B

Examples

1
2
3
my4Dimage = makeImage( c(5,5,5,4), rnorm( 5*5*5*4 ) )
my3Dlist = splitNDImageToList( my4Dimage )
my4DimageR = mergeListToNDImage( my4Dimage, my3Dlist )

neuroconductor-devel/ANTsR documentation built on April 1, 2021, 1:02 p.m.