SightLine Applications Command, Control, and Script API  v3.5
List of all members
SLASetDigitalCameraParameters_t Struct Reference

Description

Dynamically adjust a 16-bit digital camera input to 8-bit image.

typedef struct {
u8 cameraIndex;
u8 mode;
u16 agHoldmax;
u16 agHoldmin;
u8 rowROIPct;
u8 colROIPct;
u8 highROIPct;
u8 wideROIPct;
u16 minAGRange;
u8 agRate8;
u8 minExp;
u8 maxExp;
u8 rejectDarkTail;
u8 rejectBrightTail;

To get the current values use SLAGetParameters_t. This will return a SLACurrentDigitalCameraParameters_t.

Note
Setting both `Autogain Max value' and `Autogain Min Value' to 0 will result in these parameters being ignored.
See also
SLASetADCParameters_t to set the brightiness (offset) and contrast (gain) used for AGC.
SLASetOverlayMode_t to enable histogram overlays for Capture & Display images.
EAN-Infrared-Temperature for more information.

Message ID 0x70

Byte Offset Name Description
4cameraIndexCamera Index
1500: only applies to camera index 2
5modeMode
Value Description
0 Run high bit depth autogain (for G16 images)
1 Manual gain and exposure control
2 Run camera automatic exposure and gain 4000 only, New 3.1
6-7agHoldmaxAutogain Max value (max value maps to 255 in 8 bit output
8-9agHoldminAutogain Min Value (min value maps to 0 in 8 bit output)
10rowROIPctRow ROI for Autogain stats. Row Offset in % of image height (255=100%); Full image(default) = 0
11colROIPctCol ROI for Autogain stats. Col Offset in % of image width (255=100%); Full image(default) = 0
12highROIPctHigh ROI for Autogain stats. Height in % of image height (255=100%); Full image(default) = 255
13wideROIPctWide ROI for Autogain stats. Width in % of image width (255=100%); Full image(default) = 255
14-15minAGRangeMinimum spread of auto gain. 0 = does nothing, 200 = max - min scale range must be at least 200.
Prevents over-scaling of flat scenes. New 3.00
16agRate8Auto gain update rate. 0 = reset to 32, 1 = minimum rate, 255 = maximum rate, 32 = default. New 3.00
Use freeze Autogain to stop AGC updates
17minExpIgnored(default) = 0. IMX412: Minimum exposure or integration time 0 to 255. New 3.2
18maxExpIgnored(default) = 0. IMX412: Maximum exposure or integration time 0 to 255. New 3.2
19rejectDarkTailReject or ignore the this percent/10 of the left/dark side of the histogram when calculating Autogain. 0 = reject none, 10 = reject 1.0%, 255 = reject 25.5%. Useful when there are a small number of very dark pixels in a scene. New 3.4
20rejectBrightTailReject or ignore the this percent/10 of the right/bright side of the histogram when calculating Autogain. 0 = reject none, 10 = reject 1.0%, 255 = reject 25.5%. Useful when there are a small number of very bright pixels in a scene. New 3.4