error c2665 regarding imshow

asked 2016-04-12 22:56:58 -0500

Aj-611 gravatar image

Here I provide the output of build:

error C2665: 'cv::imshow' : none of the 2 overloads could convert all the argument types
1>          c:\opencv30\opencv310\opencv\build\include\opencv2\highgui.hpp(552): could be 'void cv::imshow(const cv::String &,const cv::ogl::Texture2D &)'
1>          c:\opencv30\opencv310\opencv\build\include\opencv2\highgui.hpp(372): or       'void cv::imshow(const cv::String &,cv::InputArray)'
1>          while trying to match the argument list '(const char *, IplImage *)'

It looks like the problem come from this code:

IplImage* frameShow = new IplImage(frameShowWin);
//others code
imshow(name, frameShow);

And I'm not sure what the first row code do. From my knowledge, IplImage is c language of older version (2.1 etc.). Since I'm compiling this code on MVS 2013 & using OpenCV 3.1.0, probably some code is not converted.

edit retag flag offensive close merge delete