Professional Documents
Culture Documents
Color Image Processing: First: Perceptual Aspects For Full Color
Color Image Processing: First: Perceptual Aspects For Full Color
Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
1
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
magenta(purple)=red + blue
cyan=green+blue
yellow =red +green
The primary colors of pigments are cyan (C), magenta (M), and yellow
(Y) and the secondary colors are red(R), green(G), and blue(B). A proper
combination of the three primaries, or a secondary with its opposite
primary, produces black as shown in figure 2.
2
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
3
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
The amounts of red, green, and blue which make up a given color can be
determined by a color matching experiment. In such an experiment,
people are asked to match a given color ( color source) with different
amounts of the additive primaries red, green and blue. Such an experiment
Note that for some wavelengths, various of the red, green or blue values
are negative as shown in figure (4). This is a physical impossibility, but it
can be interpreted by adding the primary beam to the color source, to
maintain a color.
4
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
5
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
6
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
. Ingeneral, the values of X,Y and Z needed to form any particular color
are called the tristimulus values. Values corresponding to particular colors
can be obtained from published tables. In order to discuss color
independent of brightness, the tristimulus values can be normalized by
dividing by X+Y+Z
and so x+y+z=1 .
Colors Characteristics:
The Characteristics used to distinguish one color from another are:
7
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
Color models:
A color model is a method for specifying colors in some standard way. It
generally consists of a three dimensional coordinate system and a
subspace of that system (Color Space) in which each color is represented
by a single point.
A color space is a geometrical and mathematical representation of color.
A color space is a standard approach to represent color in mathematical
expressions. The operation of choosing the best color representation
includes knowing what information are needs from these signals and how
color signals are generated.
Color space means the use of a specific color model or system that turns
colors into numbers. Each color model is a method of creating many
colors from a small group of primary colors. Each model has a range of
colors it can be produce. That range is the color space. But here's an
important fact: color spaces in different systems aren't exactly the same.
Color models commonly used in image processing are:
-RGB model for color monitor and in video cameras.
-HSV (hue, saturation, value of intensity) model.
-YIQ model (luminance, color information)
-CMY and CMYK (cyan, magnet, yellow, black) models for color
printing.
each color. The different colors in this model are points on or inside cubic
and defined by a vectors extending from origin of cubic side 1:
All colors values R, G, and B have been normalized in the range [0,1],
and represented each R, G, and B from 0 to 255. These three images are
combined on the screen to produce a color image as shown in the
figure 7 and figure 8.
9
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
10
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
11
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
12
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
13
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
Figure 10. A full- color image and its HSV component images of an RGB
image.
The YIQ model color:
YIQ This color space is used for TV/video in America and other countries
where NTSC is the video standard (Australia uses PAL). In this scheme
Y is the “luminance” (this corresponds roughly with intensity), and I and
Q carry the color information. The conversion between RGB is straight
forward. See figure 11.
14
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
15
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
where all color values have been normalized to the range [0,1]
In printing, combining equal amounts of Cyan, magenta, and yellow
produces muddy-looking black. in order to produce true black a fourth
color, black is added giving rise to the CMYK color model. See figure 12.
Figure 12. A full-color image and its CYMK component color images of
an RGB image.
Second: Pseudocoloring :
This means assigning colors to a grey-scale image in order to make certain
aspects of the image more amenable for visual interpretation—for
example, for medical images. There are different methods of
pseudocoloring.
16
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
1-Intensity slicing
In this method, we break up the image into various grey level ranges. We
simply assign a different color to each range. For example:
2-Gray—Color transformation:
The color transformation is express by the equation:
g(x,y)=T[f(x,y)],
where f(x,y) is a color input image, g(x,y) is the transformed color output
image, and T is the color transform.
This color transform can also be written:
Si=Ti(r1, r2, r3,…,rn) i=1,2,3,….,n
17
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
18
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
19
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.3.(2weeks)
20