Machine Vision1
Machine Vision1
EE 584
MACHINE VISION
Introduction
Relation with other areas
Image Formation & Sensing
Projections
Brightness
Lenses
Image Sensing
Introduction
Vision is the most powerful sense
Vision is the most complicated sense
1
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Illumination Application
Feedback
2
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Graphics
3
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Image Formation
Projection of 3-D world onto 2-D
image plane
Image Formation
4
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Camera Models
Pinhole camera model
Camera Models
Pinhole camera model
X Y
x= f ,y= f
Z Z
10
5
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Camera Models
In pin-hole camera, distant objects are observed smaller
C’
B’
11
Camera Models
In pin-hole camera, parallel lines meet
12
6
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Perspective Projection
X Y
x= f ,y= f
Z Z
Pin-hole camera model is called perspective
projection
Affine Projection
If all scene points are on a plane
X Y f
x=−f , y=−f ⇒m≡ ⇒ x = −m X , y = −m Y
Z0 Z0 Z0
14
7
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Weak-perspective Projection
Now, assume all scene points are on a plane
Z0
X Y
x≅−f , y≅−f ⇒ x ≅ −m X , y ≅ −m Y
Z0 Z0
This assumption can only be justified, if scene depth range is small
compared to average distance from camera
∆z is small wrt Z0
15
Orthographic Projection
If scene depth range is small wrt average depth and camera
distance remain at a constant distance (i.e. Z0 is contant)
Choose m=-1 x=X , y=Y
16
8
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Projections : Summary
Y
Perspective : (x,y,z)
x y
x′ = f , y ′ = f f 0
z z (x’,y’)
X
y
Orthographic : (x’,y’) (x,y,z)
x′ = x , y ′ = y
Brightness :
Two different brightness concepts :
•Image brightness : irradiance
Light power per unit area falling on a (image) surface
18
9
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Lenses :
A pin-hole camera
needs light
19
h h
α2 = γ − β2 ≈ −
R d2
h h h h
n1 + = n2 −
Snell’s law: Small angles: d1 R R d2
n1 n2 n2 − n1
n1 sin α1 = n2 sin α2 n1 α1 ≈ n2α2 + =
d1 d 2 R
Note that the relation is independent of β 1 and β 2 all rays pass from P1, also pass P2.
slide from Computer Vision Lecture Notes by Marc Pollefeys 20
10
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
1 n n −1
+ =
Z Z* R Z* Z
n 1 1− n
+ =
Z* Z' R Z′ Z*
n n −1 1 n 1− n 1
= − = −
Z* R Z Z* R Z'
1 1 1 R
n −1 1− n 1 1
− = − − = and f =
R R Z Z'
z' z f 2(n − 1)
slide from Computer Vision Lecture Notes by Marc Pollefeys
Lenses :
An ideal thin lens produces the same projection with a
pinhole camera, plus some finite amount of light.
1 1 1
+ =
z′ − z f
22
11
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
2 types of aberrations:
geometrical : small for paraxial rays
study through 3rd order optics
12
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
α = 2 arctan(d / 2F)
Image Sensing :
Light photons striking a suitable (vacuum or semi-
conductor device) surface generate electron-hole pairs
which are measured to determine the irradiance.
13
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
Quantization of Image
27
Helmoltz’s
Schematic
Eye
28
14
METU EE 584 Lecture Notes by A.Aydin ALATAN © 2012
The distribution
of rods and
cones across the
retina
15