Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV CV_WINDOW_KEEPRATIO doesn't work

Hi everyone,

When I try to display image inside window it won't keep ratio when resized manually

namedWindow(WINDOW_NAME, CV_WINDOW_NORMAL | CV_WINDOW_KEEPRATIO | CV_GUI_EXPANDED);
imshow(WINDOW_NAME, image);

effect will be something like this

image description

This problem was already described here by some other person http://code.opencv.org/issues/3800, unfortunately some time passed by but the problem still exists. Does anyone knows how it can be fixed?

OpenCV: 3.0 RC1 Qt: 5.4.1 GCC: 4.9.2 OS: Xubuntu 15.04