R/maskEmptyImageDimensions.R
maskEmptyImageDimensions-methods.RdSimple wrapper for replacing indices with a value
# S4 method for antsImage maskEmptyImageDimensions(img, inds, reorient = FALSE, mask.value = 0, ...)
| img | image, nifti object, or array |
|---|---|
| inds | indices of subset from |
| reorient | Should image be reoriented if a filename? |
| mask.value | Value to replace voxels outside the mask. |
| ... | not used |
Object of class nifti or array if nifti
is not supplied
apply_empty_dim is a shorthand for
maskEmptyImageDimensions with all the same arguments.
getEmptyImageDimensions,
dropEmptyImageDimensions