resizeWindow() on OS X (Bug #3200)


Added by Peter Lehrer over 11 years ago. Updated over 10 years ago.


Status:Done Start date:2013-08-06
Priority:Normal Due date:
Assignee:Alexander Smorkalov % Done:

100%

Category:highgui-gui
Target version:2.4.10
Affected version:2.4.0 - 2.4.6 Operating System:Mac OSX
Difficulty: HW Platform:x64
Pull request:

Description

Using the function resizeWindow() on Max OS X 10.8.4 Mountain Lion causes the windows, which show the video feed from the webcam and the processed images, to appear at the bottom of the screen. They can't be moved upwards or anywhere else, and the images appear to update continuously in an unstable fashion. I included the code and the jpeg that is used in the program as well as the screen shot of the program running on my Mac. The jpeg appears correctly during program execution.

--Peter


Makefile - compile on OS X (100 Bytes) Peter Lehrer, 2013-08-06 05:40 pm

CheapWebCam.cpp - source code, see lines 134 - 139 (3.9 kB) Peter Lehrer, 2013-08-06 05:40 pm

BackgroundComputerVision_2.jpg - needed for program (25.4 kB) Peter Lehrer, 2013-08-06 05:40 pm

Screen_Shot.png - program running (3.1 MB) Peter Lehrer, 2013-08-06 05:40 pm

CheapWebCam.cpp - Simplified version of the original code that produces the reported defect (4.1 kB) Mike Maraya, 2014-06-26 04:01 am


Associated revisions

Revision f8254a10
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #3200 from pierriko:master

Revision 607d3b54
Added by Mike Maraya almost 10 years ago

Fixes resizeWindow() on OS X (Bug #3200)

History

Updated by Victor Kocheganov over 11 years ago

Hello Peter,

thank you for submitting this detailed ticket!
We will try to include fix for the issue into one of the next releases. But unfortunately we have limited resources at the moment and if there is a chance you find time to investigate it by yourself it would be highly appreciated! (Please see http://code.opencv.org/projects/opencv/wiki/How_to_contribute for details)

Thank you in advance,
Victor

  • Target version set to 2.4.7
  • Assignee set to Alexander Smorkalov

Updated by Victor Kocheganov over 11 years ago

  • Status changed from New to Open

Updated by Alexander Smorkalov over 11 years ago

  • Target version changed from 2.4.7 to 2.4.8
  • Affected version changed from 2.4.6 (latest release) to 2.4.0 - 2.4.6

Updated by Alexander Smorkalov about 11 years ago

  • Target version changed from 2.4.8 to 2.4.9

Updated by Alexander Smorkalov almost 11 years ago

  • Target version changed from 2.4.9 to 2.4.10

Updated by Mike Maraya over 10 years ago

I've been looking into this and thanks to the detailed description and code listing, I have been able to simplify the code that produces the bug under Mac OS X 10.9.3 (see attached). Alexander, do you mind if I continued working on this issue until I've developed a pull request?

Updated by Mike Maraya over 10 years ago

According to http://docs.opencv.org/modules/highgui/doc/user_interface.html?highlight=resizewindow#void%20resizeWindow(const%20string&%20winname,%20int%20width,%20int%20height):

  • Only windows created without CV_WINDOW_AUTOSIZE flag can be resized.

Changing the window flag from CV_WINDOW_AUTOSIZE to CV_WINDOW_NORMAL eliminates the reported defect and the window is displayed correctly. Should an exception should be thrown when a window created with the CV_WINDOW_AUTOSIZE flag is resized or should resize attempts be ignored when the flag is set?

Updated by Mike Maraya over 10 years ago

  • Status changed from Open to Done
  • % Done changed from 0 to 100

Also available in: Atom PDF