+ // ATTENTION!!! Please be aware of the 0.5 offset/pixel-center issue!
+ // The geometry of an image should have the bool value "ImageGeometry" as true, to indicate it belongs to an image.
+ // While "normal" geometries have their origin usually on a corner (e.g. 0,0,0), image geometries are pixel-center based.
+ // That means, they have their origin in the middle of the first pixel (e.g. 0.5,0.5,0.5).
+ // When you call mitk::Image::SetGeometry(..) please be sure, that the geometry
+ // a) is center-based
+ // b) has the bool flag "ImageGeometry" on true
+ //
+ // If ImageGeometry==false, you can call "Geometry3D::ChangeImageGeometryConsideringOriginOffset(true)" to make it centerbased and turn on the flag.
+ // If ImageGeometry==true, you can call "Geometry3D::ChangeImageGeometryConsideringOriginOffset(false)" to make it cornerbased again and turn off the flag.
+
+ if(aGeometry3D->GetImageGeometry()==false)
+ {
+ MITK_INFO << "WARNING: Applied a non-image geometry onto an image. If you are SURE that this this geometry is pixel-center-based, please turn the imageGeometry flag on by calling 'ImageGeometryOn()'. If the geometry is not center-based yet, please call 'ChangeImageGeometryConsideringOriginOffset(true)' to make it center-based and flag it.\n";
m_SegmentationContourInWorldCoordinates = FeedbackContourTool::BackProjectContourFrom2DSlice( workingSlice, contourInImageIndexCoordinates, true ); // true, correct the result from ipMITKSegmentationGetContour8N