Pinhole Camera and Projection
World, camera, and image frames tied together by K, R, and t, with perspective's scale ambiguity.
Key Terms
Python Tools
Textbook Reference
Topics Covered
- 1Coordinate frames: world, camera, image, and pixel
- 2Intrinsic matrix K: focal length, principal point, and skew
- 3Extrinsics R and t and the camera center
- 4The 3x4 projection matrix P = K[R|t] and perspective division
- 5Depth-scale ambiguity and the loss of metric information under projection
Learning Outcomes
- Assemble the full projection matrix from intrinsic and extrinsic parameters
- Project 3D points to pixels and explain perspective division
- Explain why a single view cannot recover absolute scale
Lecture Infographics
1 image file
Lecture Infographics
Camera Projection Pipeline
World > Camera > Image > Pixel frame - all four coordinate transformations at once
World Frame
3D global coordinates
A 3D point P_w is expressed in the world coordinate frame — a fixed global reference shared by all objects. Measured in real-world units (e.g. metres).
Formula
Homogeneous 3D point in the fixed world frame.
Camera Frame
Extrinsic [R | t]
The extrinsic matrix [R|t] is a rigid-body transform that converts world coordinates into the camera's local frame. The camera optical axis points along +Z_c.
Formula
Extrinsics map world coordinates into the camera frame.
Extrinsic [R | t]
Image Plane
Perspective divide
Dividing by depth Z_c performs perspective projection onto the normalised image plane at z = 1. Points on the same ray through the optical centre map to the same image point.
Formula
Depth divides the camera point, creating perspective shrinkage.
Projection P = K [R | t]
p~ = P * P~_w
Pixel Frame
Intrinsic matrix K
The intrinsic matrix K scales by focal lengths (f_x, f_y) and offsets by the principal point (c_x, c_y) to produce discrete pixel coordinates (u, v) on the image sensor.
Formula
Intrinsic K
Pinhole Camera Model — Ray Projection
Each scene point P projects through the optical centre onto the image plane. The projection is perspective: a ray from P through the pinhole hits the image plane at p = (f·X_c/Z_c, f·Y_c/Z_c). The image is inverted and depth information is lost.
Lecture PDFs
Pinhole Camera and Projection
The embedded PDF preview is disabled to reduce Vercel bandwidth usage. Open the lecture file directly in Google Drive for viewing, downloading, or presenting.