First time here? Check out the FAQ!

Ask Your Question
0

Regarding imshow (opencv compiled with opengl support)

asked Feb 22 '13

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Feb 22 '13

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

Preview: (hide)

Comments

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 (Feb 22 '13)edit

Question Tools

Stats

Asked: Feb 22 '13

Seen: 2,018 times

Last updated: Feb 22 '13