@@ -698,20 +698,14 @@ class MRResizeInputSpec(MRTrix3BaseInputSpec):
698
698
(traits .Float , traits .Float , traits .Float ),
699
699
argstr = '-voxel %g,%g,%g' ,
700
700
mandatory = True ,
701
- desc = 'define the new voxel size for the output image. This can be '
702
- 'specified either as a single value to be used for all '
703
- 'dimensions, or as a comma-separated list of the size for each '
704
- 'voxel dimension.' ,
701
+ desc = 'Desired voxel size in mm for the output image' ,
705
702
xor = ['image_size' , 'scale_factor' ],
706
703
)
707
704
scale_factor = traits .Tuple (
708
705
(traits .Float , traits .Float , traits .Float ),
709
706
argstr = '-scale %g,%g,%g' ,
710
707
mandatory = True ,
711
- desc = 'scale the image resolution by the supplied factor. This can be '
712
- 'specified either as a single value to be used for all '
713
- 'dimensions, or as a comma-separated list of scale factors for '
714
- 'each dimension.' ,
708
+ desc = 'Scale factors to rescale the image by in each dimension' ,
715
709
xor = ['image_size' , 'voxel_size' ],
716
710
)
717
711
interpolation = traits .Enum (
@@ -752,9 +746,17 @@ class MRResize(MRTrix3Base):
752
746
>>> import nipype.interfaces.mrtrix3 as mrt
753
747
>>> resize = mrt.MRResize()
754
748
>>> resize.inputs.in_file = 'dwi.mif'
749
+ >>> resize.inputs.image_size = (256, 256, 144)
750
+ >>> resize.cmdline # doctest: +ELLIPSIS
751
+ 'mrresize -interp cubic -size 256,256,144 dwi.mif dwi_resized.mif'
752
+ >>> resize.run() # doctest: +SKIP
755
753
>>> resize.inputs.voxel_size = (1, 1, 1)
756
754
>>> resize.cmdline # doctest: +ELLIPSIS
757
- 'mrresize -voxel 1,1,1 dwi.mif dwi_resized.mif'
755
+ 'mrresize -interp cubic -voxel 1,1,1 dwi.mif dwi_resized.mif'
756
+ >>> resize.run() # doctest: +SKIP
757
+ >>> resize.inputs.scale_factor = (2.0,2.0,2.0)
758
+ >>> resize.cmdline # doctest: +ELLIPSIS
759
+ 'mrresize -interp cubic -scale 2.0,2.0,2.0 dwi.mif dwi_resized.mif'
758
760
>>> resize.run() # doctest: +SKIP
759
761
"""
760
762
0 commit comments