X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSegmentationConnectivity.cxx;h=679e0706aa5530eb68a30d28860d995f98e7ac86;hb=1d7dc1ec3317d7e075251e2f6e61e353adbb20a9;hp=6ec480d58c641086a2ad5a9f1c0ecfe2cc9f8c8a;hpb=853145b6d183053afaee1e6f77a66426fea246f1;p=bbtk.git diff --git a/packages/vtk/src/bbvtkSegmentationConnectivity.cxx b/packages/vtk/src/bbvtkSegmentationConnectivity.cxx index 6ec480d..679e070 100644 --- a/packages/vtk/src/bbvtkSegmentationConnectivity.cxx +++ b/packages/vtk/src/bbvtkSegmentationConnectivity.cxx @@ -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() );