From 4a12b85396ec53c11c2eb4ada15c351d3cad5dc8 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Sun, 27 Mar 2022 08:53:53 +0200 Subject: [PATCH] #3481 Bug ImageContinuousErode3D return empty object clean --- bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx | 2 +- bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousErode3D.cxx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx index f616d22..7a1bf0a 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx @@ -31,7 +31,7 @@ vtkImageData* ImageContinuousDilate3D::dilateFilterRecursive(vtkImageData* image resultRec = dilateFilter->GetOutput(); return resultRec; }else{ - dilateFilterRecursive(dilateFilter->GetOutput(), (repetitions-1), x, y, z); + return dilateFilterRecursive(dilateFilter->GetOutput(), (repetitions-1), x, y, z); }// if repetitions } diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousErode3D.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousErode3D.cxx index 9547e4c..a123ae6 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousErode3D.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousErode3D.cxx @@ -24,7 +24,6 @@ void ImageContinuousErode3D::Process() vtkImageData* ImageContinuousErode3D::erodeFilterRecursive(vtkImageData* image, int repetitions, double x, double y, double z) { - printf("EED ImageContinuousErode3D::erodeFilterRecursive 1\n"); vtkImageContinuousErode3D *erodeFilter = vtkImageContinuousErode3D ::New(); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 @@ -34,12 +33,9 @@ vtkImageData* ImageContinuousErode3D::erodeFilterRecursive(vtkImageData* image, #endif erodeFilter->SetKernelSize(x, y, z); erodeFilter->Modified(); - printf("EED ImageContinuousErode3D::erodeFilterRecursive 2\n"); erodeFilter->Update(); - printf("EED ImageContinuousErode3D::erodeFilterRecursive 3\n"); if(repetitions == 0) { - printf("EED ImageContinuousErode3D::erodeFilterRecursive 4\n"); return erodeFilter->GetOutput(); }else{ return erodeFilterRecursive(erodeFilter->GetOutput(), repetitions-1, x, y, z); -- 2.47.1