VAT  3.0
Video Analysis Tool
MorphologyModule.h
1 #ifndef MORPHOLOGYMODULE_H
2 #define MORPHOLOGYMODULE_H
3 
4 #include "ModuleInterface.h"
5 
7 public:
8  MorphologyModule(Datapool *i_data);
10 
11  //Set module configuration parameters
12  bool setParameters(QDomNode& config);
13 
14  //Initialization after reading parameters
15  bool init();
16 
17  //Function executed at each frame
18  bool run();
19 
20  //update parameters at runtime.
21  bool updateParameters();
22 
23  bool firstTime, useGrayscaleMorph;
24  int size, width, height, morphOption, morphIterations, typeElement;
25  cv::Mat element, fgMat, featureMap;
26  size_t step;
27 };
28 //morphOption: 0 Erode, 1 Dilate, 2 Opening, 3 Closing, 4 Gradient, 5 Top Hat, 6 Black Hat
29 //typeElement: 0 Rect, 1 Cross, 2 Ellipse
30 
31 #endif // MORPHOLOGYMODULE_H
Definition: ModuleInterface.h:43
Definition: MorphologyModule.h:6
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39