Inverts input_transformation of image A to B to transform_toACPC B to A.
Input attributes:
Parameters: |
|
---|
Output attributes:
Parameters: | output_image – Resliced image as an existing file name |
---|
Example:
>>> reslice = Reslice()
>>> reslice.input_image = '{session}_T1.nii.gz'
>>> reslice.input_transformation = '{session}_T1_toACPC.air'
>>> reslice.output_image_suffix = '_inACPC'
>>> reslice.model = 0 # Nearest-neighbour interpolation
>>> reslice.keep_voxdims = True
>>> reslice.cmdline
'reslice {session}_T1_toACPC.air {session}_T1_inACPC.nii.gz -a {session}_T1.nii.gz -o'
>>> reslice.run()
Generate command line for 8-bit or 16-bit version of AIR depending on input data type
Inverts input_transformation of image A to B to transform_toACPC B to A.
Input attributes:
Parameters: |
|
---|
Output attributes:
Parameters: | output_transform – Output transformation as an existing file name |
---|
Example:
>>> invert = InvertTransformation()
>>> invert.input_transform = '{session}_T1_toACPC.air'
>>> invert.cmdline
'invert_air {session}_T1_toACPC.air {session}_T1_toACPC_inverse.air y'
>>> invert.run()