kinect获取的20个骨骼点坐标

if (skeleton.TrackingState == SkeletonTrackingState.Tracked)
{
float[] showHead = new float[]{skeleton.Joints[JointType.Head].Position.X,
                                  skeleton.Joints[JointType.Head].Position.Y,skeleton.Joints[JointType.Head].Position.Z,};
float[] showAnkleLeft = new float[]{skeleton.Joints[JointType.AnkleLeft].Position.X,
                                  skeleton.Joints[JointType.AnkleLeft].Position.Y,skeleton.Joints[JointType.AnkleLeft].Position.Z,};
float[] showAnkleRight = new float[]{skeleton.Joints[JointType.AnkleRight].Position.X,                                 skeleton.Joints[JointType.AnkleRight].Position.Y,skeleton.Joints[JointType.AnkleRight].Position.Z,};
float[] showElbowLeft = new float[]{skeleton.Joints[JointType.ElbowLeft].Position.X,
                                  skeleton.Joints[JointType.ElbowLeft].Position.Y,skeleton.Joints[JointType.ElbowLeft].Position.Z,};
float[] showElbowRight = new float[]{skeleton.Joints[JointType.ElbowRight].Position.X,                                   skeleton.Joints[JointType.ElbowRight].Position.Y,skeleton.Joints[JointType.ElbowRight].Position.Z,};
float[] showFootLeft = new float[]{skeleton.Joints[JointType.FootLeft].Position.X,
                                  skeleton.Joints[JointType.FootLeft].Position.Y,skeleton.Joints[JointType.FootLeft].Position.Z,};
float[] showFootRight = new float[]{skeleton.Joints[JointType.FootRight].Position.X,
                                  skeleton.Joints[JointType.FootRight].Position.Y,skeleton.Joints[JointType.FootRight].Position.Z,};
float[] showHandLeft = new float[]{skeleton.Joints[JointType.HandLeft].Position.X,
                  

你可能感兴趣的:(Kinect)