powered by
This function will copy a list of d-1 images into a d-dimension target image. This function reverses the operation performed by splitNDImageToList.
splitNDImageToList
mergeListToNDImage(img, imgList)
input image of class antsImage, last dimension will be split
input list to be merged back into dimension d space
output list filled with d-1 volumes of class antsImage
# 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