Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Image Acquisition Parameters - when are these activated?

Asked by Brian on 25 Jan 2013

You can set parameters for your camera/frame grabber using

x = get(src, 'Parameter');l
set(src, 'Parameter', y);

or

src.Parameter = y

However, this just puts data into a structure. Does it change the camera settings immediately upon assignment? Do you have to get data in order to change the settings?

Brian

0 Comments

Brian

1 Answer

Answer by Image Analyst on 25 Jan 2013

The take effect immediately. They are sent to the camera as soon as you execute that line. Most or all of those things that you can assign numbers to area actually methods, not properties, so they actually do stuff (talk to the camera), not just store the number in a variable.

3 Comments

Brian on 25 Jan 2013

That seems quite understandable with "set". It just doesn't seem so plausible with src.Parameter = y. I guess src is not a variable, it is an object with methods.

This is one of the challenges with object oriented documentation. It seems quite difficult to understand which objects are data and which have methods.

Brian on 25 Jan 2013

Is handshaking required to make sure that the settings have been applied?

Image Analyst on 25 Jan 2013

Not really. You assume it did it's job. If there's some way to check, the go ahead and verify it if you want. It's like anything else. When you multiply matrix A times matrix B, do you do anything to make sure they multiplied correctly, or do you just assume that it did it?

Image Analyst

Contact us