Hello, everyone!
I am struggling with that error:
itk::ERROR Image(0x55f0ab8f5690): A spacing of 0 is not allowed: Spacing is [0, 0, 0]
The situation is the following:
I am performing a multistage image registration.
First stage is a rigid transform (3DVersorRigidTransform) using the regularStepGradientDiscentOptimizer;
After that I resample the moving image to obtained a rigidly registered image.
That image is used as the input for the deformable stage.
This stage starts ok, but crashes right away with that error message.
I already tested the process with two different optimizers for the deformable stage: LBFGSBOptimizer and LBFGSOptimizer . No success though.
Any clues are welcome.
Thanks,
Leo.