cvNamedWindow in fullscreen mode

241 views
Skip to first unread message

Nbooo

unread,
Sep 11, 2011, 2:12:36 PM9/11/11
to OpenCVDevelopers
Hi everybody! I'm trying to implement fullscreen mode, but it doesn't
work =( Can anyone help me with it? I remember that I used fullscreen
mode successfully two month ago, so I suppose it's a matter of my
settings.

I use windows 7 64-bit, openCV 2.3 (x64 libs).

Thanks in advance!

Nbooo

unread,
Sep 11, 2011, 2:18:58 PM9/11/11
to OpenCVDevelopers
The code:

cvNamedWindow("Win" , CV_WINDOW_FULLSCREEN);

I also tried to setWindowProperty:

cvSetWindowProperty("Win" , CV_WND_PROP_AUTOSIZE ,
CV_WINDOW_FULLSCREEN);

but my window is not fullscreen.

Nikita Bovenko

unread,
Sep 12, 2011, 8:41:28 AM9/12/11
to OpenCVDevelopers
No ideas? Sorry for annoying, but I really need some help =) I find out some hacks to create pseudo-fullscreen, but I wonder why CV_WINDOW_FULLSCREEN stopped working? 

Thanks


2011/9/11 Nbooo <nbov...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "OpenCVDevelopers" group.
To post to this group, send email to opencvde...@googlegroups.com.
To unsubscribe from this group, send email to opencvdevelope...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opencvdevelopers?hl=en.


Icaro Oliveira

unread,
Sep 12, 2011, 8:46:18 AM9/12/11
to opencvde...@googlegroups.com
Try, cvNamedWindow("Win" , 1);. Do you put highgui_c.h (opencv svn) or highgui.h (opencv stable) in the include ? 

----------------------------------------------
Icaro Oliveira de Oliveira
PhD Student
IMAGO Research Group
Federal University of Parana (UFPR)
Brazil

Nikita Bovenko

unread,
Sep 12, 2011, 8:51:05 AM9/12/11
to opencvde...@googlegroups.com
Nope, it doesn't work for me. I use highgui.h in the include. Thank you for answer!

2011/9/12 Icaro Oliveira <icar...@gmail.com>

Icaro Oliveira

unread,
Sep 12, 2011, 9:03:26 AM9/12/11
to opencvde...@googlegroups.com
The FULLSCREEN mode is limited by the image resolution. Then you try to force the resolution.

You can use this:
cvNamedWindow("Win",CV_WINDOW_NORMAL);
cvResizeWindow("Win",1366,768);
Where my monitor resolution is 1366x768.


----------------------------------------------
Icaro Oliveira de Oliveira
PhD Student
IMAGO Research Group
Federal University of Parana (UFPR)
Brazil


Nikita Bovenko

unread,
Sep 12, 2011, 9:13:20 AM9/12/11
to opencvde...@googlegroups.com
Well, now i'm doing fullscreen this way. Ok, thank you anyway! 

2011/9/12 Icaro Oliveira <icar...@gmail.com>
Reply all
Reply to author
Forward
0 new messages