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,
...
)
... | additional arguments passed to |
---|---|
outfile | (character) output filename |
retimg | (logical) return image of class nifti |
infile | (character) input filename |
reorient | (logical) If retimg, should file be reoriented when read in?
Passed to |
intern | (logical) pass to |
opts | (character) additional options to |
betcmd | (character) Use |
verbose | (logical) print out command before running |
character or logical depending on intern
Functions with underscores have different defaults and will return an output filename, so to be used for piping