maskEmptyImageDimensions-methods: Apply Masking from Empty Image Dimensions

maskEmptyImageDimensions,antsImage-methodR Documentation

Apply Masking from Empty Image Dimensions

Description

Simple wrapper for replacing indices with a value

Usage

## S4 method for signature '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


muschellij2/extrantsr documentation built on June 3, 2024, 7:04 p.m.