]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageImageSubstraction.h
00822e2e58e3309f0fd1e208a11ce4d95ab864f7
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageImageSubstraction.h
1 #ifndef __bbPackRecalageImageSubstraction_h_INCLUDED__
2 #define __bbPackRecalageImageSubstraction_h_INCLUDED__
3 #include "bbPackRecalage_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6 #include "vtkImageData.h"
7
8 #include <string>
9 #include <vector>
10
11 #include "Substraction.h"
12
13
14 namespace bbPackRecalage
15 {
16 class bbPackRecalage_EXPORT ImageSubstraction
17  : 
18    public bbtk::AtomicBlackBox
19 {
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);
30   void Process();
31
32   private:
33                 Substraction* subImage;
34 };
35
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);
50 }
51 // EO namespace bbCreaRecalage
52
53 #endif // __bbCreaRecalageImageSubstraction_h_INCLUDED__
54