]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousErode3D.cxx
#3110 creaVtk Bug New Normal - branch vtk7itk4 compilation with vtk7
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageContinuousErode3D.cxx
index ac412460724c5299e3f732806e89afe7342f03d8..4784991cf9ed9f611ffcd211d7289875e704b66f 100644 (file)
@@ -30,10 +30,9 @@ vtkImageData* ImageContinuousErode3D::erodeFilterRecursive(vtkImageData* image,
                {
                        resultRec = erodeFilter->GetOutput();
                        return resultRec;
-               }
-               else {
-                       vtkImageData* resultRec = erodeFilterRecursive(erodeFilter->GetOutput(), (repetitions-1), x, y, z);
-               }
+               }else{
+                       erodeFilterRecursive(erodeFilter->GetOutput(), (repetitions-1), x, y, z);
+               } // if repetitions
 }
 
 void ImageContinuousErode3D::bbUserSetDefaultValues()
@@ -45,7 +44,10 @@ void ImageContinuousErode3D::bbUserSetDefaultValues()
 //===== 
 void ImageContinuousErode3D::bbUserInitializeProcessing()
 {
-  
+       bbSetInputX(3); 
+       bbSetInputY(3); 
+       bbSetInputY(3); 
+       bbSetInputRepetitions(0); 
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)