Camera Properties/Configure Selected

10 views (last 30 days)
Edward Ronan
Edward Ronan on 20 Oct 2015
Commented: Image Analyst on 21 Oct 2015
When I use the imaqtool with only one of my cameras connected to the computer I am able to access only very few camera settings. However when I plug a second camera into my computer and hit preview a dialog box comes up that prompts me to choose my camera. In this dialogue box there is a button that says "configure selected" that has many more camera properties for me to edit(and they all work). I would like to know how I can edit these with just a single camera plugged in, and how I could go about accessing them from my own code.
Specifically I'm very interested in manipulating the exposure time, but it does not show up when I use get(vid) or get(getselectedsource(vid)) etc. It seems to be only accessible from this configure selected window which only shows up when two cameras are plugged in. I am using winvideo, it is a Scorpion PointGrey camera, Matlab R2012b.

Answers (1)

Image Analyst
Image Analyst on 20 Oct 2015
Did you try something like this:
vidobj = videoinput('lumeneraimaqW32', 1, '4008x2672'); % Replace with your camera.
src = getselectedsource(vidobj);
src.Exposure = scrollbarValue; % Or some number that you want. I get mine from a scrollbar.
  2 Comments
Edward Ronan
Edward Ronan on 21 Oct 2015
Hi, thanks for the reply. I did try this but it just returns "Invalid property: 'Exposure'."
The only properties that come up with get(getselectedsource(vid)) are gain/brightness/gamma which are editable in the imaqtool. However the configure selected window allows me to edit brightness/exposure/gamma/shutter/gain/frame rate. It seems to only be editable from this GUI though. It's obvious that matlab knows about these other properties I just can't find any way to access them outside of the configure selected window of the imaqtool GUI.
Image Analyst
Image Analyst on 21 Oct 2015
Maybe try the brightness property.
Otherwise, I don't know and it's difficult for me to debug without your camera so I suggest you contact the Mathworks or the camera manufacturer.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!