54 of 95
Reference Manual ATOM one SSM500
R’ = (R x c0 + G x c1 + B x c2) / 4096
G’ = (R x c3 + G x c4 + B x c5) / 4096
B’ = (R x c6 + G x c7 + B x c8) / 4096
Value
Reset
Minimal
Maximal
C0
4096
-32768
32767
C1
0
-32768
32767
C2
0
-32768
32767
C3
0
-32768
32767
C4
4096
-32768
32767
C5
0
-32768
32767
C6
0
-32768
32767
C7
0
-32768
32767
C8
4096
-32768
32767
Example Pseudo Code:
float coeff7 = 1.123f;
float coeff7_scaled = coeff7*4096.0f;
// factor = 4599.808
int value = (int) round( coeff7_scaled ); // value = 4600
# color_cross 4096 0 0 0 4096 0 0 4600 4096
10.32
color_cross_offset <red_offset> <green_offset>
<blue_offset>
Sets the color cross talk offset in the FPGA.
In addition to the matrix multiplication an offset can be added to the pixel values for R, G
and B separately. This offset is applied after the matrix multiplication.
The offset values are two’s complement integer numbers with a range of -2048 (0x800) to
2047 (0x7FF). 0 is represented as 0x000.
Value
Reset
Minimal
Maximal
red_offset
0
-2048
2047
green_offset
0
-2048
2047
blue_offset
0
-2048
2047