IP_representation_acquisition_L1
IP_representation_acquisition_L1
Representation and
Acquisition
Jayanta Mukhopadhyay
Dept. of CSE,
IIT Kharagpur
How images are represented
in a computer?
Width: 256
Height: 384
A 2D Array of integers
Color images
R
Image File
P à p : Projection
E(P) à I(p) : Stimulation
O
p
Perspective
Rules of projection projection
O
p
Image plane
Other imaging principle: Xray
imaging
Parallel
Sensors sensitive to x-Ray EM bands
projection
Image points formed by intersection of parallel rays
with the image plane.
Other imaging principle:
Ultra-Sound Imaging
Tx Rx
Scan radially / translating Tx-Rx
along a direction.
What is an image?
l Impression of the physical world.
l Spatial distribution of a measurable quantity, encoding the
geometry and material properties of objects.
Radiometric factors of image
formation
Spectral response of a sensor
l Three factors of image formation:
Retina
Optic Nerve
Optic Chiasma
Optic Tract
n Visual information enters the Lateral Geniculate
primary visual cortex via the Nucleus (LGN)
lateral geniculate nucleus
n smaller pathways also exist Visual Cortex
n a pathway to the superior
colliculus (SC).
https://commons.wikimedia.org/wiki/File:Rods_Cones_Synapse.sv
g
Cells in retina
Visual input
Photo receptors
Horizontal cells
Excitatory
Bipolar cells direct
pathway
Off / On Center
Surround receptive Ganglion cells inhibitory indirect
field pathway Mexican hat
Lateral geniculate nucleus Optic nerve receptive field
(LGN)
Density of rods and cones
100
S M L
50
WAVELENGTH (nm.)
Wavelength
• Entire spectrum (of reflected energy from an
object or energy of an illuminant) represented by
3 numbers.
• Even different spectra may have same
representation and thus indistinguishable.
• such spectra called metamers.
Adapted from slides by Steve Seitz.
What is Color?
l A psychological property of our visual experiences
when we look at objects and lights.
l Not a physical property of those objects or lights.
l The result of interaction between physical light in the
environment and our visual system.
o Can be represented by 3
numbers.
o Trichromatic Theory
o Color rendition as a
Mixture of three
primary colors
19
Grassman’s Laws
l Color matching appears to be linear.
l If two test lights can be matched with the same set of
weights, then they match each other:
l If A = u1P1 + u2P2 + u3P3 and B = u1P1 + u2P2 + u3P3. Then A = B.
l If we mix two test lights, then mixing the matches will
match the result:
l If A = u1P1 + u2P2 + u3P3 and B = v1P1 + v2P2 + v3P3.
Then A+B = (u1+v1) P1 + (u2+v2) P2 + (u3+v3) P3.
l If we scale the test light, then the matches get scaled
by the same amount:
l If A = u1P1 + u2P2 + u3P3, then kA = (ku1) P1 + (ku2) P2 + (ku3) P3.
Adapted from W. Freeman
mixing two lights
produces
colors that lie
Linear color spaces along a straight
line in color
space.
l Defined by a choice of three primaries
l The coordinates of a color are given by the weights of the
primaries used to match it.
l Matching functions: weights required to match single-
wavelength light sources.
Source: W. Freeman
Color matching experiment 1
p1 p2 p3
Source: W. Freeman
Color matching experiment
1
p1 p2 p3
Source: W. Freeman
Color matching
experiment 1
p1 p2 p3
Source: W. Freeman
Color matching experiment 2
Source: W. Freeman
Color matching experiment 2
p1 p2 p3
Source: W. Freeman
Color matching experiment 2
p1 p2 p3
Source: W. Freeman
Color matching experiment 2
The primary color
We say a amounts needed
“negative” for a match:
amount of p2
was needed to
make the
match, because p1 p2 p3
we added it to
the test color’s
side.
p1 p2 p3 p1 p2 p3
Source: W. Freeman
Using color matching functions
to predict the matches for a
new spectral signal
A monochromatic light of li
wavelength will be matched by the
amounts c1 (li ), c2 (li ), c3 (li )
of each primary.
And any spectral signal can be thought of as a linear
combination of very many monochromatic lights, with the
linear coefficient given by the spectral power at each
wavelength.
æ t (l1 ) ö
" ç ÷
t =ç ! ÷
ç t (l ) ÷
è N ø Source: W. Freeman
Using color matching functions
to predict the primary match to a
new spectral signal
Store the color matching functions in the
rows of the matrix, C
æ c1 (l1 ) ! c1 (lN ) ö
ç ÷
C = ç c2 (l1 ) ! c2 (lN ) ÷ æ t (l ) ö
ç c (l ) ! c (l ) ÷ Let the new spectral " ç 1 ÷
è 3 1 3 N ø signal be described by t = ç ! ÷
ç t (l ) ÷
the vector t.
Then the amounts of each ! ! è N ø
l Additive model.
l An image consists of 3 bands,
one for each primary color.
l Appropriate for image
displays.
l Cyan-Magenta-Yellow is a
subtractive model which is
good to model absorption of
colors. é C ù é1ù é R ù
l Appropriate for paper ê M ú = ê1ú - êG ú
printing. ê ú êú ê ú
êë Y úû êë1úû êë B úû
Matching functions
http://en.wikipedia.org/wiki/CIE_1931_color_space
CIE chromaticity model
l x, y, z normalize X, Y, Z
such that
x + y + z = 1.
l Actually only x and y are
needed because
z = 1 - x - y.
l Pure colors are at the
curved boundary.
l White is (1/3, 1/3, 1/3).
Adapted from Octavia Camps, Penn State
Spectral locus of monochromatic
lights and the heated black-bodies
( R+G+B)
I=
3
min( R, G, B)
S = 1-
I
ì 1 / 2[( R - G )+( R - B)] üï
-1 ï
H = cos í ý if B<G
[ ]
ïî ( R - G ) +( R - B)(G - B) ïþ
2
52