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

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.

Answers (2)

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 Comments

thank you Geoff, that is really a good point.
but I have all have question about this, as the imshow() function, when i use this function to show the image, and make it a video, there are toolbar on this window, and for the windows system there is also another taskbar at the bottom of screen. how can I make it to full-screen display the video?
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.
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?

Sign in to comment.

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.

Categories

Find more on MATLAB Support Package for IP Cameras in Help Center and File Exchange

Asked:

on 12 Apr 2012

Community Treasure Hunt

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

Start Hunting!