1 #ifndef __bbPackRecalageImageSubstraction_h_INCLUDED__
2 #define __bbPackRecalageImageSubstraction_h_INCLUDED__
3 #include "bbPackRecalage_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
6 #include "vtkImageData.h"
11 #include "Substraction.h"
14 namespace bbPackRecalage
16 class bbPackRecalage_EXPORT ImageSubstraction
18 public bbtk::AtomicBlackBox
20 BBTK_BLACK_BOX_INTERFACE(ImageSubstraction,bbtk::AtomicBlackBox);
21 BBTK_DECLARE_INPUT(In1,vtkImageData*);
22 BBTK_DECLARE_INPUT(In2,vtkImageData*);
23 BBTK_DECLARE_INPUT(In3,int);
24 BBTK_DECLARE_INPUT(In4,int);
25 BBTK_DECLARE_INPUT(InU,std::vector<double>);
26 BBTK_DECLARE_INPUT(InM,std::vector<double>);
27 BBTK_DECLARE_INPUT(InL,std::vector<double>);
28 BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
29 BBTK_PROCESS(Process);
33 Substraction* subImage;
36 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageSubstraction,bbtk::AtomicBlackBox);
37 BBTK_NAME("ImageSubstraction");
38 BBTK_AUTHOR("jn.trillos44@uniandes.edu.co");
39 BBTK_DESCRIPTION("Creates a image resulting from the substraction of the RGB values of 2 other images.");
40 BBTK_CATEGORY("__CATEGORY__");
41 BBTK_INPUT(ImageSubstraction,In1,"Image 1",vtkImageData*,"");
42 BBTK_INPUT(ImageSubstraction,In2,"Image 2",vtkImageData*,"");
43 BBTK_INPUT(ImageSubstraction,In3,"Upper Zero Level (Value between 0 and 255)",int,"");
44 BBTK_INPUT(ImageSubstraction,In4,"Lower Zero Level (Value between 0 and 255)",int,"");
45 BBTK_INPUT(ImageSubstraction,InU,"Upper Level Color (RGB)",std::vector<double>,"");
46 BBTK_INPUT(ImageSubstraction,InM,"Medium Level Color (RGB)",std::vector<double>,"");
47 BBTK_INPUT(ImageSubstraction,InL,"Lower Level Color (RGB)",std::vector<double>,"");
48 BBTK_OUTPUT(ImageSubstraction,Out,"Image Result",vtkImageData*,"");
49 BBTK_END_DESCRIBE_BLACK_BOX(ImageSubstraction);
51 // EO namespace bbCreaRecalage
53 #endif // __bbCreaRecalageImageSubstraction_h_INCLUDED__