CLCopyright (c) 2014ExpressionEnginetag:https:,2014:04:04convert kinect depth image to real world dimensionstag:https:,2014:/codelaboratories.com/forums/viewthread/.11212014-04-04T18:23:59Zmetwally shoier
I am working on a robot that uses kinect to avoid obstacles I am using Visual Studio C++, OpenCV library, and code laboratories drivers (CL NUI Platform).And want to convert the depth image to a real world dimensions.

]]>
Code: Kinect with OpenCV 2.2 in C++tag:https:,2011:/codelaboratories.com/forums/viewthread/.5182011-02-03T21:45:00Z2011-02-17T21:22:28Zthesmileman
A lot of people on this forum and around these here interwebs have been asking how to get the kinect working with OpenCV in C++. Here is the basic code to display the RGB image and the depth image as both a colormap and as greyscale. This is for OpenCV 2.2 which is the latest version. If you want to use an earlier version your includes will be different.

NOTE: The calls to StopNUICamera(), DestroyNUIMotor(motor), and DestroyNUICamera() are commented out because they still throw an error when called. It doesn’t seem to be a problem though.