This function splits the dimensionality d input image into a list of images with dimensonality d-1 by slicing the input image along its last dimension.

splitNDImageToList(img)

Arguments

img

input image of class antsImage, last dimension will be split

Value

output list filled with d-1 volumes of class antsImage

Author

Pustina D, Avants B

Examples


my4Dimage <- makeImage(c(5, 5, 5, 4))
my3Dlist <- splitNDImageToList(my4Dimage)