YUV

Missing image
Yuv.png
Example of U-V color plane, Y value = 0.5, represented within RGB color gamut

YUV is the color space used in the PAL system of television broadcasting which is the standard in most of Europe and some other places. Y stands for the luminance component (the brightness) and U and V are the chrominance (color) components. The YCbCr or YPbPr color space, used in computer component video, is derived from it (Cb/Pb and Cr/Pr are simply scaled versions of U and V), and is sometimes inaccurately called "YUV". The YIQ color space used in the NTSC television broadcasting system is related to it, although in a less simple way.

YUV signals are created from an original RGB (red, green and blue) source. The weighted values of R, G and B are added together to produce a single Y signal, representing the overall brightness, or luminance, of that spot. The U signal is then created by subtracting the Y from the blue signal of the original RGB, and then scaling; and V by subtracting the Y from the red, and then scaling by a different factor. This can be accomplished easily with analog circuitry.

The following equations can be used to derive Y, U and V from R, G and B:

<math>Y<math><math>= 0.299 R + 0.587 G + 0.114 B<math>
<math>U<math><math>= 0.492 (B - Y)<math>
<math>= -0.147 R - 0.289 G + 0.436 B<math>
<math>V<math><math>= 0.877 (R - Y)<math>
<math>= 0.615 R - 0.515 G - 0.100 B<math>

or using matrices

<math> \begin{bmatrix} Y \\ U \\ V \end{bmatrix} = \begin{bmatrix} 0.299 & 0.587 & 0.114 \\ -0.147 & -0.289 & 0.436 \\ 0.615 & -0.515 & -0.100 \end{bmatrix} \begin{bmatrix} R \\ G \\ B \end{bmatrix} <math>

Here, R, G and B are assumed to range from 0 to 1, with 0 representing the minimum intensity and 1 the maximum.

Two things to note:

  • The top row is identical to that of the YIQ color space
  • If <math>\begin{bmatrix} R & G & B \end{bmatrix}^{T} = \begin{bmatrix} 1 & 1 & 1 \end{bmatrix}<math> then <math>\begin{bmatrix} Y & U & V \end{bmatrix}^{T} = \begin{bmatrix} 1 & 0 & 0 \end{bmatrix}<math>. In other words, the top row coefficients sum to unity and the last two rows sum to zero.

(Note that this formula uses an outdated, but common, model of Y; HDTV uses a slightly different formula)

As most actual uses of RGB->YUV are in integer math, it's convenient to have a fixed-point approximation as well.

 Y := min(abs(r * 2104 + g * 4130 + b * 802 + 4096 + 131072) >> 13,235)
 U := min(abs(r * -1214 + g * -2384 + b * 3598 + 4096 + 1048576) >> 13,240)
 V := min(abs(r * 3598 + g * -3013 + b * -585 + 4096 + 1048576) >> 13,240)
Contents

Luminance/chrominance systems in general

The primary advantage of luminance/chrominance systems such as YUV and its relatives YIQ and YDbDr is that they remain compatible (thanks to Georges Valensi) with black and white analog television. The Y signal is essentially the same signal that would be broadcast from a normal black and white camera (with some subtle changes), and the U and V signals can simply be ignored. When used in a color setting the subtraction process is reversed, resulting in the original RGB color space.

Another advantage is that the signal in YUV can be easily manipulated to deliberately discard some information in order to reduce bandwidth. The human eye actually has fairly low color resolution: the high-resolution color images we see are processed by the visual system by combining the high-resolution black and white image with the low-resolution color image. Using this information to their advantage, standards such as NTSC reduce the amount of signal in the chrominance considerably, leaving the eye to recombine them. For instance, NTSC saves only 11% of the original blue and 30% of the original red, throwing out the rest. Since the green is already encoded in the Y signal, the resulting U and V signals are substantially smaller than they would otherwise be if the original RGB or YUV signals were sent. This filtering out of the blue and red signals is trivial to accomplish once the signal is in YUV format.

However this process, obviously, reduces the quality of the image. In the 1950s when NTSC was being created this was not a real concern because common equipment could not display images any better than the quality of the signal they were already receiving. But today a modern television can display more information than is contained in these lossy signals. This has led to a number of attempts to record images with as much of the YUV signal as possible, including S-Video on VCRs. YUV was also used as the standard format for common video compression algorithms such as MPEG-2, which is used in digital television and for DVDs. The professional CCIR 601 uncompressed digital video format also uses the YUV color space, for compatibility with previous analog video formats, which can then be easily mixed into any output format needed.

YUV is a versatile format which can be easily combined into other legacy video formats. For instance if you amplitude-modulate the U and V signals onto quadrature phases of a subcarrier you end up with a single signal called C, for chroma, which can then make the YC signal that is S-Video. If you mix the Y and C signals, you end up with composite video, which almost any television can handle. All of this modulating can be accomplished easily in low-cost circuitry, while the demodulation is often very difficult indeed. Leaving the signal in the original YUV format thus made DVDs very simple to construct, as they could easily downmix to support either S-video or composite and thus guarantee compability with simple circuits, while still retaining all of the original information from the source RGB signal.

Types of sampling

To get a digital signal, YUV images can be sampled in several different ways; see chroma subsampling.

See also

External links

fr:YUV nl:YUV

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools