Ask Your Question

Mourad's profile - activity

2019-03-07 11:40:46 -0600 asked a question WImageOverlay update too slow

WImageOverlay update too slow Hi, How can I speed up the update of a WImageOverlay widget ? The setImage() method reall

2012-10-21 09:38:57 -0600 received badge  Good Answer (source)
2012-07-30 08:01:52 -0600 received badge  Nice Answer (source)
2012-07-30 07:01:57 -0600 received badge  Supporter (source)
2012-07-30 05:38:29 -0600 received badge  Teacher (source)
2012-07-30 04:54:32 -0600 received badge  Editor (source)
2012-07-30 04:11:54 -0600 commented question Can't compile .cu file when including opencv.hpp

Sharing the error message would be very helpful for others to figure out the problem.

2012-07-30 04:05:45 -0600 received badge  Autobiographer
2012-07-30 03:37:53 -0600 answered a question How to use Kinect with OpenCV?

You can enable OpenNI when building OpenCV from sources, by checking the WITH_OPENNI CMake option. Then, in your code :

cv::VideoCapture capture(CV_CAP_OPENNI);
for(;;)
{
    cv::Mat depthMap;
    cv::Mat rgbImage

    capture.grab();

    capture.retrieve( depthMap, OPENNI_DEPTH_MAP );
    capture.retrieve( bgrImage, OPENNI_BGR_IMAGE );

    if( cv::waitKey( 30 ) >= 0 )
       break;
}

You can find more information here.