chapter 4
chapter 4
For every color signal or photons reaching the eye, some ratio of response
within the three types of cones is triggered. It is this ratio that permits the
perception of a particular color.
Color Spaces
Color images can be described with three components, commonly Red, Green,
and Blue. It combines (adds) the three components with varying intensity to
make all other colors. Absence of all colors (zero values for all the components)
create black. The presence of the three colors form white. These colors are
Grey is any value where R=G=B, thus it requires all three (RGB) signals to
produce a
"black and white" picture. In other words, a "black and white" picture must be
computed
- it is not inherently available as one of the components specified.
A color model used with printers and other peripherals. Three primary colors,
cyan (C), magenta (M), and yellow (Y), are used to reproduce all colors.
The three colors together absorb all the light that strikes it, appearing black (as
contrasted to RGB where the three colors together made white). "Nothing" on
the paper is white (as contrasted to RGB where nothing was black). These are
called the subtractive or "paint" colors.
In practice, it is difficult to have the exact mix of the three colors to perfectly
absorb all light and thus produce a black color. Expensive inks are required to
produce the exact color, and the paper must absorb each color in exactly the
same way. To avoid these problems, a forth color is often added - black -
creating the CYMK color "space", even though the black is mathematically not
required.
The three RGB primary colors, when mixed, produce white, but the three CMY
primary colors produce black when they are mixed together. Since actual inks
will not produce pure colors, black (K) is included as a separate color, and the
model is called CMYK. With the CMYK model, the range of reproducible colors is
narrower than with RGB, so when RGB data is converted to CMYK data, the
colors seem dirtier.
YCbCr
This color space is closely related to the YUV space, but with the coordinates
shifted to allow all positive valued coefficients. It is a scaled and shifted YUV.
The luminance (brightness), Y, is retained separately from the chrominance
(color).
CIE
In 1931, the CIE (Commite Internationale de Eíclairage) developed a color model
based on human perception. They are based on the human eyes response to
red, green and blue colors, and are designed to accurately represent human
color perception. The CIE is a device-independent color model and because of
this it is used as a standard for other colors to compare with. Device-
independent means color can be reproduced faithfully on any type of device,
such as scanners, monitors, and printers (color quality does not vary depending
on the device).
There are different versions of CIE color model. The most commonly used are:
CIE XYZ color model
CIE L*a*b color model
This image shows a slightly tilted representation of the YUV color cube, looking
at the dark (Y = 0) side. Notice how in the middle it is completely black, which is
where U and V are zero, and Y is as well. As U and V move towards their limits,
you start to see their effect on the colors.
This image shows the same cube, from the bright side (Y = 1). Here we have
bright white in the middle of the face, with very bright colors on the corners
where U and V are also at their limits.
By the November 1992 Group 4 color fax meeting in Tokyo, CIELAB 1976 was
selected as the primary color space, with YCbCr as one of several secondary
options. Some of the people involved argue that the particular meeting was
Page 9 of 10 Ambo University Department of
Information Technology
dominated by people with special interests, and don't believe that decision will
stand.
If CIELAB becomes the fax standard, it would logically be our choice. However,
YCbCr is much more widely used, and preferred by many technical experts.
Beside the RGB representation, YIQ and YUV are the two commonly used in
video.
Summary of Color
Color images are encoded as (R,G,B) integer triplet values. These triplets
encode how
much the corresponding phosphor should be excited in devices such as a
monitor.
Three common systems of encoding in video are RGB, YIQ, and YcrCb(YUV).
Besides the hardware-oriented color models (i.e., RGB, CMY, YIQ, YUV), HSB
(Hue, Saturation, and Brightness, e.g., used in Photoshop) and HLS (Hue,
Lightness, and Saturation) are also commonly used.
YIQ uses properties of the human eye to prioritize information. Y is the black
and white (luminance) image; I and Q are the color (chrominance) images. YUV
uses similar idea.
YUV is a standard for digital video that specifies image size, and decimates the
chrominance images (for 4:2:2 video)
A black and white image is a 2-D array of integers.