I’m trying to register two volumes using the AntsRegistration plugin. I’ve had no issues when using the Rigid and Affine+Rigid modes in ANTs. However, I consistently encounter an error when attempting to use QuickSyN. The error message is as follows:
"
WARNING: In C:\D\P\S-0-build\ITK\Modules\Core\Common\include\itkImageBase.hxx, line 87
Image (000001CB03ED4C70): Negative spacing is not supported and may result in undefined behavior.
Proceeding to set spacing to [-inf, 0.0358951]
C:\D\P\S-0-build\ITK\Modules\ThirdParty\VNL\src\vxl\core\vnl/algo/vnl_svd.hxx: suspicious return value (2) from SVDC
C:\D\P\S-0-build\ITK\Modules\ThirdParty\VNL\src\vxl\core\vnl/algo/vnl_svd.hxx: M is 2x2
M = [ …
-inf 0
-nan(ind) 0.0358951193547 ]
"
I’ve spent a considerable amount of time trying to resolve this, including adjusting convergence parameters and shrink factor parameters, but I haven’t been able to get past it. I suspect I might be doing something incorrectly, but I’m completely stuck.
What are the spacing of your input images (both reference and moving)? The error is related to a nonsensical spacing. Also I am also seeing two dimensions? Are these 2D images you are trying to register?
Given that these looks like 2D images, you will probably better of trying to run the registration directly from ANTs (e.g., ANTsPy), instead of Slicer. I don’t think if anybody tested antsRegistration implementation in Slicer with 2D data (since we all work with 3D).