Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "opencv2/imgproc/imgproc.hpp"
- #include "opencv2/highgui/highgui.hpp"
- #include <iostream>
- #include <WinDef.h>
- #include <conio.h>
- #include "CLNUIDevice.h"
- using namespace cv;
- using namespace std;
- int main( int argc, const char** argv )
- {
- PBYTE imageName = (PBYTE) malloc(640*480*3);
- GetNUICameraColorFrameRAW(KinectCamera, imageName);
- kinectImage = cvCreateImageHeader(cvSize(640,480), IPL_DEPTH_8U, 3);
- cvSetData(kinectImage,imageName,640*3);
- cvShowImage( "Kinect", kinectImage ) ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement