@@ -189,7 +189,7 @@ def _list_outputs(self):
189
189
return outputs
190
190
191
191
192
- class antsApplyTransformsInputSpec (ANTSCommandInputSpec ):
192
+ class ApplyTransformsInputSpec (ANTSCommandInputSpec ):
193
193
dimension = traits .Enum (3 , 2 , argstr = '--dimensionality %d' , usedefault = True ,
194
194
desc = 'image dimension (2 or 3)' )
195
195
input_image = File (argstr = '--input %s' , mandatory = True ,
@@ -221,18 +221,18 @@ class antsApplyTransformsInputSpec(ANTSCommandInputSpec):
221
221
default_value = traits .Int (argstr = '--default-value %d' , mandatory = True )
222
222
print_out_composite_warp_file = traits .Enum (0 , 1 , requires = ["output_image" ], desc = ('' )) # TODO: Change to boolean
223
223
224
- class antsApplyTransformsOutputSpec (TraitedSpec ):
224
+ class ApplyTransformsOutputSpec (TraitedSpec ):
225
225
output_image = File (exists = True , desc = 'Warped image' )
226
226
227
- class antsApplyTransforms (ANTSCommand ):
228
- """antsApplyTransforms , applied to an input image, transforms it according to a
227
+ class ApplyTransforms (ANTSCommand ):
228
+ """ApplyTransforms , applied to an input image, transforms it according to a
229
229
reference image and a transform (or a set of transforms).
230
230
231
231
Examples
232
232
--------
233
233
234
- >>> from nipype.interfaces.ants import antsApplyTransforms
235
- >>> at = antsApplyTransforms ()
234
+ >>> from nipype.interfaces.ants import ApplyTransforms
235
+ >>> at = ApplyTransforms ()
236
236
>>> at.inputs.dimension = 3
237
237
>>> at.inputs.input_image = 'moving1.nii'
238
238
>>> at.inputs.reference_image = 'fixed1.nii'
@@ -245,8 +245,8 @@ class antsApplyTransforms(ANTSCommand):
245
245
246
246
"""
247
247
_cmd = 'antsApplyTransforms'
248
- input_spec = antsApplyTransformsInputSpec
249
- output_spec = antsApplyTransformsOutputSpec
248
+ input_spec = ApplyTransformsInputSpec
249
+ output_spec = ApplyTransformsOutputSpec
250
250
251
251
def _gen_filename (self , name ):
252
252
if name == 'output_image' :
@@ -283,7 +283,7 @@ def _format_arg(self, opt, spec, val):
283
283
elif opt == 'interpolation' :
284
284
# TODO: handle multilabel, gaussian, and bspline options
285
285
return '--interpolation %s' % self .inputs .interpolation
286
- return super (antsApplyTransforms , self )._format_arg (opt , spec , val )
286
+ return super (ApplyTransforms , self )._format_arg (opt , spec , val )
287
287
288
288
def _list_outputs (self ):
289
289
outputs = self ._outputs ().get ()
0 commit comments