You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I have a question about combining multiple TransformParameters files into 1 operation.
The script that I have cycles over a number of subjects, all of whom have a PET image and an MR scan, each in their own space. Every PET needs to be registered to the MR, the MR to an MNI template, and then the PET to MNI via the MR.
to register PET to MR and MR to MNI (the transformix calls are not strictly necessary but will be used later), both of which work as expected.
My cunning plan to warp the PET to MNI in 1 go was to change the line (InitialTransformParametersFileName "NoInitialTransform") in the MR rigid transform parameter file to (InitialTransformParametersFileName "${PET_OUTPUT_DIR}/TransformParameters.1.txt") as explained in section 4.3 of the manual, so the initial parameters of the transform to warp the MR to MNI are now the final parameters for registering the PET to the MR.
However, when I do that and apply the resulting transform to the PET:
the result is correctly registered to the MNI space.
Am I forgetting something for combining the two sets of TransformParameters.txt files?
Or could the problem be that using TransformParameters.1.txt from the PET-to-MR registration (affine) as an initial transform in TransformParameters.0.txt from the MR-to-MNI registration (rigid) discards a number of parameters?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, I have a question about combining multiple TransformParameters files into 1 operation.
The script that I have cycles over a number of subjects, all of whom have a PET image and an MR scan, each in their own space. Every PET needs to be registered to the MR, the MR to an MNI template, and then the PET to MNI via the MR.
So given
and
I first do
and
to register PET to MR and MR to MNI (the transformix calls are not strictly necessary but will be used later), both of which work as expected.
My cunning plan to warp the PET to MNI in 1 go was to change the line
(InitialTransformParametersFileName "NoInitialTransform")
in the MR rigid transform parameter file to(InitialTransformParametersFileName "${PET_OUTPUT_DIR}/TransformParameters.1.txt")
as explained in section 4.3 of the manual, so the initial parameters of the transform to warp the MR to MNI are now the final parameters for registering the PET to the MR.However, when I do that and apply the resulting transform to the PET:
the resulting is not registered correctly to the MNI template.
However, if instead I keep the MR transform parameters intact and apply them to the PET that was resampled in the MR space,
the result is correctly registered to the MNI space.
Am I forgetting something for combining the two sets of
TransformParameters.txt
files?Or could the problem be that using
TransformParameters.1.txt
from the PET-to-MR registration (affine) as an initial transform inTransformParameters.0.txt
from the MR-to-MNI registration (rigid) discards a number of parameters?Beta Was this translation helpful? Give feedback.
All reactions