Online Encyclopedia Search Tool

Your Online Encyclopedia

 

Online Encylopedia and Dictionary Research Site

Online Encyclopedia Free Search Online Encyclopedia Search    Online Encyclopedia Browse    welcome to our free dictionary for your research of every kind

Online Encyclopedia



YUV

Example of U-V color plane, Y value = 0.5
Example of U-V color plane, Y value = 0.5

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 colour 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 colour 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:

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

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

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 colour 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 downsampling

YUV images can be sampled in several different ways, including (in order of decreasing quality):

  • YUV 4:4:4
  • YUV 4:2:2
  • YUV 4:2:0
  • * * The numbers reflect the relative importance given to each channel in this way: the first number gives the relative amount of Y information on each line, the second the relative amount each of U and V information on each even-numbered line, the third number the same for odd-numbered lines.

For example, YUV 4:2:2 has an amount of information in the Y channel double each of the U and V channels; YUV 4:2:0 has the Y channel four times the amount of information of the other two channels, by omitting U and V information on odd-numbered lines. During display, the missing U and V information is approximated by interpolation from those values that are present.

The common high-end professional formats are YUV 4:2:2, used in CCIR 601 video, and the enhanced YUV 4:4:4 format, which has even higher quality. The use of YUV 4:2:2 is possible because the human eye is much better at seeing differences in brightness than in color.

See also



Last updated: 02-08-2005 13:09:58
Last updated: 02-28-2005 01:46:07