Professional Documents
Culture Documents
Selim Aksoy
Department of Computer Engineering
Bilkent University
saksoy@cs.bilkent.edu.tr
Color
Color perception
Cones
Rods
440 nm (BLUE)
545 nm (GREEN)
580 nm (RED)
Color models
RGB model
Additive model.
An image consists of 3 bands, one for each
primary color.
Appropriate for image displays.
CMY model
X
Y
Z
10
x, y, z normalize X, Y, Z
such that
x + y + z = 1.
Actually only x and y
are needed because
z = 1 - x - y.
Pure colors are at the
curved boundary.
White is (1/3, 1/3, 1/3).
11
YIQ model
R
G
B
HSV model
3
min( R, G, B )
S 1
I
1 / 2[( R G )( R B)]
1
H cos
( R G ) 2 ( R B)(G B )
if BG
1 / 2[( R G )( R B)]
H 360 cos
( R G )
( R B )(G B)
if BG
HSV model
HSV model
Color models
CMYK
RGB
HSV
CS 484, Spring 2011
Examples: pseudocolor
18
Examples: pseudocolor
19
Examples: pseudocolor
20
Examples: segmentation
Examples: segmentation
Skin color in
RGB space:
Purple region
shows skin
color samples
from several
people. Blue
and yellow
regions show
skin in shadow
or behind a
beard.
CS 484, Spring 2011
Examples: segmentation
Examples: histogram
Examples: histogram
25
26
Summary
http://www.couleur.org/index.php?
page=transformations
27