Page MenuHomePhabricator

Make 2D Geometries coordinate systems consistent with 3D
Closed, ResolvedPublic

Description

2D Geometries use center based index coordinates. This is not consistant with 3D, which use corner-based geometries.
Detailed discussion can be found in #2401.

Since no one uses (discrete) 2D index coordinates, this is not 3M3 relevant.
Changing may also cause some trouble with rendering.

Event Timeline

Added change request. Requesting core mod.

Should maybe be more discussed in MITK meeting. (RFD)

As I remember yesterday's discussion, your fix should wait until after 3M, because it might cause unexpected side effects (correct me if I'm wrong). I'm removing the needs_core_modification flag for now so that I get notified when it is requested again for comitting.

Trying to fix this today.
-> Requesting core mod again.

Telephone call with Tobi:

  • he has already tested the change manually for a couple of cases like manual segmentation
  • he'll see that the unit test will follow
  • he'll discuss this topic with Ivo and propose to rewrite the mentioned function, e.g. by implementing it in the super class

[SVN revision 21076]
FIX (#2927): Make 2D index coordinates corner based.

[SVN revision 21199]
ADD (#2927): Simple test for coordinate system consistency

AbstractTransformGeometry already tests this more or less -> All tests added -> Closed.