User`s manual

AW00098504000 Color Creation and Enhancement
Basler ace Camera Link 133
Camera.BalanceRatioSelector.SetValue( BalanceRatioSelector_Red );
Camera.BalanceRatioAbs.SetValue( 1.20 );
// Set the green balance ratio
Camera.BalanceRatioSelector.SetValue( BalanceRatioSelector_Green );
Camera.BalanceRatioAbs.SetValue( 1.20 );
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 White Balance Using Direct Register Access
To set the balance ratio parameters via direct register access:
Set the value of White Balance Red register to adjust the red ratio.
Set the value of the White Balance Green register to adjust the green ratio.
Set the value of the White Balance Blue register to adjust the blue ratio.
For more information about direct register access, see Section 3.2 on page 21.
8.3.2 Gamma Correction
The gamma correction feature lets you modify the brightness of the pixel values output by the
camera’s sensor to account for a non-linearity in the human perception of brightness. There are two
modes of gamma correction available on the camera: sRGB and User.
sRGB Gamma
When the camera is set for sRGB gamma correction, it automatically sets the gamma correction to
adjust the pixel values so that they are suitable for display on an sRGB monitor. If you will be
displaying the images on an sRGB monitor, using this type of gamma correction is appropriate.
User Gamma
With User type gamma correction, you can set the gamma correction value as desired.
To accomplish the correction, a gamma correction value () is applied to the brightness value (Y) of
each pixel according to the following formula:
Y
corrected
Y
uncorrected
Y
max
---------------------------


Y
max
=