2 #include "bbcreaVtkImageContinuousErode3D.h"
3 #include "bbcreaVtkPackage.h"
7 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,ImageContinuousErode3D)
8 BBTK_BLACK_BOX_IMPLEMENTATION(ImageContinuousErode3D,bbtk::AtomicBlackBox);
10 void ImageContinuousErode3D::Process()
12 vtkImageData* result = erodeFilterRecursive(bbGetInputImage(), bbGetInputRepetitions(), bbGetInputX(),bbGetInputY(),bbGetInputZ());
13 bbSetOutputOut(result);
16 vtkImageData* ImageContinuousErode3D::erodeFilterRecursive(vtkImageData* image, int repetitions, double x, double y, double z)
18 vtkImageContinuousErode3D *erodeFilter = vtkImageContinuousErode3D ::New();
19 //EED 2017-01-01 Migration VTK7
20 #if VTK_MAJOR_VERSION <= 5
21 erodeFilter->SetInput (image);
23 erodeFilter->SetInputData(image);
25 erodeFilter->SetKernelSize(x, y, z);
26 erodeFilter->Modified();
27 erodeFilter->Update();
28 vtkImageData* resultRec;
31 resultRec = erodeFilter->GetOutput();
34 erodeFilterRecursive(erodeFilter->GetOutput(), (repetitions-1), x, y, z);
38 void ImageContinuousErode3D::bbUserSetDefaultValues()
43 // 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)
45 void ImageContinuousErode3D::bbUserInitializeProcessing()
50 bbSetInputRepetitions(0);
53 // 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)
55 void ImageContinuousErode3D::bbUserFinalizeProcessing()
60 // EO namespace bbcreaVtk