How to increase image quality when taking images through Image Acquisition Toolbox beyond available options in Hardware Browser?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am using the following code to take automated images, using a Logitech c920 HD webcam.
vid = videoinput('winvideo', 2, 'RGB24_2304x1536');
src = getselectedsource(vid);
I copied this bit of code from the Image Acquisition Toolbox from the Hardware Browser. Within the toolbox you can choose from different formats and pixel for the webcam. The highest amounts of pixels out of the options, the drop down menu in the Hardware Browser gives me, is 2304x1536 (as you can see in the code above) which is 3538944 pixels or approximately 3.5 megepixels.
The webcam I am using is capable of taking 15 Megapixel images.
Can anyone help me with how to increase the image quality to higher megapixels?
I have tried to change the amount of pixels in the code as you can see below, so for example to double them to 4608x3072:
vid = videoinput('winvideo', 2, 'RGB24_4608x3072');
src = getselectedsource(vid);
But it only gives me the following error:
Error using videoinput (line 319)
The FORMAT specified is not supported by
this device. See
IMAQHWINFO(ADAPTORNAME).
Any help is much appreciated!
Thanks, David
0 Kommentare
Antworten (1)
David Tarkowski
am 11 Jul. 2013
The Logitech c920 has a 2304x1536 pixel sensor, so this is the maximum video resolution available using that camera. The larger resolutions that are available in the Logitech software are described as "software enhanced" which means that they are being scaled up using some image re-sizing algorithm. This is equivalent to using the imresize function in MATLAB.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!