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

조회 수: 9 (최근 30일)
Songpo
Songpo 2012년 4월 12일
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.

답변 (2개)

Geoff
Geoff 2012년 4월 12일
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
Geoff
Geoff 2012년 4월 13일
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 2012년 4월 15일
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?

댓글을 달려면 로그인하십시오.


Jan
Jan 2012년 4월 13일
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.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by