Homogeneous coordinates are a coordinate system in which a point of an -dimensional space is represented by numbers, with tuples differing by a common nonzero factor representing the same point. They are fundamental to projective geometry: ordinary points and points at infinity can both be described using finite coordinate values. They also allow translations and perspective transformations to be expressed through matrix multiplication, making them useful in computer graphics and computer vision. (e.math.cornell.edu)
Definition
Let be a field, such as the real numbers or complex numbers. The projective space consists of nonzero tuples in , identified by the equivalence relation
A point is therefore an equivalence class, conventionally written
The entries are its homogeneous coordinates. The all-zero tuple is excluded: it does not determine a one-dimensional subspace. Equivalently, projective points correspond to one-dimensional linear subspaces of the vector space . (ocw.mit.edu)
For example,
These are different representatives of one point, not three different points. The extra coordinate introduces a scale redundancy rather than an additional geometric dimension. (e.math.cornell.edu)
Affine coordinates and points at infinity
When , division by gives ordinary coordinates:
Conversely, an ordinary point is represented by
This identifies an affine space with the part of projective space where . Recovering ordinary coordinates by division is called dehomogenization; in graphics, the corresponding operation is often called the perspective divide. (visionbook.mit.edu)
Points with lie on the hyperplane at infinity. In the real projective plane, a point represents the direction shared by parallel affine lines. Opposite vectors determine the same projective direction because . These points have finite homogeneous coordinates but no finite affine coordinates in the chosen chart. (ocw.mit.edu)
The distinction between finite and infinite points depends on the chosen affine chart. Any coordinate that is nonzero can be normalized to , and the resulting charts cover projective space. The set is a hyperplane isomorphic to ; it is not intrinsically distinguished until a chart has been selected. (ocw.mit.edu)
Lines, incidence, and intersections
In the projective plane, a line has an equation
where . Its coefficients are themselves defined up to a common nonzero factor. Writing a point as and line coefficients as , incidence is expressed by
For two distinct points, the line joining them is represented by their cross product:
Similarly, the intersection of two distinct lines is
These formulas treat finite intersections and intersections at infinity identically. They also exhibit the symmetry between points and lines in projective geometry. (homepages.inf.ed.ac.uk)
For example, the parallel affine lines and have coefficient vectors
Their cross product is , so their projective intersection is , the horizontal direction at infinity. If the two lines coincide, their coefficient vectors are proportional and the cross product is zero; no unique intersection point is determined. These conclusions follow directly from the incidence formulas. (homepages.inf.ed.ac.uk)
Matrix representation of transformations
Affine transformations
can be represented in homogeneous coordinates as
This expresses translation as part of a linear map in the larger coordinate space. A nonzero translation cannot be represented by an ordinary linear transformation of , because every linear map fixes the origin. (cs.cmu.edu)
For instance, translation by uses
Rotations, scaling, and shearing have analogous representations. Successive transformations are combined through matrix multiplication. With column-vector conventions, applying followed by gives ; the order generally matters. Two-dimensional transformations use matrices, and three-dimensional transformations use matrices. (cs.cmu.edu)
Projective transformations
An invertible matrix defines a projective transformation by
Multiplying by a nonzero scalar leaves this transformation unchanged. In two dimensions, writing its entries as gives
Thus a linear operation on homogeneous representatives becomes a fractional transformation in affine coordinates. A zero denominator means that the transformed point lies at infinity in the target chart, not that the projective transformation is undefined. (pages.mtu.edu)
Projective transformations preserve lines and incidence, but generally do not preserve Euclidean lengths, angles, or parallelism. Consequently, homogeneous coordinates do not by themselves supply the metric structure of Euclidean space. (pages.mtu.edu)
Perspective imaging
An ideal perspective camera maps a three-dimensional point to a two-dimensional image using a matrix:
Here describes camera intrinsics, while and describe the change from world coordinates to camera coordinates. The factor accounts for the arbitrary scale of the image-point representative. Homogeneous notation packages coordinate changes and perspective projection into one matrix equation. (docs.opencv.org)
This camera projection differs from an invertible projective transformation: its matrix is rectangular, and multiple scene points along one viewing line can produce the same image point. The camera center maps to the zero vector and therefore has no defined image point. Homogeneous coordinates make these distinctions explicit rather than removing them. (16385.courses.cs.cmu.edu)
Homogeneous polynomial equations
In algebraic geometry, homogeneous coordinates are paired with homogeneous polynomials. A polynomial of degree is homogeneous when every monomial has total degree , giving
Its numerical value generally depends on the chosen representative, but the condition does not. Homogeneous equations therefore define well-defined subsets of projective space. (math.mit.edu)
An affine polynomial of total degree can be homogenized by forming
After expansion, this is a polynomial, including at . For example, the circle equation
becomes the projective conic
Setting recovers the affine equation; setting identifies its points at infinity. For systems of polynomial equations, obtaining the projective closure requires care: homogenizing only a chosen list of generators can introduce unwanted components at infinity. (math.mit.edu)
Historical development
August Ferdinand Möbius introduced homogeneous coordinates in his 1827 work Der barycentrische Calcul. His approach was related to barycentric coordinates, which describe points through weights attached to reference points. Julius Plücker modified this coordinate framework in 1831, contributing to the representation now associated with the real projective plane. These developments connected geometric transformations with algebraic coordinate methods. (notes.math.ca)
Limitations and conventions
Homogeneous coordinates are redundant representations, so ordinary vector operations require interpretation. Adding arbitrary representatives does not define an intrinsic sum of projective points: replacing one representative by a scalar multiple can change the resulting point. Likewise, Euclidean distance cannot be calculated directly from arbitrary homogeneous tuples. Such operations require a selected affine chart and, where appropriate, additional metric structure. (visionbook.mit.edu)
Different conventions place the homogenizing coordinate first or last and use row or column vectors. Corresponding matrix formulas must be adjusted consistently. Most importantly, appending represents only finite points in a particular affine chart; the complete coordinate system also includes nonzero tuples whose homogenizing coordinate is zero. (ocw.mit.edu)
References
- CSP problems 1e.math.cornell.edu
- 38 Representing Images and Geometry – Foundations of Computer Visionvisionbook.mit.edu
- 782 Arithmetic Geometry Lecture Note 13ocw.mit.edu
- Introduction and course overviewcs.cmu.edu
- Manipulating Points and Lineshomepages.inf.ed.ac.uk
- Geometric Transformationspages.mtu.edu
- Massachusetts Institute of Technology — Algebraic Geometry Notesmath.mit.edu
- Geometric Transformations, 1800–1855 – CMS Notesnotes.math.ca