Learn R Programming

voxel (version 1.3.5)

mergeNiftis: Merge NIfTI Images across specified direction

Description

This function merges nifti images together in a specified direction.

Usage

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

Value

Returns a merged NIfTI image