After creating a rotated 2D image with the ExtractDirectedPlaneImageFilterNew, saving and loading the produced image does not work.
Conceptual Problem: 2D Image format cannot save all the geometry information needed for a 3D orientation in space, because they only have a 2D matrix.
Current behavior: No error message when saving. No error message when loading, it simply does not appear in the datamanager. However in the console, you have some error message that the itk matrix inversion does not work: Example image in different formats here:
t:\temp\Plane p4.mhd
t:\temp\Plane p4.zraw
t:\temp\Plane p4.nrrd
Desired behavior:
- A warning should appear, that geometry information will be lost, saving this file as 2D image. The image should be rotated to fit the z-Plane, so the rotation can be displayed in a 2D image and the 3rd dimension spacing is obsolete. Then it can be saved as in 2D image format
- The user should have the possibility to select a file format which conserves the 3D orientation of the image. Possibility 1) Increase the dimension to 3D, before saving Possibility 2) Create a new Image format, specially for 2D planes in 3D space, specially for MITK