Color perception
SINA – 08/09
Color perception SINA 08/09 Color adds another dimension to - - PowerPoint PPT Presentation
Color perception SINA 08/09 Color adds another dimension to visual perception Enhances our visual experience Increase contrast between objects of similar lightness Helps recognizing objects SINA 08/09 However, it
SINA – 08/09
SINA – 08/09
SINA – 08/09
SINA – 08/09
is the Planck's constant speed of the wave frequency h c v
SINA – 08/09
frequency wavelength v λ
SINA – 08/09
light (or spectral irradiance, )
2 1
− − SINA – 08/09
SINA – 08/09
SINA – 08/09
color), on the right the sum of the three primary colors (primaries) to be used to make the match:
physically different (metameric match) P
1 1 2 2
... T w P w P = + +
SINA – 08/09
T
P1 P2
…
– subtractive matching must be allowed – primaries must be independent (no mixture of two primaries may match a third)
SINA – 08/09
match a third)
P1 P2
1 1 2 2 3 3
T w P w P w P = + +
P3
( )
1 1 2 2 3 3 1 1 2 2 3 3 1 1 1
, ...
a a a a b b b b a b b a
T w P w P w P T w P w P w P T T w w P = + + = + + + = + +
result:
will match each other: = here means “match”
SINA – 08/09
will match each other:
1 1 2 2 3 3 1 1 2 2 3 3
,
a b a b
T w P w P w P T w P w P w P T T = + + = + + ⇒ =
( ) ( ) ( )
1 1 2 2 3 3 1 1 2 2 3 3, a a
T w P w P w P kT kw P kw P kw P k = + + = + + ≥
SINA – 08/09
SINA – 08/09
( ) ( ) ( ) spectral sensitivity
k k k
p E d σ λ λ λ σ λ = ∫
SINA – 08/09
( ) spectral sensitivity ( ) light arriving at the receptor
k
E σ λ λ
a single photoreceptor system
the light
the intensity of any primary color to match any colored light
SINA – 08/09
a single photoreceptor system results in vision similar to that experienced in dim light, which relies on rod vision only
SINA – 08/09
SINA – 08/09
SINA – 08/09
1 1 1 1 2 2 2 2 3 3 3 3 a b c a b c a b c
1 1 2 2 3 3 1 1 2 2 3 3 1 1 2 2 3 3 a a a b b b c c c
a single wavelength source (color matching functions):
1 1 2 2 3 3
( ) ( ) ( ) U f P f P f P λ λ λ λ = + + at each , , and give the weights required to match U( ) f f f λ λ
( ) ( ) S S U d λ λ λ = ∫
SINA – 08/09
1 2 3
at each , , and give the weights required to match U( ) f f f λ λ
1 1 2 2 3 3
( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) S S U d f S d P f S d P f S d P λ λ λ λ λ λ λ λ λ λ λ λ = = = + +
functions will be negative for some wavelengths
in this case we obtain imaginary primaries
interested in the resulting weights as a means to define/compare colors
z
SINA – 08/09
r g b
data from: www-cvrl.ucsd.edu/index.htm
z y x
wavelengths, but useful to describe colors
intersect the XYZ space with the plane X+Y+Z=1
SINA – 08/09
/( ) /( ) /( ) 1 x X X Y Z y Y X Y Z z Z X Y Z x y = + + = + + = + + = − −
image from: Forsyth and Ponce
520 nm 600 nm x x
SINA – 08/09
image from: Forsyth and Ponce
neutral point [1/3 1/3 1/3], achromatic
380 nm 780 nm x x
into the same receptive field, and they are summed together (color TV/computer screen)
mixture (645.16nm, 526.32nm and 444.44 nm)
SINA – 08/09
SINA – 08/09
SINA – 08/09
SINA – 08/09
image from: http://gimp-savvy.com
SINA – 08/09
distance of the point from the neutral axis
color with respect to brightness
perceived the color: the
SINA – 08/09
perceived the color: the angular position of the point around the neutral axis
, , [0,1] max( , , ), min( , , ) 0 if 1
R G B MAX R G B MIN R G B V MAX MAX S MIN ∈ = = = = = −
SINA – 08/09
http://en.wikipedia.org/wiki/HSV_color_space 1
60 60 360 60 V G B if MAX R and G B MAX MIN G B if MAX R and B G MAX MIN H B R MAX M − − ⋅ = ≥ − − ⋅ + = > − = − ⋅ − 120 60 240 , if MAX G IN R G if MAX B MAX MIN undefined if MAX MIN S + = − ⋅ + = − = =
, , [0,1] 3 1 min( , , ) R G B R G B I S R G B I ∈ + + = = −
SINA – 08/09
( )
1 2
1 min( , , ) ( ) ( ) cos 2 ( )( ) 0, H is meaningless G H 360-H S R G B I R G R B H R G R B G B if S if B
−
= − − + − = − + − − = > =
http://fourier.eng.hmc.edu/e161/lectures/color_processing/index.html
function separateHSV(name) A=imRead(name);
hue
SINA – 08/09 A=imRead(name); H=rgb2hsv(A); hue=H(:,:,1); sat=H(:,:,2); val=H(:,:,3); figure(1), imShow(A); figure(2), imShow(hue); figure(3), imShow(sat); figure(4), imShow(val);
SINA – 08/09
by a scalar does not change)
the pixel (we discard intensity) rg-Chromaticity plane
SINA – 08/09
is a poor indicator of the “perceived” difference of the corresponding colors
( ) ( )
2 2
x y ∆ + ∆
SINA – 08/09
image from: Forsyth and Ponce
1 3
116 16
n
Y L Y = −
SINA – 08/09
1 1 3 3 1 1 3 3
500 200 , , are X,Y,Z of a reference white patch
n n n n n n n n
Y X Y a X Y Y Z b Y Z X Y Z = − = −
image from: http://www.tasi.ac.uk/advice/creating/colour.html
SINA – 08/09
SINA – 08/09
Center and surround combine input from both R and G cones, mostly respond to brightness
receives input from R or G cones in the center and have larger antagonist surround receiving input from the other cones, responds to brightness (white or yellow for
SINA – 08/09
from the other cones, responds to brightness (white or yellow for example) but also to large spots of monochromatic light (red or green)
cells have a uniform receptive field, where inputs from B cones antagonize combined inputs from R and G cones
small centered white spots
spots
red/green spots
SINA – 08/09
SINA – 08/09
M and L cones interact to produce the opponent channels
response processes may be generated for a +R-G cell
SINA – 08/09
generated for a +R-G cell
done for a +Y-B/+B-Y cell, S cones in this case oppose the sum of M and L cones
SINA – 08/09
SINA – 08/09