This function calls fsl command passed to func
fslcmd(
func,
file,
outfile = NULL,
retimg = TRUE,
reorient = FALSE,
intern = FALSE,
opts = "",
verbose = TRUE,
samefile = FALSE,
opts_after_outfile = FALSE,
frontopts = "",
no.outfile = FALSE,
trim_front = FALSE,
run = TRUE,
...
)
If retimg
then object of class nifti. Otherwise,
Result from system command, depends if intern is TRUE or FALSE.
(character) FSL function
(character) image to be manipulated
(character) resultant image name (optional)
(logical) return image of class nifti
(logical) If retimg, should file be reoriented when read in?
Passed to readnii
.
(logical) to be passed to system
(character) operations to be passed to func
(logical) print out command before running
(logical) is the output the same file?
(logical) should opts
come after
the outfile
in the FSL command?
(character) options/character to put in before filename
(logical) is there an output file in the arguments of the FSL function?
trim the whitespace from the front of the command.
(logical) Should the command just be printed (if FALSE
)?
additional arguments passed to readnii
.