]> Creatis software - creaVtk.git/commitdiff
#3481 Bug ImageContinuousErode3D return empty object clean
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sun, 27 Mar 2022 06:53:53 +0000 (08:53 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sun, 27 Mar 2022 06:53:53 +0000 (08:53 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousErode3D.cxx

index f616d22a44422e16e2541839ee496c678c11040c..7a1bf0a819e229fa272bb318f5ce2fb66e2f0ab4 100644 (file)
@@ -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
 }
 
index 9547e4c8dc07bcb085fca6c9b4bfe0dd19680da6..a123ae6f13e646397f6d28839d8568ba565bf06e 100644 (file)
@@ -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);