Dear all,

I found a bug while trying to use the "Quite simple region grower".

To reproduce the problem do the following:
-Load volume
-Select "quite simple region grower" functionality
-Set one seed point with shift+left mousebutton
-Click on "Start region grower"

While debugging I found that the following assertion in mitkImageMapper2D.cpp 
line 371 fails:

assert( input->GetTimeSlicedGeometry() == inputTimeGeometry );

The following patch fixed the problem for me:

Index: mitkImageMapper2D.cpp
===================================================================
--- mitkImageMapper2D.cpp       (revision 6)
+++ mitkImageMapper2D.cpp       (working copy)
@@ -368,10 +368,11 @@
   Vector3D right, bottom, normal;
   Vector3D rightInIndex, bottomInIndex;
 
-  assert( input->GetTimeSlicedGeometry() == inputTimeGeometry );
+  //assert( input->GetTimeSlicedGeometry() == inputTimeGeometry );
 
   // take transform of input image into account
-  Geometry3D* inputGeometry = inputTimeGeometry->GetGeometry3D( timestep );
+  //Geometry3D* inputGeometry = inputTimeGeometry->GetGeometry3D( timestep );
+       Geometry3D* inputGeometry = 
(input->GetTimeSlicedGeometry())->GetGeometry3D( timestep );
 
   ScalarType mmPerPixel[2];


I am using the svn version of MITK and the latest official VTK and ITK versions 
on Windows XP with VS2005.

I would be glad, if someone can have a look at the bug and if the patch really 
fixes the problem without creating new ones.

Regards Klaus


-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to