Simple wrapper for replacing indices with a value

# S4 method for antsImage
maskEmptyImageDimensions(img, inds, reorient = FALSE, mask.value = 0, ...)

Arguments

img

image, nifti object, or array

inds

indices of subset from getEmptyImageDimensions or dropEmptyImageDimensions.

reorient

Should image be reoriented if a filename?

mask.value

Value to replace voxels outside the mask.

...

not used

Value

Object of class nifti or array if nifti is not supplied

Note

apply_empty_dim is a shorthand for maskEmptyImageDimensions with all the same arguments.

See also

getEmptyImageDimensions, dropEmptyImageDimensions