i am reading the Learning CV book, i came across the first example and encounter this problem
Using OPENCV 3.0.0 and VS 2013, all libraries added and checked.
the code is as follows
#include "opencv2/highgui/highgui.hpp"
int main( int argc, char** argv)
{
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE);
cvShowImage("Example1", img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example1");
}
So after compiling or build, I got a window named Example1, and it is grey, no image in the window.
Is this correct? Or what should I expect to get?