face_removal_mask {fslr} | R Documentation |
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,
dof = 12,
cost = "mutualinfo",
retimg = FALSE
)
deface_image(file, ...)
Arguments
file |
input image |
template |
Template image to register input image to. Set
to |
face_mask |
Mask of image, in same space as |
outfile |
Output file name |
dof |
(numeric) degrees of freedom (default 6 - rigid body) |
cost |
Cost function passed to |
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)
}
}
[Package fslr version 2.25.3 Index]