sct_resample¶
A n i s o t r o p i c r e s a m p l i n g o f 3 D o r 4 D d a t a . Anisotropic resampling of 3D or 4D data.
usage: sct_resample -i <file> [-f <str>] [-mm <str>] [-vox <str>] [-ref <file>]
[-x {nn,linear,spline}] [-o <file>] [-h] [-v <int>]
MANDATORY ARGUMENTS¶
- -i
I m a g e t o r e s a m p l e . C a n b e 3 D o r 4 D . ( C a n n o t b e 2 D ) E x a m p l e : ` d w i . n i i . g z ` 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
R e s a m p l i n g f a c t o r i n e a c h d i m e n s i o n s ( x , y , z ) . S e p a r a t e w i t h ` x ` . E x a m p l e : ` 0 . 5 x 0 . 5 x 1 ` Resampling factor in each dimensions (x,y,z). Separate with
x. Example:0.5x0.5x1F o r 2 x u p s a m p l i n g , s e t t o ` 2 ` . F o r 2 x d o w n s a m p l i n g s e t t o ` 0 . 5 ` For 2x upsampling, set to
2. For 2x downsampling set to0.5- -mm
N e w r e s o l u t i o n i n m m . S e p a r a t e d i m e n s i o n w i t h ` x ` . E x a m p l e : ` 0 . 1 x 0 . 1 x 5 ` New resolution in mm. Separate dimension with
x. Example:0.1x0.1x5N o t e : R e s a m p l i n g c a n o n l y a p p r o x i m a t e a d e s i r e d ` m m ` r e s o l u t i o n , g i v e n t h e l i m i t a t i o n s o f d i s c r e t e v o x e l d a t a a r r a y s . Note: Resampling can only approximate a desired
mmresolution, given the limitations of discrete voxel data arrays.- -vox
R e s a m p l i n g s i z e i n n u m b e r o f v o x e l s i n e a c h d i m e n s i o n s ( x , y , z ) . S e p a r a t e w i t h ` x ` . Resampling size in number of voxels in each dimensions (x,y,z). Separate with
x.- -ref
R e f e r e n c e i m a g e t o r e s a m p l e i n p u t i m a g e t o . T h e v o x e l d i m e n s i o n s a n d a f f i n e o f t h e r e f e r e n c e i m a g e w i l l b e u s e d . Reference image to resample input image to. The voxel dimensions and affine of the reference image will be used.
OPTIONAL ARGUMENTS¶
- -x
P o s s i b l e c h o i c e s : n n , l i n e a r , s p l i n e Possible choices: nn, linear, spline
I n t e r p o l a t i o n m e t h o d . Interpolation method.
D e f a u l t : ` ` ‘ l i n e a r ‘ ` ` Default:
'linear'- -o
O u t p u t f i l e n a m e . E x a m p l e : ` d w i _ r e s a m p l e d . n i i . g z ` Output file name. Example:
dwi_resampled.nii.gz
MISC ARGUMENTS¶
- -v
P o s s i b l e c h o i c e s : 0 , 1 , 2 Possible choices: 0, 1, 2
V e r b o s i t y . 0 : D i s p l a y o n l y e r r o r s / w a r n i n g s , 1 : E r r o r s / w a r n i n g s + i n f o m e s s a g e s , 2 : D e b u g m o d e . Verbosity. 0: Display only errors/warnings, 1: Errors/warnings + info messages, 2: Debug mode.
D e f a u l t : ` ` 1 ` ` Default:
1