Ask Your Question

Revision history [back]

The window that opend by flag cv::WINDOW_AUTOSIZE is resized

I got some trouble in window matter.

I opened some window to show image init, and i tried resize.

I know that window opened by flag cv::WINDOW_AUTOSIZE is can't be resize, but in my PC, it resized.

I wonder that the size of image is not change and only size of window is resize when i resize the window.

Here is some of my code.

cv2.namedWindow('origin', cv2.WINDOW_AUTOSIZE)

cv2.imshow('origin', img)

cv2.moveWindow('origin', 200,200)

cv2.waitKey(0)

cv2.resizeWindow('origin', 200, 200)

I'll upload before and after the resize window

This is before the resize. image description

and this is after the resize

image description

The window that opend by flag cv::WINDOW_AUTOSIZE is resized

I got some trouble in window matter.

I opened some window to show image init, and i tried resize.

I know that window opened by flag cv::WINDOW_AUTOSIZE is can't be resize, but in my PC, it resized.

I wonder that the size of image is not change and only size of window is resize when i resize the window.

Here is some of my code.

cv2.namedWindow('origin', cv2.WINDOW_AUTOSIZE)

cv2.WINDOW_AUTOSIZE) cv2.imshow('origin', img)

cv2.imshow('origin', img)

cv2.moveWindow('origin', 200,200) cv2.waitKey(0)

cv2.moveWindow('origin', 200,200)

cv2.waitKey(0)

cv2.resizeWindow('origin', 200, 200)

200)

I'll upload before and after the resize window

This is before the resize. image description

and this is after the resize

image description

The window that opend by flag cv::WINDOW_AUTOSIZE is resized

I got some trouble in window matter.

I opened some window to show image init, and i tried resize.

I know that window opened by flag cv::WINDOW_AUTOSIZE cv::WINDOW_AUTOSIZE is can't be resize, but in my PC, it resized.

I wonder that the size of image is not change and only size of window is resize when i resize the window.

Here is some of my code.

cv2.namedWindow('origin', cv2.WINDOW_AUTOSIZE)

cv2.imshow('origin', img)

cv2.moveWindow('origin', 200,200)

cv2.waitKey(0)

cv2.resizeWindow('origin', 200, 200)

I'll upload before and after the resize window

This is before the resize. image description

and this is after the resize

image description