Rawesak Tanawongsuwan
ccrtw@mahidol.ac.th
6 157–158
Color Science
• Light is an electromagnetic wave. Its color is
characterized by the wavelength content of the light.
Color Science
E(λ)
6
http://www.lamptech.co.uk/Documents/SO2%20Spectral.htm
6
Human Vision
• We might learn from biology that our retina consists of an
array of rods and three kinds of cones.
• The rods come into play when light levels are low and
produce an image in shades of gray
Color-Matching Functions
• A technique evolved in psychology
for matching a combination of basic
R, G, and B lights to a given shade
Color-Matching Curves
Color-Matching Curves
• Negative values?
X = ∫ E ( λ ) x ( λ ) dλ
Y = ∫ E (λ ) y (λ )dλ
Z = ∫ E ( λ ) z ( λ ) dλ
6
x=X
(X +Y + Z)
y=Y
(X +Y + Z)
http://hyperphysics.phy-astr.gsu.edu/hbase/vision/cie.html
z = 1− x − y
6
http://hyperphysics.phy-astr.gsu.edu/hbase/vision/cie.html
6
• HCI – C=Chroma
• HVC – V=Value
• HSD – D=Darkness
6
White light
White light Blue light
Cyan light
Layer of magenta ink absorption of red light
Layer of cyan ink on surface absorption of red light Layer of cyan ink on surface absorption of red light
6 170–171
C 1 R
M = 1 − G
Y 1 B
R 1 C
G = 1 − M
B 1 Y
6 172–173
CMYK Colour
• Real inks do not correspond to ideal
subtractive primaries
K ≡ min{C , M , Y }
C C − K
M ⇒ M − K
Y Y − K
http://www.cdman.com/graphics/color/gamut.html
6
+
6
Hue
• The particular wavelength at which most of
the energy of the light is concentrated
• Dominant wavelength
• Identified by names (less scientific) such as
red orange, yellow, green blue, …
6
Saturation
• Color’s purity
• Pure hue can be diluted by mixing it with white
• dominant hue remains the same, but other
hues in white makes the color paler
6
Brightness
• Measure of how light or dark the color is
• Color’s appearance is modified by the
intensity of the light
• less light makes it appear darker
6
A color wheel
http://www.colorguardfloors.com/guardzone/download/ColorWheel.jpg
6 173–176
HSV
• Alternative way of specifying colour
• Saturation (purity)
• Value (brightness)
HSV
http://en.wikipedia.org/wiki/Image:HSV_cylinder.jpg
6
• This coding also makes its way into VHS video tape coding
in these countries since video tape technologies also use YIQ
YUV
• Can be useful to separate brightness and colour
information, especially for video
I and Q components of
color image
6
• Also XYZ along with RGB, CMYK, HSV, … suffer from not being
perceptually uniform
6
CIELAB model
Channels
• Instead of considering 24-bit image as array of
3-byte pixels, consider it as 3 arrays of 1-byte
pixels
Color Profiles
• Different monitors, scanners, &c have different
colour characteristics – different colours correspond
to same numerical value
• Vary with model, age, temperature,…
• Captured by (ICC) colour profile, which includes
values for:
• R, G and B chromaticities
• White point (may be given as color temperature)
• Gamma
6 184–186
Color Management
• Software maps between color spaces of
different devices
sRGB
• 'Standard' RGB colour space
• W3C standard