split4dnii - Converts 4D or 5D NIFTI-1 files to 3D volumes.
SYNOPSIS
split4dnii -inputfile <file> -outputroot <root>
DESCRIPTION
Splits 4D or 5D NIFTI images into a series of numbered 3D volumes. All header information
from the input volume is copied to the component volumes, except for the following
fields:
dim[0] - set to 3
intent_code - set to NIFTI_INTENT_NONE
intent_name - set to "comp XXXX" where XXXX is the number of the component.
The output file extension will be copied from the input (.nii or .nii.gz).
Optionally, if the input is DWI with an accompanying scheme file, the output can include a CSV file
containing basic gradient information for the 3D volumes.