1RESAMPLE_IMAGE(1)                User Commands               RESAMPLE_IMAGE(1)
2
3
4

NAME

6       resample_image - resample_image
7

DESCRIPTION

9       usage:  resample_image (--shape|--dim|--reference) [options] input out‐
10       put
11
12       Resample an image to different dimensions.
13
14   positional arguments:
15       input  Input image
16
17       output Output image
18
19   options:
20       -h, --help
21              show this help message and exit
22
23       -i {nearest,linear,cubic}, --interp {nearest,linear,cubic}
24              Interpolation (default: linear)
25
26       -o {centre,corner}, --origin {centre,corner}
27              Resampling origin (default: centre)
28
29       -dt {char,short,int,float,double},  --dtype  {char,short,int,float,dou‐
30       ble}
31              Data type (default: data type of input image)
32
33       -n, --nosmooth
34              Do not smooth image when downsampling
35
36   Resampling destination:
37              Specify  the  resampling destination space using one of the fol‐
38              lowing options. Note that the --reference option will cause  the
39              field-of-view  of  the  input image to be changed to that of the
40              reference image.
41
42       -s X,Y,Z,..., --shape X,Y,Z,...
43              Output shape
44
45       -d X,Y,Z,..., --dim X,Y,Z,...
46              Output voxel dimensions
47
48       -r IMAGE, --reference IMAGE
49              Resample input to the space of  this  reference  image(overrides
50              --origin)
51
52
53
54resample_image 3.13.3              July 2023                 RESAMPLE_IMAGE(1)
Impressum