Piranha 3 User Manual
Teledyne DALSA
03-032-10216-06
39
Calibrating Camera Gain (Automatic Tap Matching)
Pu rp ose:
Instead of m anu ally setting the analog gain to a sp ecific valu e, the
cam era can d eterm ine ap p rop riate gain valu es for op tim al tap
m atching. This com m and calcu lates and sets the analog gain
accord ing to the algorithm d eterm ined by the first p aram eter.
Syntax:
ccg i t i
Syntax Elem ents:
i
Calibration algorithm to u se.
1
= This algorithm ad ju sts analog gain so that 8% to 13% of
tap region of interest (ROI) p ixels are above the sp ecified
target valu e.
2
= This algorithm ad ju sts analog gain so that the average
pixel value in tap’s ROI is equal to the specified target value.
3
= This algorithm ad ju sts d igital gain (
ssg
) so that the
average pixel value in tap’s ROI is equal to the specified
target.
4
=
This algorithm ad ju sts the analog gain so that the
m axim u m p ixel p er tap w ithin the ROI of the m u lti-line
average (
css
com m and ) is equ al to the sp ecified target.
t
Tap valu e. Use
0
for all tap s or
1
to
8
for ind ivid u al tap
selection.
i
Calcu lation target valu e in a range from
1024
to
4055
DN
(12 bit LSB).
N otes:
This fu nction requ ires constant light inp u t w hile execu ting.
If very few tap p ixels are w ithin the ROI, gain calcu lation
m ay not be op tim al.
When all tap s are selected , tap s ou tsid e of the ROI are set to
the average gain of the tap s that are w ithin the ROI.
Perform analog gain algorithm s before p erform ing FPN and
PRN U calibration.
All d igital settings affect the analog gain calibration. If you
d o not w ant the d igital p rocessing to have any effect on the
cam era gain calibration, then tu rn off all d igital settings by
send ing the com m and s:
sdo
0 0
,
epc
0 0
,
ssb
0 0
, and
ssg
0 4096
Exam p le:
ccg 2 0 3040
Related Com m and s:
sag
,
ssg
All manuals and user guides at all-guides.com