This function calls fslmerge
to merge files on some dimension
and either saves the image or returns an object of class nifti
fsl_merge(..., outfile = tempfile(fileext = ".nii.gz"), retimg = FALSE)fslmerge(
infiles,
direction = c("x", "y", "z", "t", "a"),
outfile = NULL,
retimg = TRUE,
reorient = FALSE,
intern = FALSE,
verbose = TRUE,
...
)
character or logical depending on intern
additional arguments passed to readnii
.
(character) output filename
(logical) return image of class nifti
(character) input filenames
(character) direction to merge over, x, y, z, t (time), a (auto)
(logical) If retimg, should file be reoriented when read in?
Passed to readnii
.
(logical) pass to system
(logical) print out command before running