]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkSegmentationConnectivity.cxx
2344 BBTK Bug New Normal Conflict between Update and Modfied vtk filters
[bbtk.git] / packages / vtk / src / bbvtkSegmentationConnectivity.cxx
index 6ec480d58c641086a2ad5a9f1c0ecfe2cc9f8c8a..679e0706aa5530eb68a30d28860d995f98e7ac86 100644 (file)
@@ -129,7 +129,9 @@ namespace bbvtk
     thresh2->ThresholdBetween(3000, 3001);
     thresh2->SetInput(imagedata);
     thresh2->ThresholdBetween(bbGetInputThresholdMinMax()[0], bbGetInputThresholdMinMax()[1]);
+    thresh2->Modified();
     thresh2->Update();
+    cast2->Modified();
     cast2->Update();
     connect2->RemoveAllSeeds ();
          
@@ -151,6 +153,7 @@ namespace bbvtk
          if ( z>=maxz ) {  printf("Warnnig bbtk::vtk::SegmentationConnectivity::DoProcess limites of the image out of range z: %d -> %d \n",y, maxz-1 ); z=maxz-1; }
          
          connect2->AddSeed( x,y,z );
+         connect2->Modified();
          connect2->Update();
          cast4->Update();                      
          bbSetOutputOut(cast4->GetOutput() );