i get a solid grey color on my window if i open a image [closed]
Steve sir as u said i tried with new versions of opencv but problem still pertains.. please help me out this is the code
#include "stdafx.h"
#include "cv.h"
#include "highgui.h"
int _tmain(int argc, _TCHAR* argv[])
{
IplImage* img = cvLoadImage( "image" );
cvNamedWindow( "MyJPG", CV_WINDOW_AUTOSIZE );
cvShowImage("MyJPG", img);
cvWaitKey(0);
cvReleaseImage( &img );
cvDestroyWindow( "MyJPG" );
return 0;
}
Since you have already a topic open about this, please use that topic to continue looking for a solution. I shall copy the answer of @Guanta to that topic.