1 #ifndef POPPEFOOTBALLMODULE_H 2 #define POPPEFOOTBALLMODULE_H 8 #include "ModuleInterface.h" 12 #include "opencv2/opencv.hpp" 13 #include "opencv2/highgui/highgui.hpp" 14 #include "opencv2/imgproc/imgproc.hpp" 15 #include "opencv2/legacy/legacy.hpp" 18 #include "../custom_utils/commonimage.h" 19 #include "../custom_utils/codebookmodel.h" 21 #define PFVERBOSEMSG(A) \ 23 AppendToLog(QString("[POPPEFOOTBALL] ").append(A)); \ 24 qDebug() << QString("[POPPEFOOTBALL] ").append(A); \ 27 #define VALIDXMLPARAMMSG(A,B) \ 39 enum morph_element_type
49 morph_element_type type;
109 bool setParameters(QDomNode& config);
118 bool updateParameters();
126 void retrieveFGMask();
128 void prepareStructuralElem(cv::Mat& output,
morpho_param par);
131 cv::Scalar colorName(QString colorcode,
bool* convsuccess = NULL);
132 cv::Scalar colorToHSV(cv::Scalar BGRinput);
137 int param_segm_learningframes;
138 double param_segm_learnagain_percentage_low;
139 double param_segm_learnagain_percentage_high;
140 std::vector<morpho_param> param_segm_morphology_ops;
141 int param_segm_morphologysize;
142 std::vector<uchar> param_segm_codebook_startingconditions;
146 cv::Mat currentimage_mat;
162 #endif // POPPEFOOTBALLMODULE_H
Definition: ModuleInterface.h:43
The CommonImage class This is a class made to solve the headache you'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
The CodebookModel class This is a class made to interface (some way or another) the way OpenCV handle...
Definition: codebookmodel.h:15
Definition: PoppeFootball.h:46