KINECT STATS GENERATOR FOR SPORTS VISUALISATION  1.0
TwoDStatsGeneration.h
Go to the documentation of this file.
00001 #ifndef TWODSTATSGENERATION_H
00002 #define TWODSTATSGENERATION_H
00003 
00004 /*
00005   LICENSING: You are free to use any part of this project provided I am informed about it via email
00006   at santoshwins@hotmail.com and referenced appropriately in your works
00007   */
00008 
00009 #include "opencv2/opencv.hpp"
00010 
00017 
00018 class TwoDStatsGeneration
00019 {
00020     public:
00022         TwoDStatsGeneration();
00024         ~TwoDStatsGeneration();
00025 
00026         // stats generatiing functions
00027 
00034         void calculatePlayerImpactPtsFromIndices(std::vector<std::vector<cv::Point3f> > &_inputPlayerBallPts,
00035                                                  std::vector<std::vector<int> > &_playerDeepestPtIndices,
00036                                                  std::vector<cv::Point> &o_playerImpactPtsAllRallies
00037                                                  );
00038 
00039 
00049         void generatePercentageDistribution(int _widthBounds, int _heightBounds,
00050                                             std::vector<cv::Point> &_playerImpactPtsAllRallies,
00051                                             int _whichQuadrant,
00052                                             std::vector<cv::Point>& o_specificQuadPts,
00053                                             float& o_percentage);
00054 
00055 
00056 
00057 
00058 
00059 
00060     private:
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 };
00071 #endif // TWODSTATSGENERATION_H
 All Classes Files Functions Variables Enumerations Enumerator