VAT  3.0
Video Analysis Tool
Public Member Functions | Public Attributes | List of all members
footballSceneModel Class Reference
Inheritance diagram for footballSceneModel:
SceneModel

Public Member Functions

 footballSceneModel (double hmodel, double wmodel, double par1, double par2)
 
void setParameters (const cv::Mat &p, const cv::Mat &h)
 
bool trainSizesModel ()
 
std::vector< sizeSamplegetSamples ()
 
void setField ()
 
void setFieldDimensions ()
 
double getHeightFromModel (int px, int py)
 
double getWidthFromModel (int px, int py, double angle=0)
 
double WmodelfromAngle (double angle)
 
bool isOnArea (int px, int py, fieldZones zone)
 
QPointF getRealWorldFieldPos (double px, double py)
 
QPoint getScreenFieldPos (double x, double y)
 
- Public Member Functions inherited from SceneModel
bool readScene (QString fileName)
 
bool readParameters (QString fileName)
 
bool readObjectModels (QString fileName)
 
bool computeFocalPoint (perspective_matrix pp, int img_width, int img_height, double *camx, double *camy, double *camz)
 
double getLimitHeightForProjectionLine (double x, double y)
 
double getLowestImageIntersectingHeight (int W, int H, double x, double y)
 

Public Attributes

double _hmodel
 
double _wmodel
 
double _par1
 
double _par2
 
std::map< fieldZones, QRect > zones
 
perspective_matrix pM
 
homography_matrix hM
 
- Public Attributes inherited from SceneModel
QSharedPointer< point3D< double > > camera_focal_point
 
QSharedPointer< point2D< double > > camera_focal_point2D
 
perspective_matrix p_matrix
 
homography_matrix h_matrix
 
QTransform h_trans
 
QTransform h_trans_i
 
bool pmatrix_filled
 
bool hmatrix_filled
 
bool badFocal
 
std::vector< QSharedPointer< world::ContextObject > > contextObjects
 
std::vector< QSharedPointer< world::AOI > > AOIs
 
std::vector< QSharedPointer< world::Area > > Areas
 
std::vector< QSharedPointer< world::Zone > > Zones
 
std::vector< QSharedPointer< world::Wall > > walls
 
std::vector< QSharedPointer< world::Wall2D > > wall2Ds
 
std::vector< QSharedPointer< world::ZoneH > > ZonesH
 
std::vector< QSharedPointer< world::Zone2D > > Zones2D
 
QDomDocument * xmlScene
 
double m_OneMeterRepresentation
 
double m_MaximalObjectSpeed
 

Additional Inherited Members

- Static Public Member Functions inherited from SceneModel
static position setPosition (std::string pos)
 
static void getXY (position pos, double &X, double &Y, Blob b)
 
static int worldToImgCoords (perspective_matrix persp_mat, double x, double y, double z, double *X, double *Y)
 
static int homographyToImgCoords (homography_matrix H, double X2, double Y2, double *X, double *Y)
 
static int imgToWorldCoordsGivenHeight (perspective_matrix persp_mat, double X, double Y, double z, double *x, double *y)
 
static int imgToHomographyCoords (homography_matrix H, double X, double Y, double *X2, double *Y2)
 

The documentation for this class was generated from the following files: