Simple wrapper for subsetting an image with indices, dropping empty dimensions.

# S4 method for antsImage
applyEmptyImageDimensions(img, inds, reorient = FALSE, ...)

Arguments

img

image, nifti object, or array

inds

indices of subset from getEmptyImageDimensions or dropEmptyImageDimensions.

reorient

Should image be reoriented if a filename

...

not used

Value

Object of class nifti or array if nifti is not supplied