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
}
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
#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);