PIXELBANKv8.2.1
Menu
Back to 3D Computer Vision Study Plan
Week 2

Chapter 2: Camera Models & Calibration

Understand how cameras project the 3D world onto 2D images. Learn the pinhole model, lens distortion, intrinsic and extrinsic parameters, and practical calibration techniques using checkerboards and stereo rigs. These concepts are the bridge between physical imaging and the mathematical models every 3D vision algorithm depends on.

Chapter Overview

Camera models describe the mathematical relationship between 3D points in the world and their corresponding 2D pixel locations in an image. Without an accurate camera model, no 3D reconstruction, no stereo matching, and no augmented reality overlay can work correctly.

What is this chapter about? We build the complete camera pipeline from first principles: starting with the idealized pinhole model, adding real-world lens distortion, formalizing intrinsic and extrinsic parameters, and then learning how to estimate all of these from calibration images.

Why does this matter? Every algorithm that connects images to 3D geometry---stereo vision, structure from motion, visual SLAM, augmented reality---requires knowing the camera parameters. An uncalibrated camera is like a ruler with no markings: you can see things, but you cannot measure them.

How the topics connect: We begin with the pinhole camera model to understand the fundamental projection geometry. Then lens distortion models the imperfections of real lenses. Intrinsic parameters encode the camera's internal properties (focal length, sensor center), while extrinsic parameters encode its pose in the world. Zhang's method shows how to estimate intrinsics from a checkerboard. Stereo calibration extends this to camera pairs, and multi-camera systems generalize to arbitrary camera arrays.

Chapter Roadmap

Click any topic to jump in

1
Pinhole Camera Model

The idealized projection from 3D to 2D — similar triangles, focal length, and perspective division.

Perspective Projection GeometryFocal Length and Field of ViewThe Projection Equation
Real-world corrections and internal optics

Modeling the real camera

2
Lens Distortion

Real lenses bend straight lines — radial and tangential distortion models correct for this.

Radial DistortionTangential DistortionThe Brown-Conrady Distortion Model
3
Intrinsic Parameters

The camera matrix K — focal length in pixels, principal point, and skew encoded in one 3x3 matrix.

The 3x3 Intrinsic Matrix KFocal Length in Pixels vs MillimetersPrincipal Point Offset
Camera in the world
4
Extrinsic Parameters

Where is the camera? [R|t] encodes position and orientation in the world.

The [R|t] Extrinsic MatrixCamera Pose vs Camera ExtrinsicsEstimating Camera Pose (PnP Problem)
Estimating parameters from data

Calibration methods

5
Zhang's Calibration

Estimate K from checkerboard images — homographies, constraints, and nonlinear refinement.

Checkerboard Calibration PatternHomography Estimation and Intrinsic ConstraintsNonlinear Refinement (Bundle Adjustment)
6
Stereo Calibration

Calibrating camera pairs — the extrinsic relationship between two cameras.

Stereo Camera GeometryStereo Calibration ProcedureStereo Rectification
Scaling to many cameras
7
Multi-Camera Systems

Camera arrays, chain calibration, and synchronized capture for complex multi-view setups.

Multi-Camera Rig ConfigurationsChain Calibration and Global OptimizationSynchronized Capture and Time Calibration

The pinhole camera is the simplest and most important camera model in computer vision. It describes how a 3D point in the world projects through a tiny aperture onto a flat image plane, forming a 2D image. Despite its simplicity, this model captures the essential geometry of perspective projection and serves as the foundation for all camera-related mathematics in 3D vision.

In this topic

1Perspective Projection Geometry
2Focal Length and Field of View
3The Projection Equation
1 of 3
Perspective Projection Geometry

In the pinhole model, light from a 3D point passes through a single point (the optical center) and lands on the image plane at distance ff (the focal length) behind it. By similar triangles, a point (X,Y,Z)(X, Y, Z) in camera coordinates projects to image coordinates (fX/Z, fY/Z)(fX/Z,\ fY/Z). This division by ZZ is called perspective division and is responsible for the foreshortening effect: distant objects appear smaller. The optical axis is the line through the pinhole perpendicular to the image plane, and the principal point is where this axis intersects the image plane.

Mathematical Intuition

A 3D point (X,Y,Z)(X, Y, Z) projects to (fX/Z,fY/Z)(fX/Z, fY/Z) on the image plane at distance ff. This 1/Z1/Z dependence is the defining feature of perspective projection: it creates foreshortening (far objects shrink), vanishing points (parallel lines converge), and occlusion ordering. The projection is a many-to-one mapping --- all points along the ray λ(X,Y,Z)\lambda(X, Y, Z) for λ>0\lambda > 0 project to the same image point, which is why depth is lost in a single view and stereo or multi-view methods are needed to recover it.

Example:

A 1.8-meter-tall person stands 10 meters from a pinhole camera with focal length f = 50mm. How tall is their image on the sensor?

2 of 3
Focal Length and Field of View

The focal length ff determines the camera's field of view (FOV). A short focal length produces a wide FOV (wide-angle lens), capturing more of the scene but with more perspective distortion. A long focal length produces a narrow FOV (telephoto lens), magnifying distant objects but capturing less of the scene. The relationship is FOV=2arctan ⁣(sensor_size2f)\text{FOV} = 2 \arctan\!\left(\frac{\text{sensor\_size}}{2f}\right). In the intrinsic matrix, focal length is expressed in pixels: fx=fmmimage_width_pxsensor_width_mmf_x = f_{mm} \cdot \frac{\text{image\_width\_px}}{\text{sensor\_width\_mm}}.

Mathematical Intuition

The field of view FOV=2arctan(w/(2f))\text{FOV} = 2\arctan(w/(2f)) relates the sensor width ww and focal length ff. At f=w/2f = w/2, the FOV is 90°90°. Doubling ff halves the angular extent approximately (for small angles): FOVw/f\text{FOV} \approx w/f radians. In pixel units, fx=fmmWpx/wmmf_x = f_{\text{mm}} \cdot W_{\text{px}} / w_{\text{mm}}. A 35mm lens on a 36mm sensor gives FOV 54°\approx 54°; a 200mm lens gives FOV 10°\approx 10°. The depth of field (range of distances appearing sharp) also scales with f2f^2, which is why telephoto lenses have extremely shallow focus.

Example:

A camera has focal length f = 35mm and a sensor width of 36mm. What is the horizontal field of view?

3 of 3
The Projection Equation

The full pinhole projection equation combines intrinsic and extrinsic parameters into a single 3×43 \times 4 projection matrix P=K[Rt]P = K[R|t]. Given a 3D world point XwX_w in homogeneous coordinates, the pixel location is found by: x=PXwx = P X_w, then dividing by the third component. The intrinsic matrix KK is 3×33 \times 3 (focal lengths, principal point, skew), and [Rt][R|t] is the 3×43 \times 4 extrinsic matrix (rotation and translation from world to camera). This compact equation is the mathematical backbone of multi-view geometry.

Mathematical Intuition

The full projection x=K[Rt]Xw\mathbf{x} = K[R|\mathbf{t}]\mathbf{X}_w combines intrinsics KK (3×33 \times 3) and extrinsics [Rt][R|\mathbf{t}] (3×43 \times 4) into the 3×43 \times 4 projection matrix P=K[Rt]P = K[R|\mathbf{t}]. This matrix has 11 DOF: 5 intrinsic (fx, fy, cx, cy, skew) + 6 extrinsic (3 rotation + 3 translation). The result is a homogeneous 3-vector; dividing by the third component yields pixel coordinates. This single matrix multiplication encodes the entire camera model, which is why decomposing PP back into KK, RR, t\mathbf{t} (camera resectioning) is a fundamental operation.

Example:

A camera has K=[50003200500240001]K = \begin{bmatrix} 500&0&320 \\ 0&500&240 \\ 0&0&1 \end{bmatrix}, R=IR = I, t=(0,0,0)t = (0,0,0). What pixel does the world point (1,2,5)(1, 2, 5) project to?