Color conversion (rgb ‡ yuv), Hue and saturation, Color conversion (rgb – ALLIED Vision Technologies Marlin F-201 User Manual
Page 107: Color conversion (rgb yuv)

Description of the data path
MARLIN Technical Manual V2.4.0
107
Color conversion (RGB
YUV)
The conversion from RGB to YUV is made using the following formulae:
Hue and saturation
Marlin CCD color models are equipped with hue and saturation registers.
The hue register at offset 810h allows to change the color of objects without
changing the white balance by +/- 40 steps (+/- 10°) from the nominal per-
ception. Use this setting to manipulate the color appearance after having
done the white balance.
The saturation register at offset 814h allows to change the intensity of the
colors by +/-100%.
This means a setting of zero changes the image to black and white and a set-
ting of 511 doubles the color intensity compared to the nominal one at 256.
Note
L
Configuration
To configure this feature in an advanced register: See
119: Advanced register: Color correction
Color-correction coefficients cannot be changed.
Formula 2: RGB to YUV conversion
Note
L
•
As mentioned above: Color processing can be bypassed
by using the so called RAW image transfer.
•
RGB
YUV conversion can be bypassed by using RGB8
format and mode. This is advantageous for edge color
definition but needs more bandwidth (300% instead of
200% relative to b/w or RAW consumption) for the
transmission, so that the maximal frame frequency will
drop.
Y
0.3
R
×
0.59
G
×
0.11
B
×
+
+
=
U
0.169
–
R
×
0.33
G
×
0.498
B
×
128
+
+
–
=
V
0.498
R
×
0.420
G
×
–
0.082
B
Ч
–
128
+
=