Computer Graphics: Color Models
Computer Graphics: Color Models
Computer Graphics: Color Models
Color Models
1
Properties of Light
Color Models
Standard primaries and the chromaticity diagram
The RGB color model
The YIQ and related color model
The HSV color model
The HSL Color model
The CMY and CMYK Color models
Color Models Applications
Dithering VS Half-toning 2
Properties of Light
FIGURE-1
Each frequency value within the visible region of the electromagnetic spectrum
corresponds to a distinct spectral color. 3
Properties of Light
• When white light is incident on an opaque object , some
frequencies are reflected and some are absorbed.
• The combination of frequencies present in the reflected in the
reflected light determines the color of the object that we
see.(Dominant frequency or Hue)
4
Properties of Light
Period (T)
5
Characteristics of Color
2. Brightness
The total light energy, how bright is the color (How bright
are the lights illuminating the object?)
3. Purity (Saturation)
Purity describes how close a light appears to be to a pure
spectral color, such as pink is less saturated than red.
7
Color Model
Primary Colors
Sets of colors that can be combined to make a useful range of
colors
Color Gamut
Set of all colors that we can produce from the primary colors.
Complementary Colors
Pairs of colors which, when combined in the right proportions,
produce white.
Example, in the RGB model: red & cyan , green & magenta , blue
& yellow.
•No finite set of real primary colors can be combined to produce all possible visible
colors.
•However, given a set of three primary colors, we can characterize any fourth color
using color-mixing processes. 8
Color Model
Shades , Tints & Tones
• A shade is produced by “dimming ” a hue.[Adding black].
Dark Blue = pure blue + black
Additive color
Uses light to display color. Mixing begins with black and ends with white; as more
color is added, the result is lighter and tends to white. Used for computer displays
Example: The RGB colors are light primaries and colors are created with light.
A subtractive color
Uses ink to display color. Mixing means that one begins with white and ends with
black; as one adds color, the result gets darker and tends to black. Used for printed
material
It is called 'subtractive' because its wavelength is less than sum of the wavelengths
of its constituting colors.
10
Example: The CMYK color system is the color system used for printing.
Standard Primaries & the chromaticity diagram
Color-matching functions
A color in the
vicinity of
500nm can be
matched only
but subtracting
an amount of
red light from a
combination of
blue and green
lights.
12
Standard Primaries & the chromaticity diagram
13
Standard Primaries & the chromaticity diagram
14
CIE chromaticity diagram.
Standard Primaries & the chromaticity diagram
Gamut Color
Complementary Color Dominant Wavelength
&
Purity
RGB Model 15
RGB Model
•The red, green, and blue (RGB) color space is
widely used throughout computer graphics.
17
YIQ model
18
YIQ model
•A color television set would take these three channels, Y, I, and Q, and map
the information back to R, G, and B levels for display on a screen.
•The advantage of this model is that more bandwidth can be assigned to the
Y-component (luminance) because the human visual system is more
sensitive to changes in luminance than to changes in hue or saturation
19
HSV Model
20
HSV Model
21
HSV Model
The Saturation (S) of a color describes how white the color is.
Or the amount of white added to the color. A pure red is fully
saturated (S=1) means no white added
22
HSV Model
23
HSL Model
• Double-cone Representation
Parameters are :
• Hue (H)
• Lightness (L)
• Saturation (S)
24
HSL Model
• Vertical Axis is called Lightness(L).
• At L=0 we have black , and at L=1 we have white
• Grayscale values are along the L axis
• The pure colors lie at the axis where L=0.5 and S=1.0
25
CMY and CMYK Model
26
CMY and CMYK Model
In additive color models such as RGB, white is the “additive”
combination of all primary colored lights, while black is the absence
of light.
In the CMYK model, it is the opposite: white is the natural color of the
paper or other background, while black results from a full
combination of colored inks.
RGB To CMY CMY To RGB
27
CMY and CMYK Model
CMYK Color Model
Although cyan, magenta and yellow inks might be expected be sufficient for
color printing, most actual color printing uses black ink in addition.
This is partly because a mixture of the first three inks may not yield a black
that is neutral enough, or dark enough, but also because the use of black
spares the use of the more expensive colored inks, and also reduces the total
amount of ink used, thus speeding drying times.
- Computer graphics
- Image processing
RGB - Image Analysis
- Image Storage
CMY(K) Printing
- Human visual perception
- Computer graphics processing
- Computer Vision
- Image Analysis
- Design image
HSV, HSL - Human vision
- Image editing software
- Video editor
- TV broadcasting
YIQ - Video system
Halftone
• A technique used in newspaper printing
Only two intensities are possible, blob of ink and no blob of
ink. But, the size of the blob can be varied
30
Dithering
31
Halt-Toning Vs. Dithering
Half toning is the reproduction of grayscale images using dots
but with varying size.
Typical Application Laser printer.
32
References
• Hearn, Baker and Carithers,
Computer Graphics with OpenGL
• https://www.siggraph.org/education/m
aterials/HyperGraph/color/colorcm.ht
m
• www.wikipedia.com
• http://www.cs.sun.ac.za/~lvzijl/courses
/rw778/grafika/OpenGLtuts/Big/graphi
csnotes008.html
33
34
35