VAT  3.0
Video Analysis Tool
ForegroundMaskFilter.h
1 #ifndef FOREGROUNDMASKFILTER_H
2 #define FOREGROUNDMASKFILTER_H
3 
4 #include "ModuleInterface.h"
5 //#include <QDir>
6 
8 {
9 public:
12 
13  //Set module configuration parameters
14  bool setParameters(QDomNode& config);
15 
16  //Initialization after reading parameters
17  bool init();
18 
19  //Function executed at each frame
20  bool run();
21 
22  //update parameters at runtime.
23  bool updateParameters();
24 
25 private:
26  bool readMaskFile(QString fileName);
27  bool firstTime;
28 
29  int width, height;
30 
31  bool notFoundMask;
32  bool applyOnFeatureMap;
33 
34  cv::Mat fgMask, fg, featureMap;
35  QString maskFileName;
36 };
37 
38 #endif // FOREGROUNDMASKFILTER_H
Definition: ModuleInterface.h:43
Definition: ForegroundMaskFilter.h:7
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39