This function calls fslswapdim
fsl_swapdim(..., outfile = tempfile(fileext = ".nii.gz"),
retimg = FALSE)fslswapdim(file, outfile = NULL, retimg = TRUE, reorient = FALSE,
intern = FALSE, a = "x", b = "y", c = "z", verbose = TRUE, ...)
additional arguments passed to readnii
.
(character) resultant image name (optional)
(logical) return image of class nifti
(character) image to be manipulated
(logical) If retimg, should file be reoriented when read in?
Passed to readnii
.
(logical) to be passed to system
(character) Option for x domain in fslswapdim
(character) Option for y domain in fslswapdim
(character) Option for z domain in fslswapdim
(logical) print out command before running
If retimg
then object of class nifti. Otherwise,
Result from system command, depends if intern is TRUE or FALSE.