![background image](http://html1.mh-extra.com/html/daheng-imaging/mercury2-usb3/mercury2-usb3_user-manual_3255604166.webp)
8.Features
© 2023 China Daheng Group, Inc. Beijing Image Vision Technology Branch 157
In user mode, the user can input the color transformation value according to the actual situation to achieve
the color transformation effect.
ME2L Series
The camera stores the color correction parameters under different light sources. The interface of image
processing library realizes the color correction function, which is divided into 2 steps.
a)
Call the camera interface library to get the color correction parameters.
b)
Call the image processing library interface and pass in the color correction parameters to realize the
color correction function.
Color correction function can be used with the Gamma function to get better results. The
realization of Gamma function is also require calling the image processing library. The Gamma
value is passed into the Gamma function realization interface according to actual needs, and the
recommended Gamma is 1.8~2.2.
3)
How it works
The color correction function uses a transformation matrix to modify red, green, and blue pixel data for
each pixel.
The color transformation is performed by premultiplying a 3×1 matrix which containing R, G, and B pixel
values by a 3×3 matrix which containing the color transformation values:
[
Gain00
Gain01
Gain02
Gain10
Gain11
Gain12
Gain20 Gain21 Gain22
] [
R
G
B
]
=
[
R'
G'
B'
]
4)
Effect images
Figure 8-68 Before color transformation
Figure 8-69 After color transformation
8.4.4.
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.