Introduction to computer vision II
Jean Ponce
Zuhaib Akhtar za2023@nyu.edu
Ayush Jain aj3152@nyu.edu
Slides will be available after classes
Camera geometry�and calibration
Quantitative Measurements and Calibration
Euclidean Geometry
Pinhole Perspective Equation
Pinhole Perspective Equation
[
]
Homogeneous coordinates
Conversion
Converting to homogeneous coordinates
homogeneous image
coordinates
homogeneous scene
coordinates
Converting from homogeneous coordinates
Homogeneous coordinates
Invariant to scaling
A point in Cartesian coordinates is a ray in homogeneous ones
Homogeneous Coordinates
Cartesian Coordinates
Slide Credit: Savarese
Projection matrix
p: Image Coordinates: (u,v,1)
M: 3x4 projection matrix
K: Intrinsic Matrix (3x3)
R: Rotation (3x3)
t: Translation (3x1)
P: World Coordinates: (x,y,z,1)
Ow
iw
kw
jw
R,t
p
f
K
Slide Credit: Savarese
Projection matrix
Intrinsic Assumptions
Extrinsic Assumptions
P
p
K
Slide Credit: Savarese
Projection matrix: accounting for pixel size
Intrinsic Assumptions
Extrinsic Assumptions
P
p
Remove assumption: known optical center
Intrinsic Assumptions
Extrinsic Assumptions
Remove assumption: square pixels
Intrinsic Assumptions
Extrinsic Assumptions
Remove assumption: non-skewed pixels
Intrinsic Assumptions
Extrinsic Assumptions
Oriented and Translated Camera
Ow
iw
kw
jw
t
R
P
p
Allow camera translation
Intrinsic Assumptions
Extrinsic Assumptions
3D Rotation of Points
Rotation around the coordinate axes, counter-clockwise:
p
p’
γ
y
z
Slide Credit: Saverese
Allow camera rotation
Degrees of freedom
5
6
normalized coordinates
Explicit form of the projection matrix
Explicit Form of the Projection Matrix
Note:
M is only defined up to scale in this setting!!
Theorem (Faugeras, 1993)
Explicit Form of the Projection Matrix
Linear Camera Calibration
Linear Systems
A
x
b
=
Square system:
Linear Systems
A
A
x
x
b
b
=
=
Square system:
Rectangular system ??
infinity of solutions
Linear Systems
A
A
x
x
b
b
=
=
Square system:
Rectangular system ??
infinity of solutions
Minimize ||Ax-b||
2
no solution
How do you solve overconstrained linear equations ??
Homogeneous Linear Systems
A
x
0
=
Square system:
Homogeneous Linear Systems
A
A
x
x
0
0
=
=
Square system:
Rectangular system ??
Homogeneous Linear Systems
A
A
x
x
0
0
=
=
Square system:
Rectangular system ??
Minimize ||Ax||
under the constraint
||x|| =1
2
2
How do you solve overconstrained homogeneous
linear equations ??
The solution is e .
1
E(x)-E(e1) = xT(UTU)x-e1T(UTU)e1
= λ1μ12+ … +λqμq2-λ1
> λ1(μ12+ … +μq2-1)=0
Example: Line Fitting
Problem: minimize
with respect to (a,b,d).
where
n
Note:
Linear Camera Calibration
Minimize ||Pm|| under the constraint ||m|| =1
2
2
Once M is known, you still got to recover the intrinsic and
extrinsic parameters !!!
This is a decomposition problem, not an estimation
problem.
ρ