Perspective projection is a technique used to project a 3D object onto a 2D plane. Namely, an object and its image.

Essentially, we define a camera matrix which describes this mapping.

From first principles, we have a vector describing the projection in 3D space ( is the scaling factor): For simplicity, let . Generally, we can derive a transformation matrix which takes into account the centre of the image frame and its distance from the top left corner of the image. Additionally, we introduce a scale factor, resulting in:

Generally, the world reference frame does not coincide with the reference frame of the camera. As such, we must use a transformation matrix: Hence, we have the camera matrix, defined as: