sct_resample

Anisotropic resampling of 3D or 4D data.

usage: sct_resample -i <file> [-f <str>] [-mm <str>] [-vox <str>] [-ref <file>]
                    [-h] [-x {nn,linear,spline}] [-o <file>] [-v <int>]

MANDATORY ARGUMENTS

-i

Image to resample. Can be 3D or 4D. (Cannot be 2D) Example: dwi.nii.gz

METHOD TO SPECIFY NEW SIZE: Please choose only one of the 4 options

-f

Resampling factor in each dimensions (x,y,z). Separate with x. Example: 0.5x0.5x1

For 2x upsampling, set to 2. For 2x downsampling set to 0.5

-mm

New resolution in mm. Separate dimension with x. Example: 0.1x0.1x5

Note: Resampling can only approximate a desired mm resolution, given the limitations of discrete voxel data arrays.

-vox

Resampling size in number of voxels in each dimensions (x,y,z). Separate with x.

-ref

Reference image to resample input image to. The voxel dimensions and affine of the reference image will be used.

OPTIONAL ARGUMENTS

-x

Possible choices: nn, linear, spline

Interpolation method.

Default: “linear”

-o

Output file name. Example: dwi_resampled.nii.gz

-v

Possible choices: 0, 1, 2

Verbosity. 0: Display only errors/warnings, 1: Errors/warnings + info messages, 2: Debug mode

Default: 1