Replies: 3 comments
-
Hi @amwink, I converted your issue back to discussion. Maybe you could find the following older discussions helpful?
Let us know how it goes. |
Beta Was this translation helpful? Give feedback.
-
Ah thanks (I was trying to copy then delete the discussion but that did not work)! I'm not sure that I understand. So if I have 2 files for a coregistration, let's say Likewise for the standard space mapping, the argument to So if I want to do a coregistration followed by a standard space mapping, using the same logic, then the standard space mapping should have the coregistration as its initial parameters, right? so in The google message seems to suggest that it should be the other way round??? This is the way that I have connected the transforms, based on the manual and how the transforms inside the coregistration and the standard space mapping themselves were connected. |
Beta Was this translation helpful? Give feedback.
-
I have tried both ways now, both using If anyone has a worked example I would be interested to see that, thanks! |
Beta Was this translation helpful? Give feedback.
-
My script 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