Thanks Soren for your reply.
Seems clear to me. I tried, as you suggested, to launch transformix using the transformation from the TransformParameters.txt file of A->B, set the path of the TransformParameters.txt of B->C to the InitialTransformParametersFileName, AND set the dimensions and image properties of C. This works, but I still cannot understand something.
In another application, I use elastix to perform a affine + bspline registration between image D and E (to continue with letters :P). In this situation, I run elastix with two parameters files and I call it like:
elastix -moving D -fixed E -p AfffineParameters.txt -p BSplineParamenters -out out_dir
The registration process generates the two files:
- TransformParameters.0.txt, containing the affine transformation
- TransformParameters.1.txt, containing the parameters of the BSpline to apply the deformation
If we follow the logic we discussed in the first example, the TransformParameters.0.txt would had as InitialTransformation the TransformParameters.1.txt (as the affine is applied first). However, this is not the case ... The InitialTransformation of TransformParameters.1.txt points to the TransformParameters.0.txt, so like the one pointed in the InitialTransformation need to be applied first ... This seems to me the opposite of what you described. I really don't get that ....
Maybe you have some hints to understand that better ?
Thanks a lot!
RaC