opencv - resizeWindow do nothing?

opencv, resize, window

Solution

The following code snippet works for me:

namedWindow("Final", 0);
resizeWindow("Final", 500,500);

"Only windows created without CV_WINDOW_AUTOSIZE flag can be resized."

REF: http://docs.opencv.org/modules/highgui/doc/user_interface.html#resizewindow

Problem

I tried some variations but it seem that resizeWindow don't do anything. I give simple code example,the result is that the 2 windows are in the same size , eventough it supposed to be in different sizes. ``` Mat m = imread("somePath",CV_LOAD_IMAGE_COLOR); namedWindow("aa",CV_WINDOW_NORMAL); namedWindow("bb",CV_WINDOW_NORMAL); imshow("aa",m); imshow("bb",m); resizeWindow("aa",400,400); resizeWindow("bb",800,800); waitKey(0); ``` I work with eclipse-cdt on ubunto 12.04 with opencv 2.4.3. - I tried to debug it,getting into the the function but I don't succeed to add highGui modoul as external source, i get compile error of some h file missing.

Original source