Unit 13 · Perception & Navigation · about 92 min
Cameras and calibration
Mission: Fit the whole checkerboard into the fixed image so every corner can be inspected; visible corners give calibration usable correspondences.
The interactive version of this unit needs JavaScript. Below are its steps as text.
Steps
1. Locate an image point
Select “Show the point”.
Why it matters: A camera maps a 3D point to a 2D image location.
2. Spread the projection
Select “Show the image centre”.
Why it matters: The principal point is the reference for the simple projection.
3. Change the focal length
Select “Increase focal length”.
Why it matters: Focal length in pixels controls the projection scale for this fixed image.
4. Move the board
Select “Move board farther”.
Why it matters: Projection size is inversely proportional to distance in this pinhole model.
5. Reach the image edge
Select “Move board sideways”.
Why it matters: A fixed sensor image crops points beyond its edges.
6. Bend the projection
Select “Apply radial distortion”.
Why it matters: Radial distortion moves points as a function of their distance from the centre.
7. Vary the views
Select “Add varied views”.
Why it matters: The same front-facing view repeated does not supply the same constraints as tilted and translated views.
8. Inspect image quality
Select “Show image risks”.
Why it matters: Poor focus or glare may prevent accurate corner detection.
9. Compare two points
Select “Show residual”.
Why it matters: A residual is observed minus projected position.
10. Summarise the residuals
Select “Show error summary”.
Why it matters: RMS uses the squared length of each 2D residual before averaging and taking the square root.
11. Keep the first result
Select “Show saved outputs”.
Why it matters: Retain the first result and review its overlays before documenting exclusions.
12. Plan your own capture
Select “Show capture plan”. Open Notebook for the capture and local calibration instructions.
Why it matters: A real calibration needs your images, local computation and inspection.
Go deeper
Geometry after the mission
u = fx X/Z + cx; v = fy Y/Z + cy (Z > 0) Horizontal FOV = 2 atan(width / (2 fx)) radial: x′ = x(1 + k1 r²), y′ = y(1 + k1 r²) RMS = √(Σ(du² + dv²) / number of points)
X, Y and Z are camera-frame metres; image coordinates and focal lengths are pixels. The FOV formula assumes a centred principal point and no distortion; after radial distortion is applied, the displayed value remains the nominal pinhole field of view. The toy uses one radial term and supplied synthetic points, not a calibration estimator. OpenCV estimates a richer model from real correspondences.
Public video question: Why do camera lenses need calibration? Geometry and distortion affect the mapping from scene points to image coordinates; calibration estimates parameters for a fixed camera configuration.