Another little fix for Monocrome frame

This commit is contained in:
Stefano Fabri 2010-07-13 18:11:45 +00:00
parent 3499703ede
commit 1c7297f5be

View File

@ -254,12 +254,13 @@ IplImage* CvCaptureCAM_PvAPI::retrieveFrame(int)
{
if (PvCaptureWaitForFrameDone(Camera.Handle, &(Camera.Frame), 1000) == ePvErrSuccess) {
if (!monocrome)
if (!monocrome) {
cvMerge(grayframe,grayframe,grayframe,NULL,frame);
return frame;
}
return grayframe;
}
else return NULL;
}
else return NULL;
}
double CvCaptureCAM_PvAPI::getProperty( int property_id )