Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.How cameras see
Light travels in straight lines until it hits something. When it passes from air into glass or water it bends (refraction), which is how a lens works: it bends all the light coming from one point of an object so that it meets again at one point behind the lens, forming an image. A camera puts a sensor at that spot. The simplest camera of all, a box with a pinhole, makes a dim, upside-down picture with no lens at all.
Visual odometry, SLAM, object detection, star trackers and Mars rovers’ navigation cameras all turn pixels into geometry. That needs a calibrated camera model: focal length, principal point and lens distortion. Resolution limits (pixels or diffraction) decide what an orbiting camera can see on the ground.
- 1. Light bending as it enters water is called…
- 2. A pinhole camera's image is…
- 3. A longer focal length gives a field of view that is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.Reflection and refraction
- Mirrors reflect at equal angles.
- Snell’s law: , with refractive index n = c/v (air ≈ 1, water 1.33, glass ≈ 1.5). Air to glass at 30° bends to 19.5°.
- Going from glass to air beyond the critical angle = 41.8°, light totally reflects. This is how optical fibres work.
Thin lenses
Objects at infinity focus at f. A 50 mm lens focused on something 2 m away puts the image 51.3 mm behind the lens, inverted and reduced to 1/39 of its size.
- 1. Snell's law:
- 2. An object very far away focuses…
- 3. Total internal reflection needs light going from…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.The pinhole camera model
A camera-frame point (X, Y, Z) projects to the pixel , . In homogeneous form, with world-to-camera rotation R and translation t:
- Intrinsics: K holds the focal length in pixels (= focal length / pixel pitch) and the principal point.
- Extrinsics: (R, t) give the camera’s pose.
- Field of view: . A full-frame 36 mm sensor behind a 50 mm lens sees 39.6°.
Aperture, depth of field and diffraction
The f-number N = f/D sets the aperture diameter D. Out-of-focus points smear into a blur circle proportional to D, so stopping down (larger N) increases depth of field. But a circular aperture can’t resolve angles below the Rayleigh limit . Hubble’s 2.4 m mirror resolves about 0.058″ at 550 nm. From altitude h, the finest ground detail is about , and the pixel footprint (ground sampling distance) is .
Lens distortion
Real lenses bend straight lines, mostly radially: in normalized coordinates. Wide-angle and fisheye lenses need strong models. Calibration estimates K and the distortion together (Zhang, 2000).
- 1. Focal length in pixels equals…
- 2. Stopping down from f/2 to f/8…
- 3. The diffraction limit improves with…
Level 3: Advanced
★★★★☆ Advanced⏱ 35 minGraduate level, with full derivations and proofs.Similar triangles
A ray from (X, Z) through the pinhole hits the image plane at distance f behind it, at , by similar triangles. Dividing by the pixel pitch and adding the principal point gives the pixel coordinate. ∎
Magnification
The ray through the lens centre is undeviated, so object and image subtend the same angle: , i.e. . ∎
Calibration by the Direct Linear Transform
Each correspondence gives two linear equations in the 12 entries of P = K[R | t]. With ≥ 6 non-coplanar points, the least-squares solution is the right singular vector of the stacked system with the smallest singular value (a2-3-5). Normalizing the coordinates first is essential for accuracy (Hartley and Zisserman, 2004). An RQ decomposition of P’s left 3 × 3 block then separates the upper-triangular K from the rotation R.
Exercise 3.1: Hubble’s resolution
rad, or 0.058 arcseconds.
- 1. Minimum number of points for the DLT (non-coplanar):
- 2. RQ decomposition separates P's left block into…
- 3. Pinhole projection follows from…
Level 4: Expert
★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.Calibrating a camera, and resolution limits
Calibration. A synthetic camera (f = 900 px, principal point (640, 360)) views 40 points of a 3-D target with 0.5 px noise. Normalized DLT plus RQ decomposition recovers f = (899.7, 899.5) px and principal point (641.6, 360.6), with 0.57 px reprojection error (the noise level). If the lens has radial distortion k₁ = −0.25 that the model ignores, the error jumps to 7.64 px. That’s why real calibration estimates distortion too, and why visual odometry with a badly calibrated wide-angle lens drifts.
Resolution.
- A drone camera (2.4 µm pixels, 8.8 mm lens) at 100 m sees 2.73 cm per pixel.
- A satellite camera (6.5 µm pixels, 10 m focal length) at 500 km has 0.325 m pixels.
- But with a 0.7 m aperture, diffraction limits it to 0.479 m. Its optics, not its pixels, set the resolution.
Optics in AI, robotics and aerospace
- Robot vision: calibrated cameras for visual odometry, SLAM and grasping; stereo depth Z = fB/disparity.
- Space: star trackers (sub-arcsecond attitude), Mars rover navigation and hazard cameras, Earth-observation and telescope design limited by diffraction.
- Learning: neural radiance fields and 3-D Gaussian splatting rely on the pinhole model and calibrated poses; data augmentation that respects camera geometry.
- Sensors beyond visible light: lidar (time of flight), thermal infrared, event cameras.
References
- R. Hartley, A. Zisserman (2004). Multiple View Geometry in Computer Vision, 2nd ed. Cambridge.
- Z. Zhang (2000). “A flexible new technique for camera calibration.” IEEE TPAMI, 22.
- E. Hecht (2017). Optics, 5th ed. Pearson.
- R. Szeliski (2022). Computer Vision: Algorithms and Applications, 2nd ed. Springer.