thresh2->ThresholdBetween(3000, 3001);
thresh2->SetInput(imagedata);
thresh2->ThresholdBetween(bbGetInputThresholdMinMax()[0], bbGetInputThresholdMinMax()[1]);
+ thresh2->Modified();
thresh2->Update();
+ cast2->Modified();
cast2->Update();
connect2->RemoveAllSeeds ();
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() );