Start with a hole and a screen
Put a small opening in an opaque wall and place a screen behind it. Light from an upper scene point travels through the opening to a lower point on the screen. Light from a lower point travels upward. The resulting picture is inverted in both image axes; no lens is needed to establish that mapping.
An ideal zero-size opening admits only one ray direction per image point. A real opening admits a small bundle, giving each scene point a footprint. The ideal pinhole is a geometric reference, not a device that produces a bright, perfectly sharp photograph with an infinitely small hole.
Similar triangles set position
Let u be the positive object distance in front of the hole, b the positive screen distance behind it, and h the object height measured upward from the axis. On the physical screen, the signed height is:
For a 100 mm object at 1000 mm and a screen 50 mm behind the hole, the image is −5 mm high. The minus sign indicates inversion. Moving the screen to 100 mm doubles the image height; moving the object twice as far away halves it.
The same construction applies in two dimensions. For scene coordinates (X, Y, Z), with Z positive toward the scene and a physical screen behind the hole, the image coordinates are (−bX/Z, −bY/Z). Points on the same ray share one projected position, so a single image cannot recover their depths from position alone.
Inspect geometry, footprint and light separately
The object is 100 mm high. Change the distances or hole diameter and watch the enlarged screen footprint. All lengths are in millimetres.
- Signed image height
- -5.000 mm
- Geometric footprint diameter
- 0.525 mm
- Relative central irradiance
- 1.000 × reference
The reference is a 0.5 mm hole and a 50 mm screen distance. Irradiance assumes fixed scene radiance near the axis and uses a small-angle area/distance approximation. The footprint excludes diffraction, so reducing diameter cannot be interpreted as unlimited real sharpness.
A circular opening of diameter a maps a point to a geometric footprint of diameter c. Tracing the opposite edges of the opening gives:
This footprint is centred on the ideal projected point. Reducing a shrinks that geometric footprint without moving its centre. The admitted area falls with a², however. For fixed scene radiance near the axis, the small-angle screen irradiance scales approximately with (a/b)². A larger image can therefore also be dimmer; projection size and available light are different quantities.
At sufficiently small openings, diffraction becomes material and the ray-only footprint is no longer the whole blur. The experiment deliberately omits waves, thick-hole clipping, off-axis illumination falloff and detector sampling. Its sharpness trend cannot be extrapolated to an arbitrarily small aperture.
Why a calibration matrix often has the opposite sign
Computer-vision models commonly put a virtual image plane in front of the projection centre and choose pixel axes to match the stored image. That gives the familiar positive ratios:
Here fₓ and fᵧ are scales in pixels and (cₓ, cᵧ) is the principal point. For this equation, use camera coordinates with X right, Y down and Z forward, and pixel coordinates increasing right and down, as in OpenCV. This changes the vertical-axis convention from the upward-positive height h in the physical drawing above. The virtual plane is a coordinate convention; it does not say that the physical screen receives an upright image. Likewise, b is a projection-plane distance, not the refractive focal length of a lens.
Add a lens, then introduce its departures
The Lens refraction lab shows how a lens gathers rays across a finite aperture and brings them to a common image point. That is the missing step between a pinhole reference and defocus or aperture-shaped bokeh.
Radial distortion and tangential distortion describe position errors relative to an ideal projection. Perspective convergence itself is part of this projection, not a lens defect. Changing camera position changes perspective; merely changing a calibration scale is a different operation.
References
- Carnegie Mellon University — Computer Vision, image formation lecture: pinhole projection, physical and virtual image-plane conventions, finite openings and the diffraction limitation.
- OpenCV — Camera Calibration and 3D Reconstruction: pinhole intrinsics, camera coordinates and the separately parameterised distortion model.
- OpenCV — Perspective-n-Point pose computation: the rightward X, downward Y and forward Z camera-axis convention used in the calibration equation.