To use functions in OpenCV like cvSmooth or cvAdaptiveThreshold you must have the data of your VideoCapture in an IplImage object. VideoCapture capture; Mat grayImage; IplImage *imgSrc, *imgResult; imgSrc = cvCreateImage(cvSize(640, 480), IPL_DEPTH_8U, 1); imgResult = cvCreateImage(cvSize(640, 480), IPL_DEPTH_8U, 1); capture.open(CV_CAP_OPENNI); if (!capture.isOpened()) { cout << "Can not open a capture object." << endl; return… Read More


I’ve search long time for having result on this problem. I want to use the object of IplImage, which data should be filled from Mat. If you using the simple solution found on stackoverflow, then you can’t access the methods of the IplImage object. Mat matImage; IplImage iplImage; iplImage = cvCreateImage(cvSize(640,480), IPL_DEPTH_8U, 1); iplImage->imageData =… Read More