ITKElastix icon indicating copy to clipboard operation
ITKElastix copied to clipboard

Connect to project MONAI

Open mstaring opened this issue 3 years ago • 4 comments

Investigate the connection with project MONAI

mstaring avatar May 11 '21 14:05 mstaring

Just to note this here. This issue is directly linked to this one (https://github.com/InsightSoftwareConsortium/ITKElastix/issues/145) since this tries to use ITKs registration via MONAI.

I currently suspect the following issues to exist:

  • Orientation
    • ITK uses LPS orientation for images and transforms
    • Monai/Nibabel uses RAS orientation for images and transforms
  • Center of Rotation
    • ITK provides the used center of rotation
    • Monai implicitly assumes the center of rotation to be the center of the image
  • World space vs. Index space.
    • All transforms and points from ITK are in world space.
    • Monai seems to operate directly on the image.
  • (0, 0, 0) Corner - ITK and Monai seem to use the opposit corner for coordinates - e.g. in a 4x4x4 image, position (0, 0, 0) in ITK is position (3, 3, 3) in Monai.

This is also tracked via this SO question: https://stackoverflow.com/questions/71529039/how-to-factor-the-itk-centerofrotationpoint-in-a-affine-transformation-matrix

Spenhouet avatar Mar 23 '22 18:03 Spenhouet

@aylward @hjmjohnson

thewtex avatar Apr 05 '22 03:04 thewtex

Here is a proposal to improve transforms in MONAI: https://drive.google.com/file/d/1odXYUpQeoaMpjqzkeLnQK64eYRfd01YB/view

A good point of contact at MONAI is Wenqi Li [email protected]

aylward avatar Apr 05 '22 13:04 aylward

Once Elastix has more complete itk::Transform support (in memory Python interface support via itk-elastix), this package will enable an elegant interface with MONAI: https://github.com/InsightSoftwareConsortium/itk-torch-transform-bridge

thewtex avatar Apr 29 '22 22:04 thewtex