Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

face_removal_mask

Face Removal Mask


Description

Face Removal Mask

Usage

face_removal_mask(file, template = mni_fname(mm = "1"),
  face_mask = mni_face_fname(mm = "1"), outfile = NULL,
  cost = "mutualinfo", retimg = FALSE)

deface_image(file, ...)

Arguments

file

input image

template

Template image to register input image to. Set to NULL (recommended) if want to use from https://github.com/poldracklab/pydeface. Alternatively, use mni_fname.

face_mask

Mask of image, in same space as template. Set to NULL (recommended) if want to use from https://github.com/poldracklab/pydeface. Alternatively, use mni_face_fname.

outfile

Output

cost

Cost function passed to flirt

retimg

(logical) return image of class nifti

...

not used

Value

An image or filename depending on retimg

Examples

if (have_fsl()) {
   file = "~/Downloads/sample_T1_input.nii.gz"
   if (file.exists(file)) {
       mask = face_removal_mask(file = file,
         template = NULL, face_mask = NULL)
       image = fslmask(file, mask)
   }
}

fslr

Wrapper Functions for 'FSL' ('FMRIB' Software Library) from Functional MRI of the Brain ('FMRIB')

v2.24.1
GPL-3
Authors
John Muschelli [aut, cre] (<https://orcid.org/0000-0001-6469-1750>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.