Pinhole Camera Projection

A ray from $P(X,Y,Z)$ passes through the pinhole and hits the plane at $p(x,y,-f)$.

1. Y-Z Similar Triangles

$$ \frac{y}{f} = \frac{Y}{Z} \quad \implies \quad y = f \frac{Y}{Z} $$

2. X-Z Similar Triangles

$$ \frac{x}{f} = \frac{X}{Z} \quad \implies \quad x = f \frac{X}{Z} $$

Parameters

🖱️ Rotate: Left  |  Pan: Right  |  Zoom: Scroll  |  ⌨️ 1–5: Views  |  ↑↓←→: Pan