interfaces.elastix.utils¶
EditTransform¶
Manipulates an existing transform file generated with elastix
Example¶
>>> from nipype.interfaces.elastix import EditTransform
>>> tfm = EditTransform()
>>> tfm.inputs.transform_file = 'TransformParameters.0.txt'
>>> tfm.inputs.reference_image = 'fixed1.nii'
>>> tfm.inputs.output_type = 'unsigned char'
>>> tfm.run()
Inputs:
[Mandatory]
transform_file: (an existing file name)
transform-parameter file, only 1
[Optional]
ignore_exception: (a boolean, nipype default value: False)
Print an error message instead of throwing an exception in case the
interface fails to run
interpolation: (u'cubic' or u'linear' or u'nearest', nipype default
value: cubic)
set a new interpolator for transformation
flag: FinalBSplineInterpolationOrder
output_file: (a file name)
the filename for the resulting transform file
output_format: (u'nii.gz' or u'nii' or u'mhd' or u'hdr' or u'vtk')
set a new image format for resampled images
flag: ResultImageFormat
output_type: (u'float' or u'unsigned char' or u'unsigned short' or
u'short' or u'unsigned long' or u'long' or u'double')
set a new output pixel type for resampled images
flag: ResultImagePixelType
reference_image: (an existing file name)
set a new reference image to change the target coordinate system.
Outputs:
output_file: (an existing file name)
output transform file