Learn R Programming

fslr (version 2.24.1)

mridefacer: MRI Defacer

Description

MRI Defacer

Usage

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)

Arguments

file

input file image to remove face/ears

...

not used

verbose

print diagnostic messages. If > 1, more verbose

brain_mask

brain mask of file. If NULL, fslbet will be applied

bet_opts

options to pass to fslbet if applied

search_radius

search radius option to pass to flirt

opts

additional options to pass to flirt

template_brain

template brain image, may be NULL

template_brain_weight

template brain weight image, used for registration may be NULL

template_biometric_mask

template biometric mask. Everything that is wanted should be 1, may be NULL

Value

A character filename of the output image

Examples

Run this code
# NOT RUN {
if (have_fsl()) {
file = "~/Downloads/sample_T1_input.nii.gz"
if (file.exists(file)) {
    res = mridefacer(file)
}
}
# }

Run the code above in your browser using DataLab