Friday, April 19, 2013

YUV to RGB conversion example c c++ objc

For YUV to RGB conversion, you can use following formula. [YUV to RGB conversion]

R = Y + 1.403V'

G = Y - 0.344U' - 0.714V'

B = Y + 1.770U'
with reciprocal versions: (for RGB to YUV conversion )
Y = 0.299R + 0.587G + 0.114B

U'= (B-Y)*0.565

V'= (R-Y)*0.713