Page MenuHomePhabricator

Saving / Loading Images might alter geometry
Closed, DuplicatePublic

Description

Our supported file formats handle geometries differently. When saving an image, geometry information might be lost. e.g. Sometimes the format does not save the rotation. In the case of geometry information loss, a warning should be displayed. For each format we need to check if it supports saving of the following information:

  • Spacing (x,y,z,t?)
  • Origin (x,y,z)
  • Rotation (2x2 Matrix for 2D and 3x3 Matrix for 3D)

ATTENTION: You can load a 2D image in MITK, then rotate it in a way, that can only be expressed with a 3x3 matrix! In that case you might consider to change the image to a 3D image with a single slice to prevent geometry information loss.

Some of the work might be done in T8509 which is about casting from mitk to itk and back without geometry loss.