Summary of bug description
Feature request. The possibility should exist to access pixel values using both index coordinates and world coordinates.
Cause of the bug
does not apply
Proposed solution
The method using index coordinates to retrieve pixel values was already in place. For clarity the name is changed to GetPixelValueByIndex. A new method called GetPixelValueByWorldCoordinate is made that converts the world coordinates to index coordinates first.
Affected classes
mitkImage and mitkSliceNavigationController.
How will the bugfix get tested?
Manually selecting some points in an image (in mitk) and using the corresponding index coordinates and world coordinates check if the new methods work correctly (done already).
Write a test (extension to mitkImageTest) that loads an image containing a nonidentity orientation and a request for a pixel value with a point in index coordinates and one using a point in world coordinates. A check should verify whether the returned gray value is correct.
