diff --git a/nipype/interfaces/ants/utils.py b/nipype/interfaces/ants/utils.py index 6c3c05e9c4..a158aa83d4 100644 --- a/nipype/interfaces/ants/utils.py +++ b/nipype/interfaces/ants/utils.py @@ -46,6 +46,7 @@ class ImageMathInputSpec(ANTSCommandInputSpec): "GE", "GO", "GC", + "TruncateImageIntensity", mandatory=True, position=3, argstr="%s", @@ -92,6 +93,12 @@ class ImageMath(ANTSCommand, CopyHeaderInterface): ... op2='4').cmdline 'ImageMath 3 structural_maths.nii G structural.nii 4' + >>> ImageMath( + ... op1='structural.nii', + ... operation='TruncateImageIntensity', + ... op2='0.005 0.999 256').cmdline + 'ImageMath 3 structural_maths.nii TruncateImageIntensity structural.nii 0.005 0.999 256' + """ _cmd = "ImageMath"