This function calls bet
to extract a brain
from an image, usually for skull stripping.
fsl_bet(..., outfile = tempfile(fileext = ".nii.gz"), retimg = FALSE)fslbet(
infile,
outfile = NULL,
retimg = TRUE,
reorient = FALSE,
intern = FALSE,
opts = "",
betcmd = c("bet2", "bet"),
verbose = TRUE,
...
)
character or logical depending on intern
additional arguments passed to readnii
.
(character) output filename
(logical) return image of class nifti
(character) input filename
(logical) If retimg, should file be reoriented when read in?
Passed to readnii
.
(logical) pass to system
(character) additional options to bet
(character) Use bet
or bet2
function
(logical) print out command before running