how to make a video (captured from a camera) fullscreen.

5 visualizaciones (últimos 30 días)
Songpo
Songpo el 12 de Abr. de 2012
Hello all, I want to display the video capture from a camera connected with laptop in full-screen, without any toolbar or blank. my laptop resolution is 1600X900, the camera resolution is 1600X896 or 1920X2 in RGB_24 mode.1600X896 is much close with my screen resolution. if there are some zoom in or zoom out operation on the original image directly from the camera?
I am totally new for image or video processing, any comments or information are appreciated.

Respuestas (2)

Geoff
Geoff el 12 de Abr. de 2012
I really would recommend that you add two black lines above and below the images to pad it out to 900 pixels. Is this what you meant by 'blank'? You'll hardly notice, especially if your monitor's gamma is set up correctly.
If you enlarge the image by 4 pixels, you either have to crop the sides or change the aspect ratio. Either way, such a small adjustment is going to introduce noticeable artifacts such as blurring and/or horizontal striation. That will make your images look pretty terrible.
  3 comentarios
Geoff
Geoff el 13 de Abr. de 2012
You could start with this:
set(gcf, 'ToolBar', 'none');
set(gcf, 'MenuBar', 'none');
set(gcf, 'Position', get(0, 'ScreenSize'));
As for your Windows taskbar, try right-clicking it, selecting properties and checking 'Auto-hide the taskbar'.
It's not quite fullscreen. I assumed that you had already worked out how to do fullscreen. I don't know that one, as I haven't needed to do that with MatLab before.
Songpo
Songpo el 15 de Abr. de 2012
Hi Geoff, more questions please.
1, how to add two black lines above and below the images. I did it in this way, but failed.
zero=zeros(900,1600,3);
zero(3:898,:,:)=image;(image is the original image,896x1600);
when I use imshow(zero), there are two black lines above and bottom, but there is no image shown, it is blank.
2, I used those set functions, but i still cannot make it fullscreen, there is the title bar with the three buttons:minimize, maxmize, close; so the imshow would shrink the images before those set functions. and there are frame of this window.
do you have more comments or ideas?

Iniciar sesión para comentar.


Jan
Jan el 13 de Abr. de 2012
Under Windows you can use FEX: WindowAPI to get a full screen window with or without taskbar, with, without or with cropped window border and a lot of other tricks.

Categorías

Más información sobre MATLAB Support Package for IP Cameras en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by