
Digital Signal Processor (DSP)
Version 1.1, December 7, 2004
Proprietary to OmniVision Technologies
27
O
mni
ision
5.2 Color Matrix
The color matrix is used to eliminate the cross talk induced by the micro-lens and color filter
process. It also compensates for lighting and temperature effects. It also can be implemented for
hue, color saturation, color space conversion from RGB to YUV or RGB to YCbCr.
5.2.1 Color Matrix Control
OV9650 has a 3x3 color matrix circuit inside. This color matrix performs the color correction and the
RGB to YUV/YCbCr conversion. Also, because of the Matrix linear algebra characteristic, it can also
do color gain and hue control as shown below:
[YUV] = [Gain Matrix]
×
[Hue Matrix]
×
[RGB to YUV/YCbCr Matrix]
×
[Color correction]
×
[RGB]
[YUV] = [Combined Matrix] [RGB]
Table 5-2.
Color Matrix Related Registers and Parameters
Name
Register
Address
MTX1
0x4F
MTX2
0x50
MTX3
0x51
MTX4
0x52
MTX5
0x53
MTX6
0x54
MTX7
0x55
MTX8
0x56
MTX9
0x57
SIGN
[7:0] for MTX9 through MTX2, respectively
0x58
SIGN
[0] for MTX1
0x69
ENABLE
0: Disable Matrix
1: Enable Matrix
0x3D
DOUBLER
0: Directly use Matrix
1: Double Matrix
0x41