From: Andrew Hogue <hogue@cs...> - 2004-11-01 23:00:11
I just noticed some weird things happening with my cameras when trying to
set the camera parameters properly....
Basically, when I start capturing from these cameras, I want to change the
camera parameters (i.e. brightness, gain, exposure) to some predefined
values. So I store them in some file and load them into memory.
Once the cameras are initialized, I set the values using libdc1394 calls,
What I've noticed is that I can do this and then save these values to my
parameter file and everything is cool until I turn off the power to the
cameras and re-start them.
After power-cycling the cameras and then re-loading the values, I get
different results with the same values for brightness etc...
It seems like the parameters are being updated relative to their current
values which are set through automatic gain control when the cameras
Is this normal?
In order to fix the problem, I hacked around it by simply using the
dc1394_init_camera() to set everything back to factory defaults, and
setting all of the features to be on manual mode. Then when I load my
parameters in it seems to be the proper settings...
Please let me know how to fix this properly.