Converting images or video between different color spaces is useful and sometimes necessary, here is a simple equation.

Y = (0.59 * G) + (0.31 * R) + (0.11 * B)
U = R - Y
V = B - Y

Log in or registerto write something here or to contact authors.