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' # doctest: +SKIP
>>> tfm.inputs.reference_image = 'fixed1.nii' # doctest: +SKIP
>>> tfm.inputs.output_type = 'unsigned char'
>>> tfm.run() # doctest: +SKIP
Inputs:
[Mandatory]
transform_file: (a pathlike object or string representing an existing
file)
transform-parameter file, only 1
[Optional]
reference_image: (a pathlike object or string representing an
existing file)
set a new reference image to change the target coordinate system.
interpolation: ('cubic' or 'linear' or 'nearest', nipype default
value: cubic)
set a new interpolator for transformation
argument: ``FinalBSplineInterpolationOrder``
output_type: ('float' or 'unsigned char' or 'unsigned short' or
'short' or 'unsigned long' or 'long' or 'double')
set a new output pixel type for resampled images
argument: ``ResultImagePixelType``
output_format: ('nii.gz' or 'nii' or 'mhd' or 'hdr' or 'vtk')
set a new image format for resampled images
argument: ``ResultImageFormat``
output_file: (a pathlike object or string representing a file)
the filename for the resulting transform file
Outputs:
output_file: (a pathlike object or string representing an existing
file)
output transform file