digplanet beta 1: Athena
Share digplanet:

Agriculture

Applied sciences

Arts

Belief

Business

Chronology

Culture

Education

Environment

Geography

Health

History

Humanities

Language

Law

Life

Mathematics

Nature

People

Politics

Science

Society

Technology

A visualization of YCbCr color space
The CbCr plane at constant luma Y'=0.5
A color image and its Y, CB and CR components. The Y image is essentially a greyscale copy of the main image.

YCbCr, Y′CbCr, or Y Pb/Cb Pr/Cr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in video and digital photography systems. Y′ is the luma component and CB and CR are the blue-difference and red-difference chroma components. Y′ (with prime) is distinguished from Y which is luminance, meaning that light intensity is nonlinearly encoded based on gamma corrected RGB primaries.

Y′CbCr is not an absolute color space; rather, it is a way of encoding RGB information. The actual color displayed depends on the actual RGB primaries used to display the signal. Therefore a value expressed as Y′CbCr is predictable only if standard RGB primary chromaticities are used.

Contents

Rationale [edit]

Cathode ray tube displays are driven by red, green, and blue voltage signals, but these RGB signals are not efficient as a representation for storage and transmission, since they have a lot of redundancy.

YCbCr and Y′CbCr are a practical approximation to color processing and perceptual uniformity, where the primary colors correspond roughly to red, green and blue are processed into perceptually meaningful information. By doing this, subsequent image/video processing, transmission and storage can do operations and introduce errors in perceptually meaningful ways. Y′CbCr is used to separate out a luma signal (Y′) that can be stored with high resolution or transmitted at high bandwidth, and two chroma components (CB and CR) that can be bandwidth-reduced, subsampled, compressed, or otherwise treated separately for improved system efficiency.

One practical example would be decreasing the bandwidth or resolution allocated to "color" compared to "black and white", since humans are more sensitive to the black-and-white information (see image example to the right).

Name [edit]

YCbCr is sometimes abbreviated to YCC. Y′CbCr is often called YPbPr when used for analog component video, although the term Y′CbCr is commonly used for both systems, with or without the prime.

Y′CbCr is often confused with the YUV color space, and typically the terms YCbCr and YUV are used interchangeably, leading to some confusion; when referring to signals in video or digital form, the term "YUV" mostly means "Y′CbCr".

Y′CbCr signals (prior to scaling and offsets to place the signals into digital form) are called YPbPr, and are created from the corresponding gamma-adjusted RGB (red, green and blue) source using two defined constants KB and KR as follows:

\begin{align}
Y' &= K_R \cdot R' + (1 - K_R - K_B) \cdot G' + K_B \cdot B'\\
P_B &=\frac12 \cdot \frac{B' - Y'}{1 - K_B}\\
P_R &=\frac12 \cdot \frac{R' - Y'}{1 - K_R}
\end{align}

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

Here, the prime ′ symbols mean gamma correction is being used; thus R′, G′ and B′ nominally range from 0 to 1, with 0 representing the minimum intensity (e.g., for display of the color black) and 1 the maximum (e.g., for display of the color white). The resulting luma (Y) value will then have a nominal range from 0 to 1, and the chroma (PB and PR) values will have a nominal range from -0.5 to +0.5. The reverse conversion process can be readily derived by inverting the above equations.

When representing the signals in digital form, the results are scaled and rounded, and offsets are typically added. For example, the scaling and offset applied to the Y′ component per specification (e.g. MPEG-2[1]) results in the value of 16 for black and the value of 235 for white when using an 8-bit representation. The standard has 8-bit digitized versions of CB and CR scaled to a different range of 16 to 240. Consequently, rescaling by the fraction (235-16)/(240-16) = 219/224 is sometimes required when doing color matrixing or processing in YCbCr space, resulting in quantization distortions when the subsequent processing is not performed using higher bit depths.

The scaling that results in the use of a smaller range of digital values than what might appear to be desirable for representation of the nominal range of the input data allows for some "overshoot" and "undershoot" during processing without necessitating undesirable clipping. This "head-room" and "toe-room" can also be used for extension of the nominal color gamut, as specified by xvYCC.

Since the equations defining YCbCr are formed in a way that rotates the entire nominal RGB color cube and scales it to fit within a (larger) YCbCr color cube, there are some points within the YCbCr color cube that cannot be represented in the corresponding RGB domain (at least not within the nominal RGB range). This causes some difficulty in determining how to correctly interpret and display some YCbCr signals. These out-of-range YCbCr values are used by xvYCC to encode colors outside the BT.709 gamut.

ITU-R BT.601 conversion [edit]

The form of Y′CbCr that was defined for standard-definition television use in the ITU-R BT.601 (formerly CCIR 601) standard for use with digital component video is derived from the corresponding RGB space as follows:

K_B = 0.114
K_R = 0.299

From the above constants and formulas, the following can be derived for ITU-R BT.601.

Analog YPbPr from analog R'G'B' is derived as follows:

\begin{align}
Y'  &=  & 0.299    \cdot R' &+& 0.587    \cdot G' &+& 0.114    \cdot B'\\
P_B &= -& 0.168736 \cdot R' &-& 0.331264 \cdot G' &+& 0.5      \cdot B'\\
P_R &=  & 0.5      \cdot R' &-& 0.418688 \cdot G' &-& 0.081312 \cdot B'
\end{align}

Digital Y′CbCr (8 bits per sample) is derived from analog R'G'B' as follows:

\begin{align}
Y'  &=&  16 &+& ( 65.481 \cdot R' &+& 128.553 \cdot G' &+& 24.966 \cdot B')\\
C_B &=& 128 &+& (-37.797 \cdot R' &-& 74.203  \cdot G' &+& 112.0  \cdot B')\\
C_R &=& 128 &+& (112.0   \cdot R' &-& 93.786  \cdot G' &-& 18.214 \cdot B')
\end{align}

or simply componentwise

\begin{align}
(Y', C_B, C_R) &=& ( 16, 128, 128 ) + ( 219 \cdot Y, 224 \cdot P_B, 224 \cdot P_R)\\
\end{align}

The resultant signals range from 16 to 235; the values from 0 to 15 are called footroom, while the values from 236 to 255 are called headroom.

Alternatively, digital Y′CbCr can derived from digital R'dG'dB'd (8 bits per sample, each using the full range with zero representing black and 255 representing white) according to the following equations:

\begin{align}
Y'  &=&  16 &+& \frac{ 65.738 \cdot R'_D}{256} &+& \frac{129.057 \cdot G'_D}{256} &+& \frac{ 25.064 \cdot B'_D}{256}\\
C_B &=& 128 &-& \frac{ 37.945 \cdot R'_D}{256} &-& \frac{ 74.494 \cdot G'_D}{256} &+& \frac{112.439 \cdot B'_D}{256}\\
C_R &=& 128 &+& \frac{112.439 \cdot R'_D}{256} &-& \frac{ 94.154 \cdot G'_D}{256} &-& \frac{ 18.285 \cdot B'_D}{256}
\end{align}

In the above formula, the scaling factors are multiplied by \frac{256}{255}. This allows for the value 256 in the denominator, which can be calculated by a single bitshift.

If the R'dG'dB'd digital source includes footroom and headroom, the footroom offset 16 needs to be subtracted first from each signal, and a scale factor of \frac{255}{219} needs to be included in the equations.

The inverse transform is:

\begin{align}
R'_D &=& \frac{298.082 \cdot Y'}{256} &&&+& \frac{408.583 \cdot C_R}{256} &-& 222.921\\
G'_D &=& \frac{298.082 \cdot Y'}{256} &-& \frac{100.291 \cdot C_B}{256} &-& \frac{208.120 \cdot C_R}{256} &+& 135.576\\
B'_D &=& \frac{298.082 \cdot Y'}{256} &+& \frac{516.412 \cdot C_B}{256} &&&-& 276.836
\end{align}

The inverse transform without any roundings (using values coming directly from ITU-R BT.601 recommendation) is:

\begin{align}
R'_D &=& \frac{255}{219}\cdot(Y'-16) &+&&& \frac{255}{112}\cdot0.701\cdot(C_R-128)\\
G'_D &=& \frac{255}{219}\cdot(Y'-16) &-& \frac{255}{112}\cdot0.886\cdot\frac{0.114}{0.587}\cdot(C_B-128) &-&   \frac{255}{112}\cdot0.701\cdot\frac{0.299}{0.587}\cdot(C_R-128)\\
B'_D &=& \frac{255}{219}\cdot(Y'-16) &+& \frac{255}{112}\cdot0.886\cdot(C_B-128)
\end{align}

This form of Y′CbCr is used primarily for older standard-definition television systems, as it uses an RGB model that fits the phosphor emission characteristics of older CRTs.

ITU-R BT.709 conversion [edit]

A different form of Y′CbCr is specified in the ITU-R BT.709 standard, primarily for HDTV use. The newer form is also used in some computer-display oriented applications. In this case, the values of Kb and Kr differ, but the formulas for using them are the same. For ITU-R BT.709, the constants are:

K_B = 0.0722
K_R = 0.2126

This form of Y′CbCr is based on an RGB model that more closely fits the phosphor emission characteristics of newer CRTs and other modern display equipment.

The definitions of the R', G', and B' signals also differ between BT.709 and BT.601, and differ within BT.601 depending on the type of TV system in use (625-line as in PAL and SECAM or 525-line as in NTSC), and differ further in other specifications. In different designs there are differences in the definitions of the R, G, and B chromaticity coordinates, the reference white point, the supported gamut range, the exact gamma pre-compensation functions for deriving R', G' and B' from R, G, and B, and in the scaling and offsets to be applied during conversion from R'G'B' to Y′CbCr. So proper conversion of Y′CbCr from one form to the other is not just a matter of inverting one matrix and applying the other. In fact, when Y′CbCr is designed ideally, the values of KB and KR are derived from the precise specification of the RGB color primary signals, so that the luma (Y′) signal corresponds as closely as possible to a gamma-adjusted measurement of luminance (typically based on the CIE 1931 measurements of the response of the human visual system to color stimuli).[2]

JPEG conversion [edit]

JFIF usage of JPEG allows Y′CbCr where Y′, CB and CR have the full 8-bit range of 0-255:[3]

\begin{align}
Y'  &=&   0 &+ (0.299    \cdot& R'_D) &+ (0.587    \cdot& G'_D) &+ (0.114    \cdot& B'_D)\\
C_B &=& 128 &- (0.168736 \cdot& R'_D) &- (0.331264 \cdot& G'_D) &+ (0.5      \cdot& B'_D)\\
C_R &=& 128 &+ (0.5      \cdot& R'_D) &- (0.418688 \cdot& G'_D) &- (0.081312 \cdot& B'_D)
\end{align}

And back:

\begin{align}
R  &=& Y                            &&& + 1.402   \cdot &(C_R-128) \\
G  &=& Y   &- 0.34414 \cdot &(C_B-128)& - 0.71414 \cdot &(C_R-128) \\
B  &=& Y   &+ 1.772   \cdot &(C_B-128)&
\end{align}

CbCr Planes at different Y values [edit]

References [edit]

  1. ^ e.g. the MPEG-2 specification, ITU H.262 2000 E pg. 44
  2. ^ Charles Poynton, Digital Video and HDTV, Chapter 24, pp. 291–292, Morgan Kaufmann, 2003.
  3. ^ JPEG File Interchange Format Version 1.02

External links [edit]


Original courtesy of Wikipedia: http://en.wikipedia.org/wiki/YCbCr — Please support Wikipedia.
A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia.
910 videos foundNext > 

Image Channels: YCbCr

HiDef baby! It's all about BRILLIANCE! I use this node to Pop the Luminance and make it snappy. Also I give you tricks of the trade in blowing up digital ima...

$98 Blu-ray Player, HD Bargains, YCbCr vs. RGB HTPC, ...

Walmart's $98 Blu-ray Player vs. Sony's BDP-S360 and LG's BD390, Netflix + Sony, Home Theater Help: Component vs. RGB and Our Very First Recession Selection!

YCbCr and DCT Compression

this video is a guide to a) Anonymous functions b) YCbCr c) Jpeg d) DCT e) down sample f) Unsample.

Split color channels - RGB, HSI, YCbCr, YUV, YIQ, YUW

This program splits the channel into several version. There are many color channels for image processing such as RGB, HSI, YCbCr, YUV, YIQ, YUW. You can down...

Versuch mit Magix RAW AVI (Uncompressed RGB/YCbCr) mit x264.exe ein MKV-Video zu erzeugen

Ich hab jetzt mal VirtualDub gestertet und ein RAW AVI (50 Frames, 1920x1080, 47.95Hz) geladen: Bei Video/Compression steht: "(Uncompressed RGB/YCbCr)". Bei ...

Double Dragon Neon (Xbox 360) - Video Capture Test HDMI 720p YCbCr Avermedia HD

YCbCr 0713 1412

Test de qualité EzCap148 pro - PS2/ YCbCr/ Metal Gear 3

Test de qualité avec l'EzCap 148 Pro en YCbCr 576P (component 3 RCA rouge, vert & bleu) sur PlayStation2. http://images4.hiboox.com/images/3510/4ff460ed7ddd7...

Test de qualité EzCap148 pro - PS2/ YCbCr/ GunGriffon Blaze

Test de qualité avec l'EzCap 148 Pro en YCbCr 576P (component 3 RCA rouge, vert & bleu) sur PlayStation2. http://images4.hiboox.com/images/3510/4ff460ed7ddd7...

ironmanexperiment ycbcr justydct

910 videos foundNext > 

100 news items

PetaPixel

PetaPixel
Tue, 30 Apr 2013 08:01:18 -0700

DSLR filmmakers will be happy to learn that their 5D Mark III can now be upgraded (for free) to capture clean, uncompressed YCbCr 4:2:2 8-bit digital video. Uncompressed footage will be sent with embedded time code over the camera's HDMI output while ...

ŚwiatObrazu.pl

ŚwiatObrazu.pl
Thu, 16 May 2013 02:12:33 -0700

Wśród nowości warto wymienić "czyste" wyjście HDMI, co usprawni procedury edycji i monitorowania plików wideo, możliwość wyprowadzania nieskompresowanych danych (YCbCr 4:2:2, 8 bitów) bez osadzonych na nich symboli czy ikon z lustrzanki.
 
Engadget 中国版 (博客)
Mon, 13 May 2013 20:02:06 -0700

目前已经可以直接在官网上看到的最新1.2.1 版本软件更新,提供了YCbCr 4:2:2 纯净讯号的无压缩HDMI 输出机能,并且拥有同时显示于外接监看屏幕并输出无压缩HDMI 影像的能力;还带来了新的选单接口,可以直接加入Time ...

Panorama Audiovisual

Panorama Audiovisual
Sun, 05 May 2013 23:01:02 -0700

Gracias al nuevo firmware será posible contar durante la filmación con un monitor de referencia externo al mismo tiempo que la salida HDMI sin compresión (YCbCr 4:2:2, 8 bit) mejorará la eficiencia en edición y permitirá una grabación directa desde ...

Donews

Donews
Mon, 13 May 2013 23:00:11 -0700

... 传感器具备更好虚化效果。其他功能还包括感光度最高可扩展至ISO 25600。相机的CF卡可记录8bit 4:2:2 4K 高清视频(视频最长时长:4小时02分00秒),其捕获的视频(不包括4K视频)可以从相机的HDMI端子输出到外部录像 ...

Digit. Интернет-журнал о технологиях. Глубоко о высоком.

Digit. Интернет-журнал о технологиях. Глубоко о высоком.
Mon, 06 May 2013 01:17:11 -0700

... с объективами с максимальной диафрагмой F/8, и крестообразными областями фокусировки, что ранее было прерогативой флагманской камеры EOS-1D X. Также теперь доступен вывод несжатого 8-битного видеопотока YCbCr 4:2:2 по HDMI, ...

slashCAM

Heise Newsticker
Tue, 30 Apr 2013 06:28:13 -0700

Bilderstrecke, 8 Bilder. So ist 5D Mark III nach dem Update nun in der Lage, ein unkomprimiertes YCbCr 4:2:2 8-Bit-Videosignal über die HDMI-Schnittstelle auszugeben, heißt es auf einer eigens für dieses Firmware-Update veröffentlichten Website.
 
癮科技 中文版
Wed, 01 May 2013 01:26:38 -0700

目前已經可以直接在官網上看到的最新1.2.1 版本韌體更新,提供了YCbCr 4:2:2 純淨訊號的無壓縮HDMI 輸出機能,並且擁有同時顯示於外接監看螢幕並輸出無壓縮HDMI 影像的能力;還帶來了新的選單介面,可以直接加入Time code、調整格數或是選擇是否要同步 ...
Loading

Oops, we seem to be having trouble contacting Twitter

Talk About YCbCr

You can talk about YCbCr with people all over the world in our discussions.

Support Wikipedia

A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia. Please add your support for Wikipedia!