CS3500 Computer Graphics: Module: Colours Etc
CS3500 Computer Graphics: Module: Colours Etc
Computer Graphics
Module: Colours etc.
P. J. Narayanan
Spring 2005
CS3500
1
Rendering Pipeline
View View
Modelling Clipping Viewport
Orientation Mapping
Object World Camera Canonical Normalized Screen
Coords Coords Coords View Volume 2D Coords Coords
Light
Light can be two types: Achromatic (without colour) or
Chromatic (coloured)
Visible Spectrum
Visible portion of the electromagnetic spectrum is what
we are interested in.
Some Terms
Radiance: Light energy emitted by the source.
Thus, . Thus, .
Intensities for each level (index): .
. Or, .
and , , and .
CRT’s response is non-linear. , : #electrons
, the voltage. Thus, and .
for CRTs. needn’t double to double !
CS3500 February 10, 2005
10
. Therefore , .
The edges between levels not visible if this is satisfied.
CS3500 February 10, 2005
11
CRT (50-200) 400-530 Prints (100) 465
Slides (1000) 700 Coated paper (100) 465
Newspaper (10) 234
Halftone Approximations
Use spatial integration to simulate intensity levels on
bilevel display/hardcopy devices.
Halftoning (clustered-dot ordered dither): Print with
blackness in a small resolution unit.
A dither matrix:
Basics of colour
A bulb appears red if it emits light of in the red range.
A flower appears yellow because it absorbs light of all
wavelengths except in the yellow range.
Pure colours have a particular . Mixed colours have light
of different wavelengths.
Different perceptual colours have different spectral
energy distributions.
Different spectral distributions might “look” the same!
(Called metamers).
CS3500 February 10, 2005
14
Description of colour
Colour perception in terms of: Hue, Saturation, Value.
V
G Y
W
C R
B M
H
B S
CS3500 February 10, 2005
16
Our retina has rods and cones. Rods see gray levels an
cones see colour.
Tristimulus Theory
All perceivable colours can be specified as weighted
combination of primary colours R, G, and B.
Colour Matching
Computing the weights of R, G, B for a given colour.
Colour Matching Functions: distribution of weights for
RGB to match a given wavelength.
Unfortunately, has negative R
B
values for red in the G
450-550nm range.
Negative values are not
0
convenient for a device like
CRT, which can’t “take away” red.
Line between two colours obtained by mixing them.
Extend the line from white to any colour to the periphery.
Hue is the point on periphery and Saturation is the ratio
of distances from white to colour and peripheral point.
Grays lie along the diagonal from (0, 0, 0) to (1, 1, 1).
CS3500 February 10, 2005
25
B C
M W
B
G
R
Y
black or K component. Yields the CMYK colour model
used in the 4-colour printing process.
Blues appear far and reds near. Unwise to use red for
background and blue for foreground.
CS3500 February 10, 2005
29
End of Class 18