YCbCr






一個彩色影像的圖和一個彩色影像只有Y成份的圖、只有Cb成份的圖、和只有Cr成份的圖。同時注意的是只有Y成份的圖基本上來說就是彩色影像那張圖的灰階本。that the white snow is represented as a middle value in both Cr and Cb; that the brown barn is represented by weak Cb and strong Cr; that the green grass is represented by weak Cb and weak Cr; and that the blue sky is represented by strong Cb and weak Cr.


YCbCr或Y'CbCr有的時候會被寫作:YCBCR或是Y'CBCR,是色彩空間的一種,通常會用于影片中的影像連續處理,或是數字攝影系統中。Y'和Y是不同的,Y就是所謂的流明(luminance),表示光的濃度且為非線性,使用伽馬修正(gamma correction)編碼處理。Y'為顏色的亮度(luma)成分、而CB和CR則為藍色和紅色的濃度偏移量成份。


Y'CbCr不是一種絕對的色彩空間,是一種針對RGB資訊所做的編碼。真正的顏色顯示是根據實際RGB色盤(colorant)來決定的。因此Y'CbCr所表示的值只有在標準RGB色盤或是ICC數據(ICC profile)有提供的時候才能計算。


YCbCr不是一種絕對色彩空間,是YUV壓縮和偏移的版本。YCbCr的Y與YUV中的Y含义一致,Cb和Cr與UV同样都指色彩,Cb指蓝色色度,Cr指红色色度,在应用上很广泛,JPEG、MPEG、DVD、攝影機、數字電視等皆採此一格式。因此一般俗稱的YUV大多是指YCbCr。


YCbCr格式有:



  • 4∶4∶4

  • 4∶2∶2

  • 4∶1∶1

  • 4∶2∶0



名稱


YCbCr有時會稱為YCC. Y'CbCr在模拟分量影像(analog component video)中也常被稱為YPbPr。



技術細節


Y'CbCr訊號(prior to scaling and offsets to place the signals into digital form)被稱為YPbPr,而且產生時必須合乎gamma-adjusted RGB source有二個不同的常數Kb和Kr如下:


YPbPr (analog version of Y'CbCr) from R'G'B'



Y' =  Kr * R'        + (1 - Kr - Kb) * G' + Kb * B'
Pb = 0.5 * (B' - Y') / (1 - Kb)
Pr = 0.5 * (R' - Y') / (1 - Kr)
....................................................
R', G', B' in [0; 1]
Y' in [0; 1]
Pb in [-0.5; 0.5]
Pr in [-0.5; 0.5]


Y′=Kr∗R′+(1−Kr−Kb)∗G′+Kb∗B′{displaystyle Y'=Kr*R'+(1-Kr-Kb)*G'+Kb*B',}Y'=Kr*R'+(1-Kr-Kb)*G'+Kb*B',

Pb=12∗B′−Y′1−Kb{displaystyle Pb={frac {1}{2}}*{frac {B'-Y'}{1-Kb}}}Pb={frac  12}*{frac  {B'-Y'}{1-Kb}}

Pr=12∗R′−Y′1−Kr{displaystyle Pr={frac {1}{2}}*{frac {R'-Y'}{1-Kr}}}Pr={frac  12}*{frac  {R'-Y'}{1-Kr}}


where Kb and Kr are ordinarily derived from the definition of the corresponding RGB space. (The equivalent matrix manipulation is often referred to as the "color matrix.")



外部連結



  • Charles Poynton - Color FAQ

  • Charles Poynton - Video engineering

  • YCrCb to RGB converter

  • Color Space Visualization

  • PC Magazine Encyclopedia: YCbCr





Comments

Popular posts from this blog

Information security

Lambak Kiri

章鱼与海女图