Colour Models
Colour Models
Fig 1:
Schematic of the RGB color
cube.
Points along the main
diagonal have gray values,
from black at the origin to
white at point (1,1,1).
3. In this model, the gray scale (points of equal RGB values) extends from black to
white along the line joining these two points. The different colors in this model
are points on or inside the cube, and are defined by vectors extending from the
origin.
4. For convenience, the assumption is that all color values have been normalized so
that the cube shown in Fig.1 is the unit cube. That is, all values of R, G, and B are
assumed to be in the range [0,1].
5. The number of bits used to represent each pixel in RGB space is called the pixel
depth. Consider an RGB image in which each of the red, green, and blue images
is an 8-bit image. Under these conditions each RGB color pixel [that is, a triplet of
values (R, G, B)] is said to have a depth of 24 bits (3 image planes times the
number of bits per plane).
6. Forty of the 256 colors (min number of colors that can be reproduced faithfully by
any system) are known to be processed differently by various operating systems,
leaving only 216 colors that are common to most systems.
7. Each of the 216 safe colors is formed from three RGB values as before, but each
value can only be 0,51, 102, 153, 204, or 255. Thus, RGB triplets of these values
give us (6)3 = 216 possible values. It is customary to express thesce values in the
hexagonal number system, as shown in Table below.
(a)
(b) (c) (d)
FIG 3: Hue and saturation in the HSI color model. The dot is an arbitrary color point.
The angle from the red axis gives the hue, and the length of the vector is the saturation.
The intensity of all colors in any of these planes is given by the position of the plane on
the vertical intensity axis.