1 #ifndef FOOTBALLSCENEMODEL_H 2 #define FOOTBALLSCENEMODEL_H 3 #include "calibration.h" 4 #include "footballConstants.h" 42 void setParameters(
const cv::Mat &p,
const cv::Mat &h);
43 bool trainSizesModel();
44 std::vector< sizeSample > getSamples();
46 void setFieldDimensions();
48 double getHeightFromModel(
int px,
int py);
49 double getWidthFromModel(
int px,
int py,
double angle = 0);
50 double WmodelfromAngle(
double angle);
52 bool isOnArea(
int px,
int py, fieldZones zone);
54 QPointF getRealWorldFieldPos(
double px,
double py);
55 QPoint getScreenFieldPos(
double x,
double y);
63 std::map< fieldZones, QRect > zones;
65 perspective_matrix pM;
69 #endif // FOOTBALLSCENEMODEL_H Definition: footballscenemodel.h:28
Definition: calibration.h:51