Permalink
Browse files

ofxOpenNIUser: added joint orientation

  • Loading branch information...
1 parent a71e82d commit c6dc17a87b260b36abbc69e104f862aa72c6b462 @arturoc committed Nov 2, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/ofxOpenNITracker.cpp
  2. +1 −0 src/ofxOpenNIUser.h
@@ -226,6 +226,7 @@ void ofxOpenNITracker::update(){
XnSkeletonJointPosition a,b;
user_generator.GetSkeletonCap().GetSkeletonJointPosition(user.id, user.limbs[j].start_joint, a);
user_generator.GetSkeletonCap().GetSkeletonJointPosition(user.id, user.limbs[j].end_joint, b);
+ user_generator.GetSkeletonCap().GetSkeletonJointOrientation(user.id,user.limbs[j].start_joint, user.limbs[j].orientation);
if(a.fConfidence < 0.3f || b.fConfidence < 0.3f) {
user.limbs[j].found = false;
continue;
View
@@ -28,6 +28,7 @@ class ofxOpenNILimb{
XnSkeletonJoint start_joint;
XnSkeletonJoint end_joint;
+ XnSkeletonJointOrientation orientation;
// position in projective coordinates
ofPoint begin,end;

0 comments on commit c6dc17a

Please sign in to comment.