@@ -3110,6 +3110,8 @@ class LTAConvertInputSpec(CommandLineInputSpec):
3110
3110
desc = 'output transform in MNI/XFM format' )
3111
3111
out_reg = traits .Either (traits .Bool , File , argstr = '--outreg %s' ,
3112
3112
desc = 'output transform in reg dat format' )
3113
+ out_itk = traits .Either (traits .Bool , File , argstr = '--outitk %s' ,
3114
+ desc = 'output transform in ITK format' )
3113
3115
# Optional flags
3114
3116
invert = traits .Bool (argstr = '--invert' )
3115
3117
ltavox2vox = traits .Bool (argstr = '--ltavox2vox' , requires = ['out_lta' ])
@@ -3124,6 +3126,7 @@ class LTAConvertOutputSpec(TraitedSpec):
3124
3126
out_fsl = File (exists = True , desc = 'output transform in FSL format' )
3125
3127
out_mni = File (exists = True , desc = 'output transform in MNI/XFM format' )
3126
3128
out_reg = File (exists = True , desc = 'output transform in reg dat format' )
3129
+ out_itk = File (exists = True , desc = 'output transform in ITK format' )
3127
3130
3128
3131
3129
3132
class LTAConvert (CommandLine ):
@@ -3146,7 +3149,8 @@ def _format_arg(self, name, spec, value):
3146
3149
def _list_outputs (self ):
3147
3150
outputs = self .output_spec ().get ()
3148
3151
for name , default in (('out_lta' , 'out.lta' ), ('out_fsl' , 'out.mat' ),
3149
- ('out_mni' , 'out.xfm' ), ('out_reg' , 'out.dat' )):
3152
+ ('out_mni' , 'out.xfm' ), ('out_reg' , 'out.dat' ),
3153
+ ('out_itk' , 'out.txt' )):
3150
3154
attr = getattr (self .inputs , name )
3151
3155
if attr :
3152
3156
fname = default if attr is True else attr
0 commit comments