VAT  3.0
Video Analysis Tool
segmentationreclightmodule.h
1 
7 #ifndef SEGMENTATIONRECLIGHTMODULE_H
8 #define SEGMENTATIONRECLIGHTMODULE_H
9 
10 #include <map>
11 #include <string>
12 #include <QImage>
13 #include "Datapool.h"
14 #include "ModuleInterface.h"
15 #include <QDir>
16 #include "image_display.h"
17 #include "opencv2/opencv.hpp"
18 #include <opencv/highgui.h>
19 
21 public:
24  //Set module configuration parameters
25  bool setParameters(QDomNode& config);
26 
27  //Initialization after reading parameters
28  bool init();
29 
30  //Function executed at each frame
31  bool run();
32 
33  //update parameters at runtime.
34  bool updateParameters();
35 
36 private:
37  int param_sizestrucelement;
38  int param_threshold;
39  bool firstTime;
40  cv::Mat element;
41 
42  void generate_foreground();
43  void applyAperture(QImage * f_in, QImage * fg_out, cv::Mat element_in);
44  void applyClose(QImage * f_in, QImage * fg_out, cv::Mat element_in);
45 };
46 
47 #endif // SEGMENTATIONRECLIGHTMODULE_H
bool run()
Definition: segmentationreclightmodule.cpp:43
Definition: ModuleInterface.h:43
Definition: segmentationreclightmodule.h:20
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39