};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageContinuousDilate3D,bbtk::AtomicBlackBox);
-BBTK_NAME("ImageContinuousDilate3D");
-BBTK_AUTHOR("Carlos Torres");
-BBTK_DESCRIPTION("No Description.");
-BBTK_CATEGORY("empty");
-BBTK_INPUT(ImageContinuousDilate3D,X,"X (default 3)",double,"");
-BBTK_INPUT(ImageContinuousDilate3D,Y,"Y (default 3)",double,"");
-BBTK_INPUT(ImageContinuousDilate3D,Z,"Z (default 3)",double,"");
-BBTK_INPUT(ImageContinuousDilate3D,Repetitions,"Repetitions (default 0, it works minimum ones) ",int,"");
-BBTK_INPUT(ImageContinuousDilate3D,Image,"Image input",vtkImageData*,"");
-BBTK_OUTPUT(ImageContinuousDilate3D,Out,"Image output",vtkImageData*,"");
+ BBTK_NAME("ImageContinuousDilate3D");
+ BBTK_AUTHOR("Carlos Torres");
+ BBTK_DESCRIPTION("No Description.");
+ BBTK_CATEGORY("empty");
+
+ BBTK_INPUT(ImageContinuousDilate3D,X,"X (default 3)",double,"");
+ BBTK_INPUT(ImageContinuousDilate3D,Y,"Y (default 3)",double,"");
+ BBTK_INPUT(ImageContinuousDilate3D,Z,"Z (default 3)",double,"");
+ BBTK_INPUT(ImageContinuousDilate3D,Repetitions,"Repetitions (default 0, it works minimum ones) ",int,"");
+ BBTK_INPUT(ImageContinuousDilate3D,Image,"Image input",vtkImageData*,"");
+
+ BBTK_OUTPUT(ImageContinuousDilate3D,Out,"Image output",vtkImageData*,"");
+
BBTK_END_DESCRIBE_BLACK_BOX(ImageContinuousDilate3D);
//=====
// 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)
#include "bbcreaVtkImageContinuousErode3D.h"
#include "bbcreaVtkPackage.h"
+
+#include "vtkImageContinuousErode3D.h"
+
+
namespace bbcreaVtk
{
void ImageContinuousErode3D::Process()
{
+printf("EED ImageContinuousErode3D::Process Repetitions=%d\n", bbGetInputRepetitions() );
+printf("EED ImageContinuousErode3D::Process XYZ=%f %f %f\n", bbGetInputX(), bbGetInputY(), bbGetInputZ() );
+
vtkImageData* result = erodeFilterRecursive(bbGetInputImage(), bbGetInputRepetitions(), bbGetInputX(),bbGetInputY(),bbGetInputZ());
bbSetOutputOut(result);
}
void ImageContinuousErode3D::bbUserSetDefaultValues()
{
-
+ 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)
//=====
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)
#include "bbcreaVtk_EXPORT.h"
#include "bbtkAtomicBlackBox.h"
#include "iostream"
+
#include "vtkImageData.h"
-#include "vtkImageContinuousErode3D.h"
namespace bbcreaVtk
{
//=====
// 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)
//=====
+ BBTK_DECLARE_INPUT(Repetitions,int);
BBTK_DECLARE_INPUT(X,double);
BBTK_DECLARE_INPUT(Y,double);
BBTK_DECLARE_INPUT(Z,double);
- BBTK_DECLARE_INPUT(Repetitions,int);
BBTK_DECLARE_INPUT(Image,vtkImageData*);
BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
BBTK_PROCESS(Process);
};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageContinuousErode3D,bbtk::AtomicBlackBox);
-BBTK_NAME("ImageContinuousErode3D");
-BBTK_AUTHOR("Carlos Torres");
-BBTK_DESCRIPTION("No Description.");
-BBTK_CATEGORY("empty");
-BBTK_INPUT(ImageContinuousErode3D,X,"X (default 3)",double,"");
-BBTK_INPUT(ImageContinuousErode3D,Y,"Y (default 3)",double,"");
-BBTK_INPUT(ImageContinuousErode3D,Z,"Z (default 3)",double,"");
-BBTK_INPUT(ImageContinuousErode3D,Repetitions,"Repetitions (default 0, it works minimum ones)",int,"");
-BBTK_INPUT(ImageContinuousErode3D,Image,"Image input",vtkImageData*,"");
-BBTK_OUTPUT(ImageContinuousErode3D,Out,"Image output",vtkImageData*,"");
+ BBTK_NAME("ImageContinuousErode3D");
+ BBTK_AUTHOR("Carlos Torres");
+ BBTK_DESCRIPTION("No Description.");
+ BBTK_CATEGORY("empty");
+
+ BBTK_INPUT(ImageContinuousErode3D,X,"X (default 3)",double,"");
+ BBTK_INPUT(ImageContinuousErode3D,Y,"Y (default 3)",double,"");
+ BBTK_INPUT(ImageContinuousErode3D,Z,"Z (default 3)",double,"");
+ BBTK_INPUT(ImageContinuousErode3D,Repetitions,"Repetitions (default 0, it works minimum ones)",int,"");
+ BBTK_INPUT(ImageContinuousErode3D,Image,"Image input",vtkImageData*,"");
+
+ BBTK_OUTPUT(ImageContinuousErode3D,Out,"Image output",vtkImageData*,"");
+
BBTK_END_DESCRIBE_BLACK_BOX(ImageContinuousErode3D);
//=====
// 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)
stencil->Update();
stencil->SetStencilData( dataToStencil->GetOutput() );
stencil->ReverseStencilOn();
- stencil->SetBackgroundValue(128);
+ stencil->SetBackgroundValue( bbGetInputBackgroundValue() );
stencil->Update();
bbSetOutputOut( stencil->GetOutput() );
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
- bbSetInputInPolyData(NULL);
- bbSetInputInImage(NULL);
+ bbSetInputInPolyData(NULL);
+ bbSetInputInImage(NULL);
+ bbSetInputBackgroundValue(255);
}
//=====
// 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)
//=====
BBTK_DECLARE_INPUT(InImage,vtkImageData*);
+ BBTK_DECLARE_INPUT(BackgroundValue,double);
+
BBTK_DECLARE_INPUT(InPolyData,vtkPolyData*);
BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
BBTK_PROCESS(Process);
BBTK_AUTHOR("InfoDev");
BBTK_DESCRIPTION("No Description.");
BBTK_CATEGORY("empty");
+
BBTK_INPUT(PolyDataToImageData,InImage,"Image to put Result",vtkImageData*,"");
+ BBTK_INPUT(PolyDataToImageData,BackgroundValue,"(default 255) Background value",double,"");
BBTK_INPUT(PolyDataToImageData,InPolyData,"Input vtkPolyData",vtkPolyData*,"");
+
BBTK_OUTPUT(PolyDataToImageData,Out,"Output vtkImageData",vtkImageData*,"");
+
BBTK_END_DESCRIBE_BLACK_BOX(PolyDataToImageData);
//=====
// 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)