VAT  3.0
Video Analysis Tool
BlobFilteringModule.h
1 #ifndef BLOBFILTERINGMODULE_H
2 #define BLOBFILTERINGMODULE_H
3 
4 #include <map>
5 #include <string>
6 #include <QString>
7 #include <QImage>
8 #include "Datapool.h"
9 #include "ModuleInterface.h"
10 #include <QDir>
11 
13 public:
16 
17  //Set module configuration parameters
18  bool setParameters(QDomNode& config);
19 
20  //Initialization after reading parameters
21  bool init();
22 
23  //Function executed at each frame
24  bool run();
25 
26  //update parameters at runtime.
27  bool updateParameters();
28 
29  bool blobOK(Blob *blob);
30 
31  void deleteBlobFromForeground(Blob *blob);
32 
33 
34  private:
35  //Internal data:
36  int m_minArea;
37  int m_minHeight;
38  int m_minWidth;
39  double m_ignoreBorderRate;
40  int m_imgWidth;
41  int m_imgHeight;
42  int m_numPixWidth;
43  int m_numPixHeight;
44  bool m_delInForeground;
45  bool borderConstraintsSet;
46  QString roiFileName;
47 
48 };
49 
50 #endif // BLOBFILTERINGMODULE_H
Definition: ModuleInterface.h:43
Definition: BlobFilteringModule.h:12
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: blob.h:79