View source: R/face_removal_mask_ants.R
face_removal_mask_ants | R Documentation |
Face Removal Mask using ANTs Registration
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
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.