Image Acquisition Parameters - when are these activated?

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

Réponses (1)

Image Analyst
Image Analyst le 25 Jan 2013

1 vote

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 commentaires

Brian
Brian le 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
Brian le 25 Jan 2013
Is handshaking required to make sure that the settings have been applied?
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?

Connectez-vous pour commenter.

Question posée :

le 25 Jan 2013

Community Treasure Hunt

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

Start Hunting!

Translated by