Example #1
0
        private KinectJoint CreateJoint(JointType type)
        {
            var joints = Skeleton.Joints;
            var joint  = new KinectJoint(joints[type], Skeleton.BoneOrientations[type]);

            return(joint);
        }
Example #2
0
        public KinectFrame(Skeleton skeleton)
        {
            Skeleton = skeleton;

            //Keep the joints
            Joints = new Dictionary <JointType, KinectJoint>();
            foreach (Joint j in skeleton.Joints)
            {
                var kJoint = new KinectJoint(j, Skeleton.BoneOrientations[j.JointType]);
                Joints.Add(kJoint.Type, kJoint);
            }

            //Import Joints
            SetupJoints();
            //SetUpBones();
        }
Example #3
0
 public KinectBone(KinectJoint j0, KinectJoint j1)
 {
     Joint0 = j0;
     Joint1 = j1;
 }