YCbCr或Y'CbCr,是色彩空间的一种,通常会用于影片中的影像连续处理,或是数字摄影系统中。Y'和Y是不同的,Y是流明luminance),而Y'表示光的浓度且为非线性,使用伽马修正(gamma correction)编码处理,而Cb和Cr则为蓝色和红色的浓度偏移量。

一个完整的彩色影像和一个彩色影像只有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不是一种绝对色彩空间,是YUV压缩和偏移的版本。YCbCr的Y与YUV中的Y含义一致,Cb和Cr与UV同样都指色彩,Cb指蓝色色度,Cr指红色色度。在应用上很广泛,JPEG、MPEG、DVD、摄影机数字电视等皆采此一格式。因此一般俗称的YUV大多是指YCbCr。

Y'CbCr同样不是一种绝对的色彩空间,是一种针对RGB信息所做的编码。真正的颜色显示是根据实际RGB色盘(colorant)来决定。因此Y'CbCr所表示的值只有在标准RGB色盘或是ICC数据(ICC profile)有提供的时候才能计算。

YCbCr格式有:

  • 4∶4∶4
  • 4∶2∶2
  • 4∶1∶1
  • 4∶2∶0

名称 编辑

YCbCr有时会称为YCC. Y'CbCr在色差端子中也常被称为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]


 

 

 

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.")

外部链接 编辑