Ask Your Question

Giraphant's profile - activity

2016-07-21 06:26:03 -0600 received badge  Student (source)
2015-05-28 08:15:12 -0600 asked a question 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