Pinhole Projection and Homogeneous Coordinates

Project a three-dimensional camera-space point into pixels and determine which information disappears during perspective division.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Image position depends on coordinate ratios
  2. External pose determines which coordinates enter the model

Image position depends on coordinate ratios

For camera-space coordinates \((X,Y,Z)\) with \(Z>0\), normalized image coordinates are \(X/Z,Y/Z\). Intrinsics then scale and offset them to pixel coordinates. With focal length 800 pixels and centered coordinates \((X,Z)=(1,4)\), the horizontal displacement is 200 pixels. The point \((2,8)\) gives the same horizontal ratio. One image ray therefore carries direction without a unique depth.

External pose determines which coordinates enter the model

A rigid transformation brings world coordinates into the camera frame before projection. Axis sign, transform direction and unit conventions must be consistent. Distortion parameters can modify a simple pinhole relation rather than being absorbed by a single focal length. Camera calibration estimates these parameters. Stereo disparity uses two views to infer depth under additional geometric assumptions.[1][2]

References

  1. Richard Szeliski, Computer Vision: Algorithms and Applications ↩
  2. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩