Ask Your Question

Revision history [back]

Regarding imshow (opencv compiled with opengl support)

Hi all,

The following code is giving flickering window without displaying any image.

Mat img = imread("image.jpg",CV_LOAD_IMAGE_ANYCOLOR);
namedWindow("window", WINDOW_OPENGL);
imshow("window",img);
waitKey(0);

and the following code is working fine.

Mat img = imread("image.jpg",CV_LOAD_IMAGE_ANYCOLOR);
namedWindow("window", WINDOW_AUTOSIZE);
imshow("window",img);
waitKey(0);

I tested on two different computers. I am facing the same problem. Any help will be much appreciated. I tested the highgui gpu sample as well. I am facing the same problem.

I am using OpenCV 2.4.3 windows 7 32 bit.

-Satish.