mergeNiftis function

Merge NIfTI Images across specified direction

Merge NIfTI Images across specified direction

This function merges nifti images together in a specified direction.

mergeNiftis(inputPaths, direction = c("x", "y", "z", "t"), outfile = NULL, ncores = 1, ...)

Arguments

  • inputPaths: This is a vector of input filenames (character)
  • direction: This is the direction you want to merge your image over, x, y, z, or t
  • outfile: This is the path and file name to save the Nifti file without the suffix, passed to writeNIfTI
  • ncores: Number of cores to be used for this operation
  • ...: Additional arguments passed to readNIfTI

Returns

Returns a merged NIfTI image