Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Missing Icons in Highgui Toolbar and wrong color values

Hey!

I just upgraded to 2.4.5 and like the new features of the highgui as saving the image or zooming. But I also have some problems:

The first problem are missing icons in the window's toolbar. The buttons exist are work, but they have no icon so that they are basically invisible.

The second problem is visible if I zoom far into a very small part of the image. At some point, each pixel is surrounded by a black border and contains three printed values: a red 0, a green 48 and a blue 57. I guess that these values should correspond to the color of the pixel (which is by the way correctly printed in the window's statusbar).

Here is my OpenCV cmake-result:

-- GUI: -- QT 4.x: YES (ver 4.8.1 EDITION = OpenSource) -- QT OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libQtOpenGL.so) -- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXext.so)

(I also used QT 4.8.1 to build my project. I used QtCreator on a Ubuntu 12.04 machine and g++ 4.6.3)

Third parties only Eigen and TBB.

Do the icons maybe only exist in a specific QT-Version?

Cheers, Nikolas

Missing Icons in Highgui Toolbar and wrong color values

Hey!

I just upgraded to 2.4.5 and like the new features of the highgui as saving the image or zooming. But I also have some problems:

The first problem are missing icons in the window's toolbar. The buttons exist are work, but they have no icon so that they are basically invisible.

The second problem is visible if I zoom far into a very small part of the image. At some point, each pixel is surrounded by a black border and contains three printed values: a red 0, a green 48 and a blue 57. I guess that these values should correspond to the color of the pixel (which is by the way correctly printed in the window's statusbar).

Here is my OpenCV cmake-result:

-- GUI: -- QT 4.x: YES (ver 4.8.1 EDITION = OpenSource) -- QT OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libQtOpenGL.so) -- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXext.so)

(I also used QT 4.8.1 to build my project. I used QtCreator on a Ubuntu 12.04 machine and g++ 4.6.3)

Third parties only Eigen and TBB.

Do the icons maybe only exist in a specific QT-Version?

Cheers, Nikolas

Update: The Icons are no QT-Icons but come with openCV. The are located in modules/highgui/src/files_Qt/Milky

and opencv-2.4.5/modules/highgui/src/window_QT.qrc contains mappings from zoom_x1-icon to a file in this folder (in which the image names are just numbers as 42.png).