VAT  3.0
Video Analysis Tool
GrayCodeModule.h
1 #ifndef GRAYCODEMODULE_H
2 #define GRAYCODEMODULE_H
3 
4 #include <map>
5 #include <string>
6 #include <QImage>
7 #include "Datapool.h"
8 #include "ModuleInterface.h"
9 #include <QDir>
10 
12 public:
13  enum bit_code {
14  BIT_1 = 0x01, //00000001
15  BIT_2 = 0x02, //00000010
16  BIT_3 = 0x04, //00000100
17  BIT_4 = 0x08, //00001000
18  BIT_5 = 0x10, //00010000
19  BIT_6 = 0x20, //00100000
20  BIT_7 = 0x40, //01000000
21  BIT_8 = 0x80 //10000000
22  };
23 
24 
25  GrayCodeModule(Datapool *i_data);
26  ~GrayCodeModule();
27 
28  //Set module configuration parameters
29  bool setParameters(QDomNode& config);
30 
31  //Initialization after reading parameters
32  bool init();
33 
34  //Function executed at each frame
35  bool run();
36 
37  //update parameters at runtime.
38  bool updateParameters();
39 
40  bool first;
41  void getGray(QImage *);
42  static uchar getGrayCode(uchar &input);
43 };
44 
45 #endif // GrayCodeModule_H
Definition: GrayCodeModule.h:11
Definition: ModuleInterface.h:43
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39