This function calls mri_mask to mask an image
mri_mask(file, mask, outfile = NULL, retimg = TRUE, opts = "", ...)(character) input filename
(character) mask filename
(character) output filename
(logical) return image of class nifti
(character) additional options to mri_mask
additional arguments passed to fs_cmd.
Character or nifti depending on retimg