Setting Brightness And Contrast - Basler DART BCON SERIES User Manual

Table of Contents

Advertisement

Features
250
200
150
100
50
0
50
Input pixel values
Fig. 42: Contrast = 0.3, Brightness = 0, S-Curve Contrast Mode
As shown in
Figure
Because the S-curve is flatter around its starting and end points and steeper around the
center, contrast in light and dark areas of the image is reduced, and contrast in mid tones is
increased.
Low input pixel values are lowered and high input pixel values are increased. As a result,
extreme dark and light areas of your image are compressed, which further improves the
perceived contrast.
As the curve always starts at (0,0) and ends at (X
is always preserved.
Setting contrast below 0 in S-curve mode results in an inverted S-curve with opposite effects.
11.5.3

Setting Brightness and Contrast

You can set brightness and contrast within your application software by using the pylon API. The
following code snippet illustrates using the API to set the parameters:
// Set the Brightness parameter value to 0.5
camera.BslBrightness.SetValue(0.5);
// Set the contrast mode to Linear
camera.BslContrastMode.SetValue(BslContrastMode_Linear);
// Set the Contrast parameter value to 1.2
camera.BslContrast.SetValue(1.2);
88
100
150
200
250
42, increasing the contrast in S-curve mode has the following effects:
8-bit pixel values
shown as an example
,Y
), the dynamic range of the image
max
max
AW00136902000
Basler dart BCON

Advertisement

Table of Contents
loading

Table of Contents