Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Note

Examples

if (have_fsl()) {
file = "~/Downloads/sample_T1_input.nii.gz"
if (file.exists(file)) {
    res = mridefacer(file)
}
}

fslr

Wrapper Functions for 'FSL' ('FMRIB' Software Library) from Functional MRI of the Brain ('FMRIB')

v2.24.1
GPL-3
Authors
John Muschelli [aut, cre] (<https://orcid.org/0000-0001-6469-1750>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.