Registering 2D images using Slicer Elastix

Operating system: Windows 10
Slicer version: 5.0.3
Expected behavior: Completes successfully
Actual behavior: Error during registration


I am trying to register 2 X-ray images using the Slicer Elastix module with preset: generic (all). However the registration fails with the message “Error occurred during actual registration”. I also saw the following messages “Stopping Condition: Error in metric.” and “Description: ITK ERROR: Region ImageRegion (00000042EDDFCCD0)
Dimension: 3
Index: [-9223372036854775808, -9223372036854775808, -9223372036854775808]
Size: [4, 4, 4]
is outside of buffered region ImageRegion (0000019CA452D440)
Dimension: 3
Index: [0, 0, 0]
Size: [11, 11, 4]”.

I wanted to check if Slicer Elastix supports registration of 2D images as is, similar to say the original Elastix or Simple Elastix? Any advice on running this registration successfully will be helpful.

Thank you!

Hello, any suggestions will be greatly helpful, thank you!

Any pointers will be helpful, thank you!

If you want to do 2D registrations you are probably better of using the Elastix or ANTS directly, and not from Slicer.

Slicer treats every dataset, even if it is a single slice as if it is 3D. You can see from the output that there are three dimensions (4,4,4) reported for your data. Even if the registration concludes successfully, this is probably not going to be an ideal result (because every voxel can now move in 3D space as opposed in 2D as they should).