Page MenuHomePhabricator

mitk::Image::Initialize(vtkImageData* vtkimagedata) incorrect for images with origin != (0,0,0)
Closed, ResolvedPublic

Description

mitk::Image::Initialize(vtkImageData* vtkimagedata) incorrectly initialized the origin of the mitk::Image for origins != (0,0,0)

Event Timeline

To fix this issue add

slicedGeometry->SetOrigin(origin);

after

// re-initialize SlicedGeometry3D

to

mitkImage.cpp in mitk::Image::Initialize(vtkImageData* ...).

Patch for the issue including a test for it.

Patch for the issue including a test for it.

Same as the obsolete one plus includes/testing macros in test.

[SVN revision 24680]
FIX (#4734): corrected mitk::Image::Initialize(vtkImageData*) for vtkImageData with origin != (0,0,0); added test code for this