User`s manual

AW00098504000 Features
Basler ace Camera Link 159
10.2 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 in the digital values output for the
pixels. Decreasing the black level setting will result in a negative offset in the digital values output
for the pixels.
The black level can be set on an integer scale ranging from 0 to 255.
If the camera is set for a pixel format that yields an 8 bit pixel depth, an increase of 16 in the black
level parameter setting will result in a positive offset of 1 in the digital values output for the pixels.
And a decrease of 16 in the setting will result in a negative offset of 1 in the digital values output for
the pixels.
If the camera is set for a pixel format that yields a 10 bit pixel depth, an increase of 4 in the black
level parameter setting will result in a positive offset of 1 in the digital values output for the pixels.
A decrease of 4 in the setting will result in a negative offset of 1 in the digital values output for the
pixels.
If the camera is set for a pixel format that yields a 12 bit pixel depth, an increase of 1 in the black
level parameter setting will result in a positive offset of 1 in the digital values output for the pixels.
A decrease of 1 in the setting will result in a negative offset of 1 in the digital values output for the
pixels.
Setting the Black Level Using Basler pylon
To set the black level:
Set the Black Level Selector to All.
Set the Black Level Raw parameter to your desired value.
You can use the pylon API to set the Black Level Selector and the Black Level Raw parameter
values from within your application software. The following code snippet illustrates using the API to
set the selector and the parameter value:
// Set the black level
Camera.BlackLevelSelector.SetValue ( BlackLevelSelector_All );
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on page 19.
Setting the Black Level Using Direct Register Access
To the black level via direct register access:
Set the value of the Black Level All register.
For more information about direct register access, see Section 3.2 on page 21.