Ask Your Question

Regarding imshow (opencv compiled with opengl support)

asked 2013-02-22 11:27:49 -0600

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);

and the following code is working fine.

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

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.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-02-22 11:53:31 -0600

Probably, you don't have activated OpenGL support for OpenCV.

edit flag offensive delete link more


I made sure that proper paths are selected for opengl ( windows SDK include directories) in CMAKE GUI.if that is what you are talking about. Anyways thanks for your help.

satish.lokkoju gravatar imagesatish.lokkoju ( 2013-02-22 12:34:21 -0600 )edit

Question Tools


Asked: 2013-02-22 11:27:49 -0600

Seen: 1,959 times

Last updated: Feb 22 '13