Auto Exposure Tool
Description
The Set the exposure and gain to to a camera
This can be
determined on the fly or trained in advance
The control equation:
Error =(SetPoint - mean_or_peak)/SetPoint;
if(Error>ErrorThreshold)
NewGainExposure =CurrentGainExposure + (KGainExposure * Error);
Parameters
SetTrained
if set then in run mode uses the last trained
settings else calculate the gain exposure at run time
Control Type
sets the priority between gain and exposure control
Cal Type
Mean: uses the mean histogram value to get to the set point
Peak:
uses the peak histogram value to get to the set point
NOTE for
color iamges the mean and peak are the averaged for RGB
Min.Max Gain
the min max range wihtin with to set the gain
Amplification Gain (k)
in the control loop this is the scale used
a good estimate is 10% of the Gain range
Min.Max Exposure
the min max range within to set the Exposure
Amplification Exposure (k)
in the control loop this is the scale used
a good estimate is 10% of the Exposure range
Error Threshold
the set the stop conditon for the control loop
SetPoint
the desired control target
Trained Gain/Exposure
the values as calculated
if SetTrained is set then these values
are used to control the camera
TimeOut
The maximum time before the control is aborted
GoLive
ShowUI
ReadLimits
PeakPercentageLevel
if Cal Type is peak then the % (0..1) of peak
Suggested setting for different cameras
uEye
KGain 2.0, Min Max 1..100
KExposure 1.5, Min Max in msec
JAI 030GE,JAI 040GE, JAI 080GE,JAI 140GE
KGain 25.0
KExposure 30
JAI 200GE,JAI 500GE
KGain 25.0
KExposure 40
JAI 500GE
KGain 25.0
KExposure 40
DALSA Sapera monochrome
KGain 25.0
KExposure 3.5