Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Fundamentals of Photogrammetry
Presentation
Fundamentals of Photogrammetry
Ph.D. in Computing Science (2000).
Niclas B
orlin, Ph.D.
niclas.borlin@cs.umu.se
April 1, 2014
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Introduction
Definition
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Introduction
Principles
Overview
Principles
Principles
Non-contact measurements.
History
(Passive sensor.)
Mathematical models
Collinearity.
Processing
Triangulation.
Applications
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Principles
Principles
Collinearity
Triangulation
Collinearity
Triangulation
Q
q1
q1
C1
C
q
C1
q2
C2
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Principles
Principles
Triangulation
Triangulation
Triangulation (2)
Other techniques
r3
Q
C3
r2
C2
r1
C1
C1
C2
Fundamentals of Photogrammetry
History
Fundamentals of Photogrammetry
History
Pre-history
Overview
Pre-history
Geometry, perspective, pinhole camera model Euclid (300
BC).
Principles
History
Mathematical models
Processing
Applications
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
History
History
Analog photogrammetry
Fundamentals of Photogrammetry
History
Analog photogrammetry
Opto-mechanical
stereoplotters
(von
Orel,
Thompson, 1908, Zeiss
1921, Wild 1926). Allowed
non-coplanar photographs.
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
History
History
Analytical photogrammetry
Digital photogrammetry
Digital photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Fundamentals of Photogrammetry
Mathematical models
Preliminaries
Overview
Matrix multiplication
C = AB
a 21
History
b 12
Principles
Mathematical models
Processing
Applications
a11
a
21
a
31
a12
a13
a22
a23
a32
a33
b 22
a 22
a 23
b11
b12
b21
b22
b31
b32
b 32
c11
c21
c31
c12
c22
c32
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Preliminaries
x xp
X X0 Z
y yp = kR Y Y0
c
Z Z0
describe the relationship
between the object point
(X , Y , Z )T , the position
C = (X0 , Y0 , Z0 )T of the
camera center and the
orientation R of the
camera.
q
C
q
Fundamentals of Photogrammetry
c y
q
qp x
Q
X
Z
X0
Y0
Y
X
Mathematical models
x xp
X X0
r11 r12 r13
y yp = kR Y Y0 , and R = r21 r22 r23 ,
c
Z Z0
r31 r32 r33
C
Z0
Z0
Fundamentals of Photogrammetry
Mathematical models
c y
q
qp x
Q
X
Z
X0
Y0
Y
X
X0 ) + r12 (Y
X0 ) + r32 (Y
X0 ) + r22 (Y
X0 ) + r32 (Y
Y0 ) + r13 (Z
Y0 ) + r33 (Z
Y0 ) + r23 (Z
Y0 ) + r33 (Z
Z0 )
,
Z0 )
Z0 )
.
Z0 )
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Projective geometry
Projective geometry
Homogenous coordinates
x1
x1 /x3
x1 /x3
x2 7 x2 /x3 = x2 /x3 .
x3
x3 /x3
1
(x, y )T .
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Projective geometry
Transformations
Transformations
x2
A homogenous vector
ideal
x P 2 may be
point
interpreted as a line
3
through the origin in < .
The intersection with the
plane x3 = 1 gives the
corresponding cartesian
coordinates.
Transformation of homogenous 2D
by multiplication by a 33 matrix
u
a11 a12
v = a21 a22
a31 a32
1
x1
O
1
x3
or
q = Ap.
a23
y ,
a33
1
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Transformations
Transformations
1 0 x0
x
x + x0
q = T (x0 , y0 )p = 0 1 y0 y = y + y0 .
0 0 1
1
1
Fundamentals of Photogrammetry
cos sin 0
x
x cos y sin
R()p = sin cos 0 y = x sin + y cos .
0
0
1
1
1
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Transformations
Transformations
k 0 0
x
kx
q = S(k, l)p = 0 l 0 y = ly .
0 0 1
1
1
Combination of transformations
Combinations of transformations are constructed by matrix
multiplication:
q = T (x0 , y0 )R()T (x0 , y0 )p
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Transformation classes
Transformation classes
Transformation classes
Similarity
s cos s sin tx
s sin s cos ty
0
0
1
or
sR t
,
0 1
where the scalar s is the scaling, R is a 2 2
rotation matrix and t is the translation vector.
A 2D similarity has 4 degrees of freedom.
A similarity preserves angles (and shape).
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Transformation classes
Transformation classes
Affinity
Projectivity (Homography)
a11 a12 tx
a21 a22 ty
0
0 1
or
A t
.
0 1
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Transformation classes
Planar rectification
Similarity
Affinity
Planar rectification
Projectivity
xi
u/w
u
h11 h12 h13
xi
y 0 = v /w , where v = h21 h22 h23 yi
i
1
1
w
h31 h32 h33
1
or
h11 xi
h31 xi
h21 xi
yi0 = v /w =
h31 xi
xi0 = u/w =
Fundamentals of Photogrammetry
+ h13
,
+ h33
+ h23
.
+ h33
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Planar rectification
Planar rectification
+ h12 yi
+ h32 yi
+ h22 yi
+ h32 yi
Rearranging
xi0 (h31 xi + h32 yi + h33 ) = h11 xi + h12 yi + h13 ,
yi0 (h31 xi + h32 yi + h33 ) = h21 xi + h22 yi + h23 .
This equation is linear in hij .
Given 4 points we get 8 equations, enough to uniquely
determine H assuming the points are in standard position,
i.e. no 3 points are collinear.
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
If the camera center is at the origin and the image plane is the
plane Z = c, the world coordinate (X , Y , Z )T is mapped to
the point (cX /Z , cY /Z , c)T in space or (cX /Z , cY /Z ) in the
image plane, i.e.
(X , Y , Z )T 7 (cX /Z , cY /Z )T
Y
X
Q
y
O
x
qp
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
If the camera center is at the origin and the image plane is the
plane Z = c, the world coordinate (X , Y , Z )T is mapped to
the point (cX /Z , cY /Z , c)T in space or (cX /Z , cY /Z ) in the
image plane, i.e.
(X , Y , Z )T 7 (cX /Z , cY /Z )T
The matrix P is called the camera matrix and maps the world
point Q onto the image point q.
In more compact form P may be written as
P = diag(c, c, 1) I | 0 ,
Y
q
cY /Z
qp
c
X
X
cX
c
0
Y
Y
7 cY = c
0
Z
Z .
Z
1 0
1
1
q
P
Q
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
(X , Y , Z ) 7 (cX /Z + px , cY /Z + py ) ,
where (px , py )T are the image coordinates for the principal
point qp .
Y
X
q
O
qp
y
In homogenous coordinates
X
Y 7 cX /Z + px
cY /Z + py
Z
becomes
X
cX + Zpx
c
px
Y
7 cY + Zpy = c py
Z
1
Z
1
X
0
Y
0
Z
0
1
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
If we write
c
px
K = c py ,
1
the projection may be written as
q = K I | 0 Q.
The matrix K is known as the camera calibration matrix.
X0
Y 0
0
Q0 =
Z 0 and q = K I | 0 Q .
1
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Fundamentals of Photogrammetry
R 0
I C
Y = R RC Q.
Q0 =
0
1
0 1
0 1 Z
1
The full projection is given by
q = KR I | C Q.
The equation
q = PQ = KR I | C Q,
is sometimes referred to as the camera equation.
The 3 4 matrix P is known as the camera matrix.
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Camera coordinates
Y0
Z
X0
Z0
X
Z0
X0
C
c y
q
qp x
Y
X0
O
Z
X
Z0
O
Z
Y0
Y
X
Q
Z
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
K =
xq
c yp ,
1
q = KR I | C Q
that describes the general projection for a pinhole camera has
9 degrees of freedom: 3 in K (the elements c, px , py ), 3 in R
(rotation angles) and 3 for C .
The elements of K describes properties internal to the camera
while the parameters of R and C describe the relation
between the camera and the world.
The parameters are therefore called one of
K
R, C
internal parameters external parameters
internal orientation external orientation
intrinsic parameters extrinsic parameters
sensor model
platform model
X0 ) + r12 (Y
X0 ) + r32 (Y
X0 ) + r22 (Y
X0 ) + r32 (Y
Y0 ) + r13 (Z
Y0 ) + r33 (Z
Y0 ) + r23 (Z
Y0 ) + r33 (Z
Z0 )
,
Z0 )
Z0 )
.
Z0 )
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Aspect ratio
Skew
K =
mx
my
c
c
px
mx c
py =
1
my c
m x px
x
my py =
1
x0
y0 ,
1
x s x0
y y0 .
K =
1
The complete 3 4 camera matrix
P = KR I | C
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Rotations in <3
Rotations in <3
Rotations in <3
0
Y
1
0
0
R1 () = 0 cos sin .
0 sin cos
X0
Z0
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Rotations in <3
Rotations in <3
cos 0 sin
1
0 .
R2 () = 0
sin 0 cos
0
X
Y
cos sin 0
R3 () = sin cos 0 .
X0
0
0
1
X
Z0
X
Z0
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Rotations in <3
Rotations in <3
Combined rotations
X0
Z0
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Rotations in <3
Rotations in <3
Y 00
Y 000
X 000
X 00
Z0
Z 00
X 00
X0
00
Z 000
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Rotations in <3
Rotations in <3
X 000
Z 000
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Rotations in <3
Rotations in <3
Lens distortion
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Mathematical models
Mathematical models
Rotations in <3
Rotations in <3
corrected
xm
ym
measured
xr
+
yr
radial
xt
yt
!
.
tangential
Fundamentals of Photogrammetry
Mathematical models
Fundamentals of Photogrammetry
Processing
Rotations in <3
Overview
Principles
History
Mathematical models
Processing
Applications
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Camera calibration
Processing
Camera calibration
Special cameras may be calibrated by measuring deviation
between input/output rays.
Camera calibration
Camera calibration
Image acquisition
Image acquisition
Measurements
Measurements
Spatial resection
Relative orientation
Forward intersection
Forward intersection
(Bundle adjustment)
(Bundle adjustment)
(Absolute orientation)
Fundamentals of Photogrammetry
Processing
Fundamentals of Photogrammetry
Processing
Camera calibration
Image acquisition
Image acquisition
Camera networks
Parallel (stereo)
Convergent
Aerial
Other
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Image acquisition
Image acquisition
Stereo images
Convergent networks
Simplified measurements.
Simplified automation.
Stronger geometry.
q1
More than 2
measurements per object
point.
q2
C1
C2
q1
q2
C1
C2
q3
C3
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Image acquisition
Measurements
Aerial networks
Measurements
Highly structurized.
Typically around 60% overlap (along-track) and 30% sidelap
(cross-track).
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Spatial resection
Forward intersection
Spatial resection
Forward intersection
If the camera external orientations are known, an object point
may be estimated from measurements in (at least) two
images.
Requires at least two observations.
Linear estimation, robust.
q1
q2
C1
q3
q2
Q3
C2
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Forward intersection
Forward intersection
Q = C1 + (v1 C1 )1 ,
for some value of 1 , where v1 are the 3D coordinates of q1 .
Similarly, for the right camera
Q = C2 + (v2 C2 )2 .
C1
q2
C2
min kQ l1 (1 )k + kQ l2 (2 )k ,
Q,1 ,2
q1
q1
q2
C1
C2
or
Q (C1 + t1 1 )
2
,
min
Q,1 ,2
Q (C2 + t2 2 )
where ti = xi Ci .
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Forward intersection
Forward intersection
Q
I3 t1 0
0
C1
1
C2 k2 ,
min k I3 0 t2 0
2
x
I3 0
0 t3
C3
|
{z
} 3
| {z }
| {z }
A
b
A Ax = A b.
q1
C1
AT Ax = AT b.
q2
C2
q3
C3
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Forward intersection
Forward intersection
B
Z
O1
c
x1
O2
P1 x
X
P2
x2
x1
x2
=B Z
,
c
c
Bc
Bc
Z =
=
.
x1 x2
px
In photo 2:
Y =Z
y1
c
X =B +Z
x2
c
Y =Z
y2
c
Bc
ZZ
x =
x .
2
px
c B
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Processing
Processing
Relative orientation
Absolute orientation
Relative orientation
Absolute orientation
p1
No 3D information is
necessary.
Direct method (Nister
2004). Solve 10th order
polynomial. May have
multiple solutions.
A 3D similarity transformation.
p5
p4
C1
q5
q3
p2
q4
q1
q2
C2
Fundamentals of Photogrammetry
Processing
Fundamentals of Photogrammetry
Applications
Bundle adjustment
Bundle adjustment
Applications
Architecture
Forensics
Maps
Industrial
Motion analysis
May diverge.
Movie industry
Orthopaedics
Space science
Microscopy
GIS
Fundamentals of Photogrammetry
Fundamentals of Photogrammetry
Epipolar geometry
Epipolar geometry
Epipolar geometry
Epipolar lines
q1
q2
C1
C2
Fundamentals of Photogrammetry
C1
Epipolar geometry
Epipoles
Examples
The intersection points between the base line and the image
planes are called epipoles.
The epipole e2 in image 2 is the mapping of the camera
center C1 .
The epipole e1 in image 1 is the mapping of the camera
center C2 .
Q
q1
q2
e1
q2
e1
Fundamentals of Photogrammetry
Epipolar geometry
C1
e2
C2
e2
C2
Fundamentals of Photogrammetry
Epipolar geometry
Fundamentals of Photogrammetry
Epipolar geometry
RANSAC
RANSAC
a
d
C
A
C
A