MRI Defacer
mridefacer(file, ..., verbose = TRUE)
get_mridefacer_mask(
file,
brain_mask = NULL,
bet_opts = "-f 0.5",
search_radius = 90,
opts = NULL,
template_brain = NULL,
template_brain_weight = NULL,
template_biometric_mask = NULL,
verbose = TRUE
)
input file image to remove face/ears
not used
print diagnostic messages. If > 1
, more verbose
brain mask of file. If NULL
, fslbet
will be applied
options to pass to fslbet
if applied
search radius option to pass to flirt
additional options to pass to flirt
template brain image, may be NULL
template brain weight image, used
for registration may be NULL
template biometric mask. Everything that
is wanted should be 1
, may be NULL
A character filename of the output image
Adapted from https://github.com/mih/mridefacer
if (have_fsl()) {
file = "~/Downloads/sample_T1_input.nii.gz"
if (file.exists(file)) {
res = mridefacer(file)
}
}