Exercises
Use Figure 11-2 to derive the equations x = fx · (X/Z) + cx and y – fy · (Y/Z) + cy using similar triangles with a center-position offset.
Will errors in estimating the true center location (cx, cy) affect the estimation of other parameters such as focus?
Hint: See the q = MQ equation. Draw an image of a square:
Under radial distortion.
Under tangential distortion.
Under both distortions.
Refer to Figure 11-13. For perspective views, explain the following.
Where does the "line at infinity" come from?
Why do parallel lines on the object plane converge to a point on the image plane?
Assume that the object and image planes are perpendicular to one another. On the object plane, starting at a point p1, move 10 units directly away from the image plane to p2. What is the corresponding movement distance on the image plane?
Figure 11-3 shows the outward-bulging "barrel distortion" effect of radial distortion, which is especially evident in the left panel of Figure 11-12. Could some lenses generate an inward-bending effect? How would this be possible?
Using a cheap web camera or cell phone, create examples of radial and tangential distortion in images of concentric squares or chessboards.
Calibrate the camera in exercise 6. Display the pictures before and after undistortion.
Experiment with numerical stability and noise by collecting many images of chessboards and doing a "good" calibration on all of them. Then see how the calibration parameters change as you reduce the number of chessboard images. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access