xiJ - Technical Manual Version 0.06
43
4.1.4.3.1.
HDR mode: 12-bit, HG + LG (2-12-HDR-HL)
figure 4-7, HDR mode 2-12-HDR-HL
V
LG
: analog LG values from pixel
V
HG
: analog HG values from pixel
g
L
: analog PGA gain of low gain channel
g
H
: analog PGA gain of high gain channel
V
LG
*g
L
: analog LG values amplified by PGA gain gL, low gain channel
V
HG
*g
H
: analog HG values amplified by PGA gain gH, high gain channel
DL
12
: digital 12-bit LG values
DH
12
: digital 12-bit HG values
The FPGA merges the values to an HDR image.
The 16-bit output result is calculated as
12
12
16
12
12
(unsigned short)
1
*16.0
4095.0
4095.0
L
H
DH
DH
g
O
DL
DH
g
=
+
−
4.1.4.4.
Mode settings
–
factory presets (API)
To simplify the use of the camera modes in the API, presets can be used instead of setting all individual parameters.
Mode
Parameter setting (enum)
Related numeric value
12-STD-L
XI_US_12_STD_L
10
12-STD-H
XI_US_12_STD_H
11
2-12-CMS-S-L
XI_US_2_12_CMS_L
14
2-12-CMS-S-H
XI_US_2_12_CMS_H
15
2-12-HDR-HL
XI_US_2_12_HDR_HL
22
table 4-4, supported modes in xiAPI
The desired mode can be used as preset by selecting and setting:
xiSetParamInt(handle, XI_PRM_USER_SET_SELECTOR, value); // from table above
xiSetParamInt(handle, XI_PRM_USER_SET_LOAD, XI_ON);
https://www.ximea.com/support/wiki/apis/XiAPI_Manual#XI_PRM_USER_SET_SELECTOR-or-
for additional info.
Pixel LG
PGA
gain value
g
L
PGA
Pixel HG
DL
12
DH
12
sampled results
HDR mode 1: 12-bit, HG + LG
V
LG
V
HG
gain value
g
H
V
LG
*g
L
V
HG
*g
H
HDR-
algorithm
FPGA
16-bit output
unsigned short
O
16
low gain channel
high gain channel
ADC
12-bit
ADC
12-bit