1 #ifndef PLAYERDETECTION_H 2 #define PLAYERDETECTION_H 5 #include "ModuleInterface.h" 7 #include "src/templateclass.h" 12 mapStruct(
float _maxVal,
float _minVal,
float _diff , QString _name) :
13 maxVal(_maxVal), minVal(_minVal),diff(_diff),name(_name){}
14 mapStruct() : maxVal(0.0), minVal(1000.0), diff(0.0), name(
"UNK"){}
31 bool setParameters(QDomNode& config);
40 bool updateParameters();
42 bool getCentersForMultipleClasses(
int x_leftBlob,
int x_rightBlob,
int y_topBlob,
int y_bottomBlob);
48 cv::Mat compactnessMap;
52 std::map<soccerClass, cv::Mat> colorMapTeam_Map;
53 std::map<soccerClass, cv::Mat> probability_Map;
56 std::map<soccerClass, bool > classesIncluded;
60 QVector<QRgb> colorTable;
62 int candidate_to_draw;
68 int thresholdPeakImage;
70 cv::Mat obtainDistancesIntegralImage(
const cv::Mat &frame, cv::Rect roi,soccerClass team, playerPart part);
74 QImage matToQImageOneColor(
const cv::Mat& mat);
76 void writeMapToSCV(cv::Mat
data, QString name);
78 void setTemplateColors();
80 std::map<soccerClass,std::vector<cv::Point> > centers;
83 std::vector<cv::Point> bhContoursCenter(
const std::vector<std::vector<cv::Point>>& contours,
bool centerOfMass,
int contourIdx=-1);
84 std::vector<cv::Point> bhFindLocalMaximum(cv::Mat _src, QString name =
"UNK");
86 std::vector<int> getExtendedRegion(
int blob_xleft,
int blob_xright,
int blob_ytop,
int blob_ybottom);
88 void obtainIntegralImagesForTemplate(soccerClass team, cv::Rect rect);
90 cv::Rect setPlayerSizeAt(
int j,
int i,
int upPart,
int height,
int width);
91 double getHeightMapProbValue(
int i,
int top,
int bottom,
int topPart,
int bottomPart,
int type);
92 std::vector<int> getForegroundLimitPoints(
const uchar *data,
int bpl,
int blob_xleft,
int blob_xright,
int blob_ytop,
int blob_ybottom);
95 void showMaps(
int objectId,
double scaleFactor);
96 void showImageGroup(std::vector<cv::Mat> imagesToShow, QString windowName);
97 double getWidthMapProbValue(
int j,
int left,
int right,
int ratio,
int type);
98 double getLimitPointsProbValue(
int val_int,
int pi_int,
int pf_int,
int p1_int,
int p2_int,
double maxVal,
double minVal);
103 #endif // PLAYERDETECTION_H Definition: ModuleInterface.h:43
Definition: PlayerDetection.h:25
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: templateclass.h:40
Definition: playermodelfromprobabilitymaps.h:11
Definition: BackgroundRecLigth.h:20