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 erodeFilter->SetInput (image);
20 erodeFilter->SetKernelSize(x, y, z);
21 erodeFilter->Modified();
22 erodeFilter->Update();
23 vtkImageData* resultRec;
26 resultRec = erodeFilter->GetOutput();
30 vtkImageData* resultRec = erodeFilterRecursive(erodeFilter->GetOutput(), (repetitions-1), x, y, z);
34 void ImageContinuousErode3D::bbUserSetDefaultValues()
39 // 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)
41 void ImageContinuousErode3D::bbUserInitializeProcessing()
46 // 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)
48 void ImageContinuousErode3D::bbUserFinalizeProcessing()
53 // EO namespace bbcreaVtk