VAT  3.0
Video Analysis Tool
PlayFieldDetectionModule.h
1 #ifndef PLAY_FIELD_DETECTION_MODULE_H
2 #define PLAY_FIELD_DETECTION_MODULE_H
3 
4 #include "Datapool.h"
5 #include "ModuleInterface.h"
6 #include <QDir>
7 #include "ThermalColor.h"
8 
9 //#include <cmath>
10 
12 {
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  uchar calcThresh(cv::Mat histogram, uchar* ptr_peak);
30  int getMaxLoc(cv::Mat histogram);
31  void showHistogram( cv::Mat histogram, char windowName[]);
32  void removeOutliersIQR(cv::Mat histogram, float IQRFactor);
33  uchar inline normalizeBothSideScale(uchar value, uchar threshold);
34 
35  int height, width, histSize, numBins;
36  float alpha, beta, threshold;
37  bool firstTime, useMask, displayHistogram, displayFeatureMap, displayCriteriaMap;
38  QString fileMaskName;
39  ThermalColor thermalColor;
40  uchar redThreshold, redPeak, blueThreshold, bluePeak, greenThreshold, greenPeak, grayThreshold, grayPeak, minReliability,
41  minFeature, reliability, minScale, maxScale;
42  uchar *ptr_currGrayImg, *ptr_nonField, *ptr_blueChannel, *ptr_greenChannel, *ptr_redChannel;
43  cv::Mat imgARGB32, currImgC3, currGrayImg, redHist, blueHist, greenHist, grayHist, fieldMask, structElement, nonField,
44  reliabilityNormalized, featureMap, criteriaMap, reliabilityNormalizedThermal;
45  /*
46  implementacion del modelo de extraccion de zona de juego del paper "Automatic soccer
47  players tracking in goal scenes by camera motion elimination"
48  */
49 };
50 #endif // PLAY_FIELD_DETECTION_MODULE_H
Definition: ModuleInterface.h:43
Definition: PlayFieldDetectionModule.h:11
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
uchar calcThresh(cv::Mat histogram, uchar *ptr_peak)
Definition: PlayFieldDetectionModule.cpp:488