Description Usage Arguments Value Examples
View source: R/face_removal_mask_ants.R
Face Removal Mask using ANTs Registration
1 2 3 4 5 6 7 8 9 10 | face_removal_mask_ants(
file,
template = NULL,
face_mask = NULL,
outfile = NULL,
...,
retimg = FALSE
)
deface_image_ants(file, ...)
|
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 |
... |
additional arguments to pass to
|
retimg |
(logical) return image of class nifti |
An image or filename depending on retimg
1 2 3 4 5 6 7 8 | if (fslr::have_fsl()) {
file = "~/Downloads/sample_T1_input.nii.gz"
if (file.exists(file)) {
mask = face_removal_mask_ants(file = file,
template = NULL, face_mask = NULL)
image = mask_img(file, mask)
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.