Title: Calibration
1Calibration
Many slides and illustrations from J. Ponce
2Tentative class schedule
Aug 26/28 - Introduction
Sep 2/4 Cameras Radiometry
Sep 9/11 Sources Shadows Color
Sep 16/18 Linear filters edges (hurricane Isabel)
Sep 23/25 Pyramids Texture Multi-View Geometry
Sep30/Oct2 Stereo Project proposals
Oct 7/9 Tracking (Welch) Optical flow
Oct 14/16 - -
Oct 21/23 Silhouettes/carving (Fall break)
Oct 28/30 - Structure from motion
Nov 4/6 Project update Proj. SfM
Nov 11/13 Camera calibration Segmentation
Nov 18/20 Fitting Prob. segm.fit.
Nov 25/27 Matching templates (Thanksgiving)
Dec 2/4 Matching relations Range data
Dec ? Final project
3GEOMETRIC CAMERA MODELS
- Elements of Euclidean Geometry
- The Intrinsic Parameters of a Camera
- The Extrinsic Parameters of a Camera
- The General Form of the Perspective Projection
Equation - Line Geometry
Reading Chapter 2.
4Quantitative Measurements and Calibration
Euclidean Geometry
5Euclidean Coordinate Systems
6Planes
7Coordinate Changes Pure Translations
OBP OBOA OAP , BP AP BOA
8Coordinate Changes Pure Rotations
9Coordinate Changes Rotations about the z Axis
10A rotation matrix is characterized by the
following properties
- Its inverse is equal to its transpose, and
- its determinant is equal to 1.
Or equivalently
- Its rows (or columns) form a right-handed
- orthonormal coordinate system.
11Coordinate Changes Pure Rotations
12Coordinate Changes Rigid Transformations
13Block Matrix Multiplication
What is AB ?
Homogeneous Representation of Rigid
Transformations
14Rigid Transformations as Mappings
15Rigid Transformations as Mappings Rotation
about the k Axis
16Pinhole Perspective Equation
17The Intrinsic Parameters of a Camera
Units
k,l pixel/m
f m
a,b
pixel
Physical Image Coordinates
Normalized Image Coordinates
18The Intrinsic Parameters of a Camera
Calibration Matrix
The Perspective Projection Equation
19Extrinsic Parameters
20Explicit Form of the Projection Matrix
Note
M is only defined up to scale in this setting!!
21Theorem (Faugeras, 1993)
22GEOMETRIC CAMERA CALIBRATION
- The Calibration Problem
- Least-Squares Techniques
- Linear Calibration from Points
- Linear Calibration from Lines
- Analytical Photogrammetry
Reading Chapter 3
23Calibration Problem
24Linear Systems
Square system
- unique solution
- Gaussian elimination
A
x
b
Rectangular system ??
- underconstrained
- infinity of solutions
A
x
b
- overconstrained
- no solution
2
Minimize Ax-b
25How do you solve overconstrained linear equations
??
26Homogeneous Linear Systems
Square system
- unique solution 0
- unless Det(A)0
A
x
0
Rectangular system ??
A
x
0
2
Minimize Ax under the constraint x 1
2
27How do you solve overconstrained homogeneous
linear equations ??
The solution is e .
1
remember EIG(ATA)SVD(A), i.e. solution is Vn
28Linear Camera Calibration
29Once M is known, you still got to recover the
intrinsic and extrinsic parameters !!!
This is a decomposition problem, not an
estimation problem.
r
- Intrinsic parameters
- Extrinsic parameters
30Degenerate Point Configurations
Are there other solutions besides M ??
- Coplanar points (l,m,n )(P,0,0) or (0,P,0) or
(0,0,P )
- Points lying on the intersection curve of two
quadric - surfaces
straight line twisted cubic
Does not happen for 6 or more random points!
31Analytical Photogrammetry
Non-Linear Least-Squares Methods
- Newton
- Gauss-Newton
- Levenberg-Marquardt
Iterative, quadratically convergent in favorable
situations
32Mobile Robot Localization (Devy et al., 1997)
33From Projective to Euclidean Images
If z , P , R and t are solutions, so are l z
, l P , R and l t .
Absolute scale cannot be recovered! The Euclidean
shape (defined up to an arbitrary similitude) is
the best that can be recovered.
34From uncalibrated to calibrated cameras
Perspective camera
Calibrated camera
Problem what is Q ?
35From uncalibrated to calibrated cameras II
Perspective camera
Calibrated camera
Problem what is Q ?
Example known image center
36Sequential SfM
- Initialize motion from two images
- Initialize structure
- For each additional view
- Determine pose of camera
- Refine and extend structure
- Refine structure and motion
37Initial projective camera motion
- Choose P and Pcompatible with F
- Reconstruction up to projective ambiguity
Same for more views?
- Initialize motion
- Initialize structure
- For each additional view
- Determine pose of camera
- Refine and extend structure
- Refine structure and motion
different projective basis
38Initializing projective structure
- Reconstruct matches in projective frame
- by minimizing the reprojection error
Non-iterative optimal solution
- Initialize motion
- Initialize structure
- For each additional view
- Determine pose of camera
- Refine and extend structure
- Refine structure and motion
39Projective pose estimation
- Infere 2D-3D matches from 2D-2D matches
- Compute pose from (RANSAC,6pts)
X
F
x
- Initialize motion
- Initialize structure
- For each additional view
- Determine pose of camera
- Refine and extend structure
- Refine structure and motion
Inliers
40Refining and extending structure
- Refining structure
- Extending structure
- 2-view triangulation
(Iterative linear)
- Initialize motion
- Initialize structure
- For each additional view
- Determine pose of camera
- Refine and extend structure
- Refine structure and motion
41Refining structure and motion
Also model radial distortion to avoid bias!
42Metric structure and motion
- use self-calibration (see next class)
Note that a fundamental problem of the
uncalibrated approach is that it fails if a
purely planar scene is observed (in one or more
views) (solution possible based on model
selection)
43Dealing with dominant planes
44PPPgric
HHgric
45Farmhouse 3D models
(note reconstruction much larger than camera
field-of-view)
46Application video augmentation
47Next class Segmentation
Reading Chapter 14