@@ -247,7 +247,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec):
247
247
traits .Float ())
248
248
)
249
249
transforms = InputMultiPath (
250
- File (exists = True ), argstr = '%s' , mandatory = True , desc = 'transform files' )
250
+ File (exists = True ), argstr = '%s' , mandatory = True , desc = 'transform files: will be applied in reverse order. For example, the last specified transform will be applied first ' )
251
251
invert_transform_flags = InputMultiPath (traits .Bool ())
252
252
default_value = traits .Float (0.0 , argstr = '--default-value %g' , usedefault = True )
253
253
print_out_composite_warp_file = traits .Bool (False , requires = ["output_image" ],
@@ -274,12 +274,12 @@ class ApplyTransforms(ANTSCommand):
274
274
>>> at.inputs.output_image = 'deformed_moving1.nii'
275
275
>>> at.inputs.interpolation = 'Linear'
276
276
>>> at.inputs.default_value = 0
277
- >>> at.inputs.transforms = ['trans.mat ', 'ants_Warp.nii.gz ']
277
+ >>> at.inputs.transforms = ['ants_Warp.nii.gz ', 'trans.mat ']
278
278
>>> at.inputs.invert_transform_flags = [False, False]
279
279
>>> at.cmdline
280
280
'antsApplyTransforms --default-value 0 --dimensionality 3 --input moving1.nii --interpolation Linear \
281
- --output deformed_moving1.nii --reference-image fixed1.nii --transform [ trans.mat , 0 ] \
282
- --transform [ ants_Warp.nii.gz , 0 ]'
281
+ --output deformed_moving1.nii --reference-image fixed1.nii --transform [ ants_Warp.nii.gz , 0 ] \
282
+ --transform [ trans.mat , 0 ]'
283
283
284
284
>>> at1 = ApplyTransforms()
285
285
>>> at1.inputs.dimension = 3
@@ -289,12 +289,12 @@ class ApplyTransforms(ANTSCommand):
289
289
>>> at1.inputs.interpolation = 'BSpline'
290
290
>>> at1.inputs.interpolation_parameters = (5,)
291
291
>>> at1.inputs.default_value = 0
292
- >>> at1.inputs.transforms = ['trans.mat ', 'ants_Warp.nii.gz ']
292
+ >>> at1.inputs.transforms = ['ants_Warp.nii.gz ', 'trans.mat ']
293
293
>>> at1.inputs.invert_transform_flags = [False, False]
294
294
>>> at1.cmdline
295
295
'antsApplyTransforms --default-value 0 --dimensionality 3 --input moving1.nii --interpolation BSpline[ 5 ] \
296
- --output deformed_moving1.nii --reference-image fixed1.nii --transform [ trans.mat , 0 ] \
297
- --transform [ ants_Warp.nii.gz , 0 ]'
296
+ --output deformed_moving1.nii --reference-image fixed1.nii --transform [ ants_Warp.nii.gz , 0 ] \
297
+ --transform [ trans.mat , 0 ]'
298
298
299
299
300
300
"""
0 commit comments