HumanMotion.h
上传用户:jsylhbnbhn
上传日期:2013-11-03
资源大小:119k
文件大小:1k
- // HumanMotion.h: interface for the HumanMotion class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_HUMANMOTION_H__B041B716_325C_44F8_BF61_57FC39C04238__INCLUDED_)
- #define AFX_HUMANMOTION_H__B041B716_325C_44F8_BF61_57FC39C04238__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "cv.h"
- #include "skelecton.h"
- class HumanMotion
- {
- public:
- OpenGL *pgl;
- int Start();
- HumanMotion();
- virtual ~HumanMotion();
- private:
- CvPoint2D32f Point_to_32f(CvPoint pt);
- int analyze_contour(IplImage* grey_image);
- int main_loop( int useCAM);
- int getContour( IplImage* grey);
- int SegmentBody(CvSeq* contour);
- int FindBody();
- int ClearBodyJoints();
- float calc_2Point_Magnitude(CvPoint pt1,CvPoint pt2);
- int draw_2Points(CvPoint pt1,CvPoint pt2,CvPoint pt3,CvPoint pt4,CvScalar color);
- int save_Points(CvPoint pt1,CvPoint pt2,CvPoint pt3,CvPoint pt4,JointType upoint_type);
- bool Is_Closed_Vectors(CvPoint pt1,CvPoint pt2,CvPoint pt3,CvPoint pt4);
- bool Is_Apar_Vectors(CvPoint pt1,CvPoint pt2,CvPoint pt3,CvPoint pt4);
- int ZoomLine(CvPoint pt1,CvPoint pt2);
- };
- #endif // !defined(AFX_HUMANMOTION_H__B041B716_325C_44F8_BF61_57FC39C04238__INCLUDED_)