8.Features
© 2023 China Daheng Group, Inc. Beijing Image Vision Technology Branch 109
2)
Configuring saturation
Enter the expected value for the Saturation parameter and the range is 0 to 128. By default, the parameter
is set to 64 (no saturation perform)
3)
How it works
The saturation adjustment is performed by a 3 × 3 matrix. When the saturation intensity is modified, the
saturation can be changed by modifying the adjustment matrix A.
[
R
out
G
out
B
out
]
=
[
RR
GR
BR
RG
GG
BG
RB
GB
BB
] [
R
in
G
in
B
in
]
+
[
R
offset
G
offset
B
offset
]
A=
[
RR
GR
BR
RG
GG
BG
RB
GB
BB
]
Saturation adjustment and color correction adjustment both adopt the form of a matrix, so the saturation
is adjusted at the same time after color correction is enabled.
4)
Effect images
Figure 8-65 Before saturation
Figure 8-66 After saturation
8.4.7.
Gamma
The Gamma can optimize the brightness of acquired images for display on a monitor.
1)
Prerequisites
If the GammaEnable parameter is available, it must be set to true.
2)
How it works
The camera applies a Gamma correction value (
γ
) to the brightness value of each pixel according to the
following formula (red pixel value ® of a color camera shown as an example):
R
corrected
=(
R
uncorrected
R
max
)
γ
×R
max
The maximum pixel value (R
max
) equals, e.g., 255 for 8-bit pixel formats or 4095 for 12-bit pixel formats.
3)
Enabling Gamma correction
To enable Gamma correction, use the GammaValue parameter. The GammaValue parameter’s range is
0 to 4.00.