NEW TO OPENCV AND KINECT :)
I am sorry if there are other similar questions here - I did search and am still lost.
I am trying to use the Microsoft Kinect SDK with opencv. I looked at the KinectBridgeWithOpenCVBasis example in the SDK but find it too complex.
Here is the question: I am using the DepthSensor class from this site I am trying to get the depth data into opencv matrix. The code is as follows:
DepthSensor *ds = new DepthSensor();
ds->init();
Mat frame;
ds->getDepthMat().copyTo(frame);
imshow("display", ds->getColorMat());
I did add ds->processDepth(); at various points to check if it works. The exact error message is :
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, fi le C:\builds\2_4_PackSlave-win64-vc12-shared\opencv\modules\highgui\src\window.c pp, line 261
and
Unhandled exception at 0x000007FEFC7B940D in opencvtest.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000000001AF500.
Any ideas on how I fix this? Thanks.
MT