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

get_quickshear_mask

Face Removal Mask using "Quickshear Defacing for Neuroimages" (Schimke et al. 2011)


Description

Face Removal Mask using "Quickshear Defacing for Neuroimages" (Schimke et al. 2011)

Usage

get_quickshear_mask(brain_mask, buffer = 10, verbose = TRUE)

quickshear_deface_image(file, brain_mask = NULL, buffer = 10,
  verbose = TRUE, ...)

Arguments

brain_mask

Brain mask image. If NULL, then fslbet will be run

buffer

buffer to add to intercept for face mask equation

verbose

print diagnostic messages

file

input image - same orientation as brain mask

...

additional arguments passed to fslmask

Value

A binary image of the non-face areas

Note

Examples

if (have_fsl()) {
   file = "~/Downloads/sample_T1_input.nii.gz"
   if (file.exists(file)) {
       res = quickshear_deface_image(file)
       brain_mask = fslbet(file) > 0
       mask = get_quickshear_mask(brain_mask)
       image = fslmask(file, mask)
   }
}

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.