Rdocumentation
powered by
Learn R Programming
fslr (version 1.9.2.1)
mask_img: Mask nifti Image
Description
Takes an image, masks it by
mask
, and returns an object of class
nifti
Usage
mask_img(img, mask, allow.NA = TRUE)
Arguments
img
object of class
nifti
mask
array or object of class
nifti
, same dimensions as img
allow.NA
allow NAs in the mask
Value
Object of class nifti with values outside mask set to 0 if mask is 0 and NA if mask is NA and img if mask == 1