This is a very specific question so I will give some context:
I’m registering two Images with very different sizes, but the assumption (verified in script) is that the moving image is far smaller and completely contained in the fixed image.
As an initialization step I crop the fixed image around the moving image region to speed up the process and prevent MMI metric errors.
So, at this point I feed the cropped fixed image to the registration method, without success. I must specify that if I write and read the cropped fixed image (as a debug step) the registration is successful.
If I ::Print() the cropped fixed image information the only difference between the written and read back image is that the index is not placed at [0,0,0].
I’m assuming this is the problem, since the origin and all relevant other informations are correct. Do you have any suggestion on why this is happening or if there is a possible solution?
Thanks in advance for your help!