53 of 95
Reference Manual ATOM one SSM500
10.30
color_conv <c0> .. <c8>
Sets the color conversion matrix.
The following formula is used for the conversion.
Y
= (c0 *r + c1*g + c2 *b) / 4096 + 64
Cb
= (c3 *r + c4*g + c5 *b) / 4096 + 512
Cr
= (c6 *r + c7*g + c8 *b) / 4096 + 512
Value
Reset
Minimal
Maximal
C0
871
-8192
8191
C1
2929
-8192
8191
C2
296
-8192
8191
C3
-469
-8192
8191
C4
-1579
-8192
8191
C5
2048
-8192
8191
C6
2048
-8192
8191
C7
-1860
-8192
8191
C8
-188
-8192
8191
Example Pseudo Code:
float coeff7 = -0.454152908f;
float coeff7_scaled = coeff7*4096.0f;
// factor = -1860.210...
int value = (int) round( coeff7_scaled ); // value = -1860
# color_conv 871 2929 296 -469 -1579 2048 2048 -1860 -188
10.31
color_cross <c0> .. <c8>
Sets the color cross talk matrix.
The Cross-Talk block in ISP is meant for correction of cross talk effects and color space
shifts inside the camera sensor.
The cross talk compensation unit performs a regular RGB to R’G’B’ color space
conversion, to compensate the cross talk between color components of the image sensor.
Also corrections of the color space and saturation can be done by appropriate matrix
coefficients.
Therefore this block offers the ability to correct each pixel value with a matrix operation
which looks like this: