Hello, i use xbox 360(kinect) and i already installed openni, nite-win32, sensorKinect program.
Then i search some source codes to use kinect for skeleton tracking.
https://github.com/roymacdonald/ofxOpenNI
testApp.h
ifndef TESTAPP
define TESTAPP
include "ofMain.h"
include "ofxOpenNI.h"
class testApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed (int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);
bool isMasking;
ofxOpenNIContext mContext;
ofxDepthGenerator mDepth;
ofxImageGenerator mImage;
ofxUserGenerator mUser;
if defined (TARGET_OSX) //|| defined(TARGET_LINUX) // only working on Mac/Linux at the moment (but on Linux you need to run as sudo...)
ofxHardwareDriver hardware;
endif
void drawMasks();
int nearThreshold, farThreshold;
ofImage allUserMasks, user1Mask, user2Mask, depthRangeMask;
float filterFactor;
};
endif
But in this code their are some types like (ofxOpenNIContext, ofxDepthGenerator, ofxImageGenerator, ofxUserGenerator) are not in the "ofxOpenNI.h".
So i do not know what can i do to solve this problem.
I want skeleton tracking and get world coordinate(x, y, z) about head and hand.
If do you have some idea which solve it, please teach me.
Thank to read my sentences!