8
9

More than 5 years have passed since last update.

ofxKinectでとりあえず表示メモ

Last updated at Posted at 2015-05-22
ofApp.h
    ofxKinect kinect;
    ofImage kinectImage; // キネクトの映像しまう
    ofImage depthImage;  // 深度画像
ofApp.cpp

void ofApp::setup(){
    // kinect初期化
    kinect.init();
    kinect.open();

}

//--------------------------------------------------------------
void ofApp::update(){

    kinect.update();

}

//--------------------------------------------------------------
void ofApp::draw(){

    // Kinect映像
    kinect.draw(0, 0, kinect.width, kinect.height);


    // Kinect深度映像
    kinect.drawDepth(kinect.width, 0, kinect.width, kinect.height);

}
8
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9