SHARE
TWEET

Untitled

mind_ Nov 27th, 2012 57 Never
  1. #include "opencv2/imgproc/imgproc.hpp"
  2. #include "opencv2/highgui/highgui.hpp"
  3.  
  4. #include <iostream>
  5. #include <WinDef.h>
  6. #include <conio.h>
  7. #include "CLNUIDevice.h"
  8.  
  9. using namespace cv;
  10. using namespace std;
  11.  
  12. int main( int argc, const char** argv )
  13. {
  14.     PBYTE imageName = (PBYTE) malloc(640*480*3);
  15.     GetNUICameraColorFrameRAW(KinectCamera, imageName);
  16.  
  17.     kinectImage = cvCreateImageHeader(cvSize(640,480), IPL_DEPTH_8U, 3);
  18.     cvSetData(kinectImage,imageName,640*3);
  19.     cvShowImage( "Kinect", kinectImage ) ;
  20.  
  21.     return 0;
  22. }
RAW Paste Data
Top