KINECT STATS GENERATOR FOR SPORTS VISUALISATION  1.0
BallPointsProcessing.h
Go to the documentation of this file.
00001 #ifndef BALLPOINTSPROCESSING_H
00002 #define BALLPOINTSPROCESSING_H
00003 
00004 #include "PlayerData.h"
00005 #include "opencv2/opencv.hpp"
00006 #include <QObject>
00007 
00008 /*
00009   LICENSING: You are free to use any part of this project provided I am informed about it via email
00010   at santoshwins@hotmail.com and referenced appropriately in your works
00011   */
00020 
00021 class BallPointsProcessing:public QObject
00022 {
00023     Q_OBJECT // for slots
00024 
00025     private:
00026         //----------------------------------------------------------------------------------------------------------------------
00028         //----------------------------------------------------------------------------------------------------------------------
00029         std::vector<cv::Point3f> m_entireTrackedDataPts;
00030 
00031         //----------------------------------------------------------------------------------------------------------------------
00033         //----------------------------------------------------------------------------------------------------------------------
00034         std::vector<std::vector<cv::Point3f> > m_playerAPts;
00035 
00036         //----------------------------------------------------------------------------------------------------------------------
00038         //----------------------------------------------------------------------------------------------------------------------
00039         std::vector<std::vector<cv::Point3f> > m_playerBPts;
00040 
00041         //----------------------------------------------------------------------------------------------------------------------
00044         //----------------------------------------------------------------------------------------------------------------------
00045         std::vector<std::vector<int> > m_playerADeepestPtIndices;
00046 
00047         //----------------------------------------------------------------------------------------------------------------------
00050         //----------------------------------------------------------------------------------------------------------------------
00051         std::vector<std::vector<int> > m_playerBDeepestPtIndices;
00052 
00053         //----------------------------------------------------------------------------------------------------------------------
00055         //----------------------------------------------------------------------------------------------------------------------
00056         PlayerData *m_playerA,*m_playerB;
00057 
00058         //----------------------------------------------------------------------------------------------------------------------
00063         //----------------------------------------------------------------------------------------------------------------------
00064         float m_ballImpactDepthMaxThresh,m_ballImpactDepthMinThresh;
00065 
00066     public:
00067         //----------------------------------------------------------------------------------------------------------------------
00069         //----------------------------------------------------------------------------------------------------------------------
00070         BallPointsProcessing();
00071 
00072         //----------------------------------------------------------------------------------------------------------------------
00076         //----------------------------------------------------------------------------------------------------------------------
00077         BallPointsProcessing(PlayerData *_playerA,PlayerData *_playerB);
00078 
00079         //----------------------------------------------------------------------------------------------------------------------
00081         //----------------------------------------------------------------------------------------------------------------------
00082         ~BallPointsProcessing();
00083 
00084         //----------------------------------------------------------------------------------------------------------------------
00087         //----------------------------------------------------------------------------------------------------------------------
00088         void setTrackedPoints(cv::Point3f _inputTrackedPoint);
00089 
00090     public slots:
00091         //----------------------------------------------------------------------------------------------------------------------
00096         //----------------------------------------------------------------------------------------------------------------------
00097         void processTrackingData();
00098 
00099         //----------------------------------------------------------------------------------------------------------------------
00102         //----------------------------------------------------------------------------------------------------------------------
00103         void setBallImpactDepthMaxThreshold(double _impactPtDepthMaxThresh);
00104 
00105         //----------------------------------------------------------------------------------------------------------------------
00108         //----------------------------------------------------------------------------------------------------------------------
00109         void setBallImpactDepthMinThreshold(double _impactPtDepthMinThresh);
00110 
00111 
00112 };
00113 
00114 #endif // BALLPOINTSPROCESSING_H
 All Classes Files Functions Variables Enumerations Enumerator