Ask Your Question

Tsuyoshi's profile - activity

2018-05-03 07:10:52 -0600 received badge  Famous Question (source)
2016-02-01 01:12:03 -0600 received badge  Notable Question (source)
2015-01-05 11:01:36 -0600 received badge  Popular Question (source)
2012-07-24 20:50:49 -0600 commented answer Making a window full screen keeping aspect ratio

It does not seem to come to full screen as far as CV_WINDOW_AUTOSIZE is set. Thanks anyway. Actually, I made the aspect ratio of my image by adding black margin to its sides, and it's working now without any help by the property things mentioned above.

2012-07-22 03:19:46 -0600 received badge  Nice Question (source)
2012-07-20 20:25:35 -0600 received badge  Student (source)
2012-07-20 18:59:12 -0600 asked a question Making a window full screen keeping aspect ratio

I am trying to make a window full screen keeping its aspect ratio by the following code:

  cvNamedWindow(win_title, CV_WINDOW_NORMAL);
  cvSetWindowProperty(win_title, CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);
  cvSetWindowProperty(win_title, CV_WND_PROP_ASPECTRATIO, CV_WINDOW_KEEPRATIO);

but it does not keep the aspect ratio when it comes to full screen. Full-screen succeeded but keeping aspect ratio did not work. Any suggestions? (using opencv 2.4.2 windows binary distribution on Windows 7)