I have trouble understanding the basic usage of SimpleElastix. In the following example, I try to regiser a moving image Im (small square in the center) to a fixed image If (big square in the upper left corner). In the second part, I try to apply the computed transformation to Im using a TransformixImageFilter. The third part does the same using only the deformation field returned by the TransformixImageFilter in the second part.
When I display the resulting images (results pixels = 1, If pixels = 0.5, Im pixels = 0.25), I see that the three result images (deformations of Im) are very close to Im although I would expect them to be close to If.
Does someone have a clue about what I am doing wrong?
Hello,
I have trouble understanding the basic usage of SimpleElastix. In the following example, I try to regiser a moving image Im (small square in the center) to a fixed image If (big square in the upper left corner). In the second part, I try to apply the computed transformation to Im using a TransformixImageFilter. The third part does the same using only the deformation field returned by the TransformixImageFilter in the second part.
When I display the resulting images (results pixels = 1, If pixels = 0.5, Im pixels = 0.25), I see that the three result images (deformations of Im) are very close to Im although I would expect them to be close to If.
Does someone have a clue about what I am doing wrong?
Thank you for your help!