340 likes | 537 Views
EECS 274 Computer Vision. Geometric Camera Calibration. GEOMETRIC CAMERA CALIBRATION. Camera calibration problem Least-squares techniques Linear calibration from points Analytical photogrammetry Reading: Chapter 3 of FP, Chapters 2,6 of S. Calibration.
E N D
EECS 274 Computer Vision Geometric Camera Calibration
GEOMETRIC CAMERA CALIBRATION • Camera calibration problem • Least-squares techniques • Linear calibration from points • Analytical photogrammetry • Reading: Chapter 3 of FP, Chapters 2,6 of S
Calibration • Determine the intrinsic and extrinsic parameters • Assume that the camera observe a set of features (points, or lines) with known positions • Calibration: modeled as an optimization to minimize the discrepancy between the observed image features and their theoretical projections (using the perspective projection equations)
Calibration Problem Given n points, P1, …, Pn with known positions and their images points, p1, …, pn, find ξ
Linear Systems Square system: A x b • unique solution • Gaussian elimination = Rectangular system ?? • underconstrained: • infinity of solutions A x b = • overconstrained: • no solution Minimize |Ax-b| 2
In matrix form Can be derived from the perspective projection matrix
Homogeneous Linear Systems Square system: A x 0 • unique solution: 0 • unless Det(A)=0 = Rectangular system ?? • 0 is always a solution A x 0 = 2 Minimize |Ax| under the constraint |x| =1 2
How do you solve overconstrained homogeneous linear equations ? The solution is e . 1
Example: Line Fitting Problem: minimize with respect to (a,b,d). • Minimize E with respect to d: • Minimize E with respect to a,b: where • Solution is the unit eigenvector with minimum eigenvalue
Note: • Matrix of second moments of inertia • Axis of least inertia in mechanics
Linear Camera Calibration min |Pm|2, |m|=1
Once 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
Decomposition of M As the recovered Orthonormal basis vector θ is close to π/2 and has positive sine
Degenerate Point Configurations Are there other solutions besides M ? • One solution: (l,m,n)=(m1, m2, m3) • Consider the points Pi all lie in some plane, s.t., P∙Pi=0 for some P • Coplanar points: choose (l,m,n)=(P,0,0) or (0,P,0) or (0,0,P ), or • any linear combination of these vectors yields a solution Does not (usually) happen for 6 or more random points!
Radial distortion • Depends on the distance separating the optical axis from the point of interest, d Barrel distortion Corners are detected by fitting lines in each square Using estimated distortion parameters
Correct radial distortion • Tsai’s algorithm (1987) exploits radial alignment constraints for estimating extrinsic parameters
Analytical Photogrammetry Given n points, P1, …, Pn with known positions and their images situations, p1, …, pn, find ξ Non-Linear Least-Squares Methods • Newton • Gauss-Newton • Levenberg-Marquardt Iterative, quadratically convergent in favorable situations
Calibration • Numerous ways that exploits properties of projective geometry • E.g. calibration using lines, calibration circular controlled points
Camera calibration toolbox • Excellent MATLAB toolbox by Jean-Yves Bouguet http://www.vision.caltech.edu/bouguetj/calib_doc/ • Steps: • Generate calibration board • Collect images under different views • Select extreme points • Find corner points • Solve optimization problem
Applications • Augmented reality • Image registration • Image stitching • Panoramic image
Notes • Camera pose estimation • Multi-camera calibration • Auto/self calibration • Multi-camera self calibration • Projective geometry • Multi-view geometry • RANSAC (RANdom Sample Consensus)