resample_image - Man Page
Description
usage: resample_image (--shape|--dim|--reference) [options] input output
Resample an image to different dimensions.
positional arguments
- input
Input image
- output
Output image
options
- -h, --help
show this help message and exit
- -i, --interp {nearest,linear,cubic}
Interpolation (default: linear)
- -o, --origin {centre,corner}
Resampling origin (default: centre)
- -dt, --dtype {char,short,int,float,double}
Data type (default: data type of input image)
- -n, --nosmooth
Do not smooth image when downsampling
Resampling destination
Specify the resampling destination space using one of the following options. Note that the --reference option will cause the field-of-view of the input image to be changed to that of the reference image.
- -s, --shape X,Y,Z,...
Output shape
- -d, --dim X,Y,Z,...
Output voxel dimensions
- -r, --reference IMAGE
Resample input to the space of this reference image(overrides --origin)
Info
July 2024 resample_image 3.21.0