From: Stefano Fabri Date: Thu, 24 Jun 2010 17:54:49 +0000 (+0000) Subject: Initializaed monocrom variable on costructor X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~9031 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=183f2306c83e0da9dc449cf8c7866f4d8058feb1;p=platform%2Fupstream%2Fopencv.git Initializaed monocrom variable on costructor --- diff --git a/modules/highgui/src/cap_pvapi.cpp b/modules/highgui/src/cap_pvapi.cpp index 2fd9944..7b55531 100644 --- a/modules/highgui/src/cap_pvapi.cpp +++ b/modules/highgui/src/cap_pvapi.cpp @@ -107,7 +107,7 @@ protected: CvCaptureCAM_PvAPI::CvCaptureCAM_PvAPI() { - + monocrome=false; } void CvCaptureCAM_PvAPI::Sleep(unsigned int time) { @@ -255,6 +255,7 @@ IplImage* CvCaptureCAM_PvAPI::retrieveFrame(int) if (PvCaptureWaitForFrameDone(Camera.Handle, &(Camera.Frame), 1000) == ePvErrSuccess) { if (!monocrome) cvMerge(grayframe,grayframe,grayframe,NULL,frame); + printf("Frame ok\n"); return frame; } else return NULL;