RGB and YIQ
RGB to YIQ
⎣⎡YIQ⎦⎤YIQorYIQ=⎣⎡0.2990.59590.21150.587−0.2746−0.52270.114−0.32130.3112⎦⎤⎣⎡RGB⎦⎤∈[0,1]∈[−0.5957,0.5957]∈[−0.5226,0.5226], normalized∈[0,255]∈[−128,128]∈[−128,128] YIQ to RGB
YIQ⎣⎡RGB⎦⎤∈[0,1]∈[−0.5957,0.5957]∈[−0.5226,0.5226]=⎣⎡1110.956−0.272−1.1060.621−0.6471.703⎦⎤⎣⎡YIQ⎦⎤