Features
AW00136902000
84
Basler dart BCON
You can set the Gain parameter value from within your application software by using the Basler
pylon API. The following code snippet illustrates using the API to set the parameter value:
// Set the gain to 0.0359
camera.Gain.SetValue(0.0359);
11.3 Black Level
Adjusting the camera’s black level will result in an offset to the pixel values output by the camera.
Increasing the black level setting will result in a positive offset (+1) in the pixel values output for the
pixels. Decreasing the black level setting will result in a negative offset (-1) in the pixel values output
for the pixels.
The black level can be adjusted by changing the value of the BlackLevel parameter.
The range of the allowed settings for the BlackLevel parameter value in DN varies by pixel format
as shown in
You can set the BlackLevel parameter value from within your application software by using the
Basler pylon API. The following code snippet illustrates using the API to set the parameter value:
// Set the black level to 1.0
camera.BlackLevel.SetValue(1.0);
On daA1280-54bm/bc cameras, the black level settings are applied to the pixel
data
after
the gain settings have been applied.
On all other dart BCON cameras, the black level settings are applied
before
the
gain settings.
Min Allowed Black
Level Setting
Max Allowed Black Level Setting
(8-bit pixel format)
Max Allowed Black Level Setting
(12-bit pixel format)
0
32
512
Table 33: Minimum and Maximum Black Level Settings [DN]