Skip to content

Commit 07f63ce

Browse files
committed
enh: updated antsApplyTransforms to accept input image type
1 parent 18ec6d3 commit 07f63ce

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

nipype/interfaces/ants/resampling.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,16 @@ def _list_outputs(self):
208208

209209

210210
class ApplyTransformsInputSpec(ANTSCommandInputSpec):
211-
dimension = traits.Enum(
212-
3, 2, argstr='--dimensionality %d', usedefault=True,
213-
desc='image dimension (2 or 3)')
211+
dimension = traits.Enum(2, 3, 4, argstr='--dimensionality %d',
212+
desc=('This option forces the image to be treated '
213+
'as a specified-dimensional image. If not '
214+
'specified, antsWarp tries to infer the '
215+
'dimensionality from the input image.'))
216+
input_image_type = traits.Enum(0, 1, 2, 3,
217+
argstr='--input-image-type %d',
218+
desc=('Option specifying the input image '
219+
'type of scalar (default), vector, '
220+
'tensor, or time series.'))
214221
input_image = File(argstr='--input %s', mandatory=True,
215222
desc=('image to apply transformation to (generally a '
216223
'coregistered functional)'),

0 commit comments

Comments
 (0)