EBU Matrix to convert between YCbCr and RGB

 

[EBU: YUV <-> RGB]
0      <= Y, R, G, B <= 1
-0.436 <= U          <= 0.436
-0.615 <= V          <= 0.615
Y =                    0.299 * R + 0.587 * G + 0.114 * B
U = 0.493 * (B - Y) = -0.147 * R - 0.289 * G + 0.436 * B
V = 0.877 * (R - Y) =  0.615 * R - 0.515 * G - 0.100 * B

R = Y + 0.000 * U + 1.140 * V
G = Y - 0.396 * U - 0.581 * V
B = Y + 2.029 * U + 0.000 * V

 

 

你可能感兴趣的:(vb,Matrix)