X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSegmentationConnectivity.cxx;h=215516ea3e47765ef6b33f8400661685f2bf48e5;hb=180e7479a79e0eda35693e68ed04e994dce96096;hp=b5b028da31e1434bfc0f9c142af3c3ba245b4626;hpb=d8d037869b31569b3343b085c25d27d8069e58eb;p=bbtk.git diff --git a/packages/vtk/src/bbvtkSegmentationConnectivity.cxx b/packages/vtk/src/bbvtkSegmentationConnectivity.cxx index b5b028d..215516e 100644 --- a/packages/vtk/src/bbvtkSegmentationConnectivity.cxx +++ b/packages/vtk/src/bbvtkSegmentationConnectivity.cxx @@ -128,20 +128,14 @@ namespace bbvtk // -------------------------------------------------------------- void SegmentationConnectivity::DoProcess() { - - printf("EED (%s) SegmentationConnectivity::DoProcess Start \n", bbGetFullName().c_str() ); int x,y,z; int i,numPoints = bbGetInputPositionXYZ().size()/3; int verif = (bbGetInputPositionXYZ().size()-1) % 3; if (( numPoints>=1) && (verif==2) && (bbGetInputIn()!=NULL)) { - printf("EED SegmentationConnectivity::DoProcess 1 format=%s %p\n", bbGetInputOutputFormat().c_str() , bbGetInputIn() ); - printf("EED SegmentationConnectivity::DoProcess 1.1 \n" ); - //EED 2020-01-18 int outputformat = bbtkStaticLecture::GetTypeFormat( bbGetInputOutputFormat() , bbGetInputIn() ); // int outputformat=4; - printf("EED SegmentationConnectivity::DoProcess 2 \n" ); vtkImageData *imagedata = bbGetInputIn(); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 @@ -153,7 +147,6 @@ namespace bbvtk // imagedata->SetExtent(imagedata->GetExtent()); thresh2->SetInputData(imagedata); #endif - printf("EED SegmentationConnectivity::DoProcess 3 Threshold= %f %f\n", bbGetInputThresholdMinMax()[0], bbGetInputThresholdMinMax()[1] ); thresh2->ThresholdBetween(bbGetInputThresholdMinMax()[0], bbGetInputThresholdMinMax()[1]); thresh2->Update(); connect2->RemoveAllSeeds (); @@ -167,7 +160,6 @@ namespace bbvtk int maxX = ext[1]-ext[0]+1; int maxY = ext[3]-ext[2]+1; int maxZ = ext[5]-ext[4]+1; - printf("EED SegmentationConnectivity::DoProcess 4 numPoints=%d\n",numPoints ); for (i=0;i=0) || (x=0) || (y=0) || (zAddSeed( x,y,z ); } else { printf("EED WARNNIG! In box: SegmentationConnectivity points list out of range \n"); } // if point inside image } // for i - printf("EED SegmentationConnectivity::DoProcess 4.2 \n" ); connect2->SetOutputConnectedValue( bbGetInputValue() ); - printf("EED SegmentationConnectivity::DoProcess 4.3 \n" ); cast4->SetOutputScalarType( outputformat ); - printf("EED SegmentationConnectivity::DoProcess 4.5 \n" ); connect2->Modified(); - printf("EED SegmentationConnectivity::DoProcess 5 \n" ); connect2->Update(); - cast4->Update(); - printf("EED SegmentationConnectivity::DoProcess 6 \n" ); - bbSetOutputOut(cast4->GetOutput() ); + cast4->Update(); + bbSetOutputOut(cast4->GetOutput() ); } else { printf("EED WARNNIG! In box: SegmentationConnectivity List of points are not coherent. \n"); bbSetOutputOut( NULL ); }// if numPoints verif - - printf("EED SegmentationConnectivity::DoProcess End \n" ); - } }// EO namespace bbvtk