mridefacer: MRI Defacer

Description Usage Arguments Value Note Examples

View source: R/mridefacer.R

Description

MRI Defacer

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

Adapted from https://github.com/mih/mridefacer

Examples

1
2
3
4
5
6
if (have_fsl()) {
file = "~/Downloads/sample_T1_input.nii.gz"
if (file.exists(file)) {
    res = mridefacer(file)
}
}

neuroconductor-devel-releases/fslr documentation built on May 6, 2020, 4:22 p.m.