RGB -> YCrCb
Y = 0.299R + 0.587G + 0.144B
Cb =-0.172R - 0.339G + 0.511B
Cr = 0.511R - 0.428G - 0.083B
YCrCb -> RGB
R = Y + 1.371Cr
G = Y - 0.698Cr - 0.336Cb
B = Y + 1.732Cb
---------------------------------------------
Y = 0.299*R+0.587*G+0.114*B
Y = +0.299*R +0.587*G +0.114*B
R-Y = +0.701*R -0.587*G -0.114*B
B-Y = -0.299*R -0.587*G +0.886*B
Y = = +0.299*R +0.587*G +0.114*B
V =(R-Y)/1.14 = +0.615*R -0.515*G -0.100*B
U =(B-Y)/2.03 = -0.147*R -0.289*G +0.436*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
Y = +0.2990*R +0.5870*G +0.1140*B
I = +0.5959*R -0.2750*G -0.3210*B
Q = +0.2065*R -0.4969*G -0.2904*B
R = Y +0.9489*I +0.6561*Q
G = Y -0.2645*I -0.6847*Q
B = Y -1.1270*I +1.8050*Q
RGB -> YCrCb
Y = 0.299R + 0.587G + 0.144B
Cb =-0.172R - 0.339G + 0.511B
Cr = 0.511R - 0.428G - 0.083B
YCrCb -> RGB
R = Y + 1.371Cr
G = Y - 0.698Cr - 0.336Cb
B = Y + 1.732Cb
Y = 0.299R + 0.587G + 0.144B
Cb =-0.172R - 0.339G + 0.511B
Cr = 0.511R - 0.428G - 0.083B
YCrCb -> RGB
R = Y + 1.371Cr
G = Y - 0.698Cr - 0.336Cb
B = Y + 1.732Cb
---------------------------------------------
Y = 0.299*R+0.587*G+0.114*B
Y = +0.299*R +0.587*G +0.114*B
R-Y = +0.701*R -0.587*G -0.114*B
B-Y = -0.299*R -0.587*G +0.886*B
Y = = +0.299*R +0.587*G +0.114*B
V =(R-Y)/1.14 = +0.615*R -0.515*G -0.100*B
U =(B-Y)/2.03 = -0.147*R -0.289*G +0.436*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
Y = +0.2990*R +0.5870*G +0.1140*B
I = +0.5959*R -0.2750*G -0.3210*B
Q = +0.2065*R -0.4969*G -0.2904*B
R = Y +0.9489*I +0.6561*Q
G = Y -0.2645*I -0.6847*Q
B = Y -1.1270*I +1.8050*Q
RGB -> YCrCb
Y = 0.299R + 0.587G + 0.144B
Cb =-0.172R - 0.339G + 0.511B
Cr = 0.511R - 0.428G - 0.083B
YCrCb -> RGB
R = Y + 1.371Cr
G = Y - 0.698Cr - 0.336Cb
B = Y + 1.732Cb
'프로그래밍' 카테고리의 다른 글
[MFC]Visual C++과 MFC를 위한 좋은 책...3권 추천 (0) | 2003.07.12 |
---|---|
[Study]Embedded zerotree wavelet (EZW) algorithm (0) | 2003.07.12 |
[C/C++]http://www.cplusplus.com/ (0) | 2003.07.12 |
[MFC]팝업메뉴(Context Menu) 만들기 (0) | 2003.07.12 |
[객체지향설계] UML의 개요 (0) | 2003.07.12 |