kinect SDK 2.0联合采集

Jointcollection for kinect SDK 2.0

我正在将我的 Kinect 程序从 SDK 1.8 升级到 2.0。在我的旧版本中,我经常使用 jointcollection。但是,我现在不知道如何在不使用此功能的情况下重写程序。我的示例代码附在下面:

    private static ResultUnit ProcessKneeLeft(JointCollection joints)
    {
        ResultUnit result = new ResultUnit();
        result.State = GetTrackingState(new Joint[] { joints[JointType.KneeLeft], joints[JointType.HipLeft], joints[JointType.AnkleLeft] });
        if (result.State != TrackingState.NotTracked)
            result.Value = VectorFunc.Angle(joints[JointType.KneeLeft].Position, joints[JointType.HipLeft].Position, joints[JointType.AnkleLeft].Position);
        return result;
    }

请帮帮我。非常感谢! 总和

Joints is the new JointCollection for kinect for windows V2. In kinect for windows V2, Joints is a property of Body Class.