The Digital Representation of Visual Information 21
4 will cover the basic ideas behind mattes and the matte channel, and Chapter 5
will go into greater detail about some specialized processes used to create and
manipulate these matte images.
The HSV Color Representation
Up until now, we have specified the color of an image as being based on red,
green, and blue components. This model, or color space, is certainly the most
common way to represent color when using a computer, but it is hardly the only
way. A particularly useful alternate method for representing (and manipulating)
the colors of an image is known as the HSV color space. ‘‘HSV’’ refers to the
hue, saturation, and value of a pixel.
5
In many ways, HSV space is a much more
intuitive method of dealing with color, since it uses terms that match more closely
with the way a layperson talks about color. When speaking of color conversation-
ally, instead of characterizing a color as having 85% red, 0% green, and 90% blue,
we would tend to say that the color is a ‘‘saturated magenta.’’ The HSV model
follows this thinking process, while still giving the user precise definition and
control.
The hue of a pixel refers to its basic color—red or yellow or violet or magenta,
for instance. It is usually represented in the range of 0 to 360, referring to the
color’s location (in degrees) around a circular color palette. Plate 6a shows an
example of such a circular palette. In this example, the color located at 90⬚ corres-
ponds to a yellow green, and pure blue is located at exactly 240⬚.
Saturation is the brilliance or purity of the specific hue that is present in the
pixel. If we look again at our color wheel in Plate 6a, colors on the perimeter are
fully saturated, and the saturation decreases as you move to the center of the
wheel.
Value, for the most part, can just be thought of as the brightness of the color,
although strictly speaking it is defined to be the maximum of red, green, or blue
values. Trying to represent this third component means that we need to move
beyond a two-dimensional graph, and so you should now look at Plate 6b. The
value is graphed along the third axis, with the lowest value, black, being located
at the bottom of the cylinder. White, the highest brightness value, is consequently
located at the opposite end.
Even though we’ve talked about the HSV color space as an alternate method
of representing data, it is generally not used to store images. Rather, it is much
5
Variations on the HSV model include HSL and HSB, in which the third component is either lightness
or brightness, respectively. HSV seems to be slightly more common with digital compositors, but just
about everything we talk about applies equally well to these other models.