Skip to content

Commit 1e0831c

Browse files
committed
ConvertLTA can export to ITK-format
1 parent 32e724c commit 1e0831c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3110,6 +3110,8 @@ class LTAConvertInputSpec(CommandLineInputSpec):
31103110
desc='output transform in MNI/XFM format')
31113111
out_reg = traits.Either(traits.Bool, File, argstr='--outreg %s',
31123112
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')
31133115
# Optional flags
31143116
invert = traits.Bool(argstr='--invert')
31153117
ltavox2vox = traits.Bool(argstr='--ltavox2vox', requires=['out_lta'])
@@ -3124,6 +3126,7 @@ class LTAConvertOutputSpec(TraitedSpec):
31243126
out_fsl = File(exists=True, desc='output transform in FSL format')
31253127
out_mni = File(exists=True, desc='output transform in MNI/XFM format')
31263128
out_reg = File(exists=True, desc='output transform in reg dat format')
3129+
out_itk = File(exists=True, desc='output transform in ITK format')
31273130

31283131

31293132
class LTAConvert(CommandLine):
@@ -3146,7 +3149,8 @@ def _format_arg(self, name, spec, value):
31463149
def _list_outputs(self):
31473150
outputs = self.output_spec().get()
31483151
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')):
31503154
attr = getattr(self.inputs, name)
31513155
if attr:
31523156
fname = default if attr is True else attr

0 commit comments

Comments
 (0)