1 #ifndef __bbvtkBinaryOperations_h_INCLUDED__
2 #define __bbvtkBinaryOperations_h_INCLUDED__
3 #include "bbvtk_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
6 #include "bbtkStaticLecture.h"
9 #include <vtkImageMathematics.h>
10 #include <vtkImageData.h>
12 #include <vtkImageData.h>
20 class bbvtk_EXPORT BinaryOperations
22 public bbtk::AtomicBlackBox
24 BBTK_BLACK_BOX_INTERFACE(BinaryOperations,bbtk::AtomicBlackBox);
25 BBTK_DECLARE_INPUT(In1,vtkImageData*);
26 BBTK_DECLARE_INPUT(In2,vtkImageData*);
27 BBTK_DECLARE_INPUT(Operation,int);
28 BBTK_DECLARE_INPUT(InConstant,double);
29 BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
30 BBTK_PROCESS(Process);
33 void crearPredeterminado();
34 void substractWithMinimum();
37 bbtkStaticLecture lector;
39 vtkImageMathematics* ope;
40 vtkImageData* constante;
43 BBTK_BEGIN_DESCRIBE_BLACK_BOX(BinaryOperations,bbtk::AtomicBlackBox);
44 BBTK_NAME("BinaryOperations");
45 BBTK_AUTHOR("_author_");
46 BBTK_DESCRIPTION("_description_");
47 BBTK_CATEGORY("__CATEGORY__");
48 BBTK_INPUT(BinaryOperations,In1,"",vtkImageData*,"");
49 BBTK_INPUT(BinaryOperations,In2,"",vtkImageData*,"");
50 BBTK_INPUT(BinaryOperations,Operation,"0:Add, 1:subtract, 2:multiply, 3:divide",int,"");
51 BBTK_OUTPUT(BinaryOperations,Out,"",vtkImageData*,"");
52 BBTK_END_DESCRIBE_BLACK_BOX(BinaryOperations);
54 // EO namespace bbSimpleProcessing
56 #endif // __bbvtkBinaryOperations_h_INCLUDED__