I have made successfully made a transform from CBCT to CT with Elastix and now I want to invert this. I have read the manual and followed suggestions in issue #149 which made sure I did not reach inf. I am using the exact same parameter files but have changed the metrid to be DisplacementMagnitudePenalty instead of the original mutual information.
The situation is depicted in this image
The yellow body is the gray body registered to the planning-ct I have delineations of tumours and organs which I need the inverse transform to transfer them to CBCT-space. The brown patches are the original delineations from in ct space transformed with what should have been the inverse transform, but it seems like the affine part is missing as the location is still in the image and not on the CBCT. The call to find the inverse transform is the following:
I have made successfully made a transform from CBCT to CT with Elastix and now I want to invert this. I have read the manual and followed suggestions in issue #149 which made sure I did not reach inf. I am using the exact same parameter files but have changed the metrid to be
DisplacementMagnitudePenalty
instead of the original mutual information.The situation is depicted in this image The yellow body is the gray body registered to the planning-ct I have delineations of tumours and organs which I need the inverse transform to transfer them to CBCT-space. The brown patches are the original delineations from in ct space transformed with what should have been the inverse transform, but it seems like the affine part is missing as the location is still in the image and not on the CBCT. The call to find the inverse transform is the following:
Where Par0003.affine.inverted.txt is:
and Par0003.bs-R6-ug.inverted.txt is:
and the t0 is the transform used to transform the gray image to the yellow image which is aligning with the planning ct almost perfectly.
I am running elastix version: 5.000 on manjaro