Learn R Programming

fslr (version 1.0)

fslmerge: Merge images using FSL

Description

This function calls fslmerge to merge files on some dimension and either saves the image or returns an object of class nifti

Usage

fslmerge(infiles, direction = c("x", "y", "z", "t", "a"), outfile = NULL,
  retimg = FALSE, reorient = FALSE, intern = TRUE, ...)

Arguments

infiles
(character) input filenames
direction
(character) direction to merge over, x, y, z, t (time), a (auto)
outfile
(character) output filename
retimg
(logical) return image of class nifti
reorient
(logical) If retimg, should file be reoriented when read in? Passed to readNIfTI.
intern
(logical) pass to system
...
additional arguments passed to readNIfTI.

Value

  • character or logical depending on intern