VAT  3.0
Video Analysis Tool
pawcsBGModule.h
1 #ifndef PAWCS_BG_MODULE_H
2 #define PAWCS_BG_MODULE_H
3 
4 #include "ModuleInterface.h"
5 #include "ThermalColor.h"
6 #include "image_display.h"
7 #include "src/BackgroundSubtractorPAWCS.h"
8 #include <QImage>
9 
10 #define FOREGROUND 255
11 #define BACKGROUND 0
12 
14 public:
15  pawcsBGModule(Datapool *i_data);
16  ~pawcsBGModule();
17 
18  //Set module configuration parameters
19  bool setParameters(QDomNode& config);
20 
21  //Initialization after reading parameters
22  bool init();
23 
24  //Function executed at each frame
25  bool run();
26 
27  //update parameters at runtime.
28  bool updateParameters();
29 
30  bool firstTime, generateBg;
31  int height, width, minValIdx,maxValIdx;
32  unsigned long int randSeed;
33  double minVal, maxVal;
34  ThermalColor thermalColor;
35  cv::Mat imgARGB32, currImgC3, foreground, background, modelROI, featureMap, reliabilityMap, foregroundRaw;
36  QColor methodColor;
37 
38  BackgroundSubtractorPAWCS pawcsModel;
39 };
40 
41 #endif // PAWCS_BG_MODULE_H
Definition: pawcsBGModule.h:13
Definition: ModuleInterface.h:43
Definition: BackgroundSubtractorPAWCS.h:35
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39
Definition: ThermalColor.h:7