www.pudn.com > 人体步态跟踪识别bate版.rar > StickHuman.h
// StickHuman.h: interface for the CStickHuman class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STICKHUMAN_H__9A7B84CD_9861_40BD_B940_8A63A60B1747__INCLUDED_)
#define AFX_STICKHUMAN_H__9A7B84CD_9861_40BD_B940_8A63A60B1747__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct Stick
{
CPoint Point; //坐标点
double Length; //长度
double Angle; //角度
};
class CStickHuman
{
public:
Stick m_head;
Stick m_neck;
Stick m_trunk;
Stick m_left_thigh;
Stick m_right_thigh;
Stick m_left_crus;
Stick m_right_crus;
Stick m_left_foot;
Stick m_right_foot;
Stick m_shoulder;
CArray m_StickJointPoint; //关节点坐标序列
public:
void InitialStickHuman();
void DrawStickHuman(CDC* pDC);
void SetHead(Stick head);
void SetNeck(Stick neck);
void SetTrunk(Stick trunk);
void SetShoulder(Stick shoulder);
void SetLeftThigh(Stick leftthigh);
void SetRightThigh(Stick rightthigh);
void SetLeftCrus(Stick leftcrus);
void SetRightCrus(Stick rightcrus);
void SetLeftFoot(Stick leftfoot);
void SetRightFoot(Stick rightfoot);
CStickHuman();
virtual ~CStickHuman();
};
#endif // !defined(AFX_STICKHUMAN_H__9A7B84CD_9861_40BD_B940_8A63A60B1747__INCLUDED_)