VAT  3.0
Video Analysis Tool
PoppeFootballPartII.h
1 #ifndef POPPEFOOTBALLPARTIIMODULE_H
2 #define POPPEFOOTBALLPARTIIMODULE_H
3 
4 #include <string>
5 #include <QImage>
6 #include "Datapool.h"
7 #include "ModuleInterface.h"
8 #include <vector>
9 
10 #include "opencv2/opencv.hpp"
11 #include "opencv2/highgui/highgui.hpp"
12 #include "opencv2/imgproc/imgproc.hpp"
13 #include "opencv2/legacy/legacy.hpp"
14 
15 // Our own Qt-CV shared image format.
16 #include "../custom_utils/commonimage.h"
17 #include "../custom_utils/codebookmodel.h"
18 
20 {
21  // Template image route
22  bool present;
23  std::string t_route;
24 
25  cv::Mat t_image;
26  cv::SparseMat t_histogram;
27 };
28 
54 {
55 public:
58 
59  //Set module configuration parameters
60  bool setParameters(QDomNode& config);
61 
62  //Initialization after reading parameters
63  bool init();
64 
65  //Function executed at each frame
66  bool run();
67 
68  //update parameters at runtime.
69  bool updateParameters();
70 
71  // Miscellaneous functions.
72  void createHSVHistogram(const cv::Mat& colorinput, cv::SparseMat& histoutput);
73  void createHSVHistogram(const cv::Mat& colorinput, cv::SparseMat& histoutput, cv::Mat& mask);
74 
75 private:
76  // XML Parameters
77  std::vector<PlayerTemplateModel> param_playertemplates;
78 
79  // Internal variables
80  CommonImage* currentimage_shadow;
81  std::vector<Blob>* blob_list;
82 };
83 
84 #endif // POPPEFOOTBALLMODULE_H
Definition: PoppeFootballPartII.h:19
Definition: ModuleInterface.h:43
The PoppeFootballPartII class Poppe Football Module, Second part. Being all the blobs properly obtain...
Definition: PoppeFootballPartII.h:53
The CommonImage class This is a class made to solve the headache you&#39;ll probably get when working bot...
Definition: commonimage.h:21
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39