TOPICS
Search

Perspective Projection


A perspective projection with center C and image plane Pi not containing C maps a point P!=C in three-dimensional Euclidean space to the intersection of the line CP with Pi. If CP is parallel to Pi, its image is a point at infinity. All points on the same line through C have the same image, so distance from C along the line is lost.

Choose a coordinate system with C=(0,0,0) and image plane z=f. A point P=(X,Y,Z) with Z!=0 is mapped to the image point (x,y,f), where

 (x,y)=((fX)/Z,(fY)/Z).

In homogeneous coordinates, the same projection is represented by

 Z(x; y; 1)=(f 0 0 0; 0 f 0 0; 0 0 1 0)(X; Y; Z; 1).

These formulas give the idealized geometry of imaging from a single viewpoint (Hartley and Zisserman 2004, Torralba et al. 2024).

A perspective projection maps lines not passing through C to lines. Images of parallel lines generally meet at a vanishing point. Consequently, perspective projection does not preserve lengths, angles, or parallelism, unlike an affine transformation (Torralba et al. 2024).

A finite aperture gives a family of perspective projections. In a straight-ray model, put the aperture in the plane z=0 and a screen in the plane z=-b, with b>0. For a point with transverse coordinates X in the object plane z=a, with a>0, the ray through aperture point (u,0) meets the screen at transverse position (1+b/a)u-(b/a)X. Consequently, a point aperture at u=0 gives an inverted image, while a finite aperture spreads each object point over a scaled copy of the aperture. This calculation concerns the geometry of the rays; diffraction is not included.

An Ames window is a rotating trapezoid with vertical sides of unequal length. It can appear to oscillate as its longer side is perceived as remaining nearer the viewer (Ames 1951, Veritasium 2023).

PerspectiveProjectionAmesWindow

The figure shows a geometric ambiguity in a single view. With the center at the origin and image plane z=1, a tilted rectangle with vertices (-1,+/-1,2) and (1,+/-1,4) and a front-facing trapezoid with vertices (-3/2,+/-3/2,3) and (3/4,+/-3/4,3) have the same projected outline. Their corresponding vertices lie on the same projection rays, meeting the image plane at (-1/2,+/-1/2,1) and (1/4,+/-1/4,1).


See also

Affine Transformation, Homogeneous Coordinates, Perspective, Point at Infinity, Projection, Vanishing Point, Vertical Perspective Projection

Explore with Wolfram|Alpha

References

Ames, A., Jr. "Visual Perception and the Rotating Trapezoidal Window." Psychol. Monogr. 65, 1-32, 1951. https://doi.org/10.1037/h0093600.Hartley, R. and Zisserman, A. Multiple View Geometry in Computer Vision, 2nd ed. Cambridge, England: Cambridge University Press, pp. 153-177, 2004. https://doi.org/10.1017/CBO9780511811685.010.Torralba, A.; Isola, P.; and Freeman, W. T. Foundations of Computer Vision. Cambridge, MA: MIT Press, 2024. https://visionbook.mit.edu/imaging.html.Veritasium. "The Illusion Only Some Can See." Apr. 1, 2023. https://www.youtube.com/watch?v=w7yFikRD_iQ.

Referenced on Wolfram|Alpha

Perspective Projection

Cite this as:

Weisstein, Eric W. "Perspective Projection." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PerspectiveProjection.html

Subject classifications