{
  "id": "homogeneous-coordinates",
  "title": "Homogeneous coordinates",
  "lang": "en",
  "source_lang": "en",
  "summary": "Homogeneous coordinates represent points by nonzero tuples defined up to a common scale, enabling a unified treatment of affine geometry, infinity, and projection.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Projective coordinates"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/homogeneous-coordinates/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/homogeneous-coordinates/",
      "json": "https://aiwiki.page/zh/homogeneous-coordinates.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Homogeneous coordinates are a coordinate system in which a point of an \\(n\\)-dimensional space is represented by \\(n+1\\) 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)"
    },
    {
      "heading": "Definition",
      "text": "Let \\(K\\) be a field, such as the real numbers or complex numbers. The projective space \\(\\mathbb P^n(K)\\) consists of nonzero tuples in \\(K^{n+1}\\), identified by the equivalence relation\n\n\\[(X_1,\\ldots,X_n,W)\\sim (\\lambda X_1,\\ldots,\\lambda X_n,\\lambda W), \\qquad \\lambda\\in K\\setminus\\{0\\}.\\]\n\nA point is therefore an equivalence class, conventionally written\n\n\\[[X_1:\\cdots:X_n:W].\\]\n\nThe 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 \\(K^{n+1}\\). (ocw.mit.edu)\n\nFor example,\n\n\\[[2:4:2]=[1:2:1]=[-3:-6:-3].\\]\n\nThese 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)"
    },
    {
      "heading": "Affine coordinates and points at infinity",
      "text": "When \\(W\\neq0\\), division by \\(W\\) gives ordinary coordinates:\n\n\\[[X_1:\\cdots:X_n:W] \\longmapsto \\left(\\frac{X_1}{W},\\ldots,\\frac{X_n}{W}\\right).\\]\n\nConversely, an ordinary point \\((x_1,\\ldots,x_n)\\) is represented by\n\n\\[[x_1:\\cdots:x_n:1].\\]\n\nThis identifies an affine space with the part of projective space where \\(W\\neq0\\). Recovering ordinary coordinates by division is called dehomogenization; in graphics, the corresponding operation is often called the perspective divide. (visionbook.mit.edu)\n\nPoints with \\(W=0\\) lie on the hyperplane at infinity. In the real projective plane, a point \\([a:b:0]\\) represents the direction shared by parallel affine lines. Opposite vectors determine the same projective direction because \\([a:b:0]=[-a:-b:0]\\). These points have finite homogeneous coordinates but no finite affine coordinates in the chosen chart. (ocw.mit.edu)\n\nThe distinction between finite and infinite points depends on the chosen affine chart. Any coordinate that is nonzero can be normalized to \\(1\\), and the resulting \\(n+1\\) charts cover projective space. The set \\(W=0\\) is a hyperplane isomorphic to \\(\\mathbb P^{n-1}(K)\\); it is not intrinsically distinguished until a chart has been selected. (ocw.mit.edu)"
    },
    {
      "heading": "Lines, incidence, and intersections",
      "text": "In the projective plane, a line has an equation\n\n\\[aX+bY+cW=0,\\]\n\nwhere \\((a,b,c)\\neq(0,0,0)\\). Its coefficients are themselves defined up to a common nonzero factor. Writing a point as \\(p=(X,Y,W)^{\\mathsf T}\\) and line coefficients as \\(\\ell=(a,b,c)^{\\mathsf T}\\), incidence is expressed by\n\n\\[\\ell^{\\mathsf T}p=0.\\]\n\nFor two distinct points, the line joining them is represented by their cross product:\n\n\\[\\ell=p_1\\times p_2.\\]\n\nSimilarly, the intersection of two distinct lines is\n\n\\[p=\\ell_1\\times\\ell_2.\\]\n\nThese 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)\n\nFor example, the parallel affine lines \\(y=1\\) and \\(y=3\\) have coefficient vectors\n\n\\[\\ell_1=(0,1,-1),\\qquad \\ell_2=(0,1,-3).\\]\n\nTheir cross product is \\((-2,0,0)\\), so their projective intersection is \\([1:0:0]\\), 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)"
    },
    {
      "heading": "Matrix representation of transformations",
      "text": "Affine transformations\n\nAn affine transformation\n\n\\[x'=Ax+t\\]\n\ncan be represented in homogeneous coordinates as\n\n\\[\\begin{pmatrix}x'\\\\1\\end{pmatrix} = \\begin{pmatrix} A&t\\\\ 0^{\\mathsf T}&1 \\end{pmatrix} \\begin{pmatrix}x\\\\1\\end{pmatrix}.\\]\n\nThis expresses translation as part of a linear map in the larger coordinate space. A nonzero translation cannot be represented by an ordinary \\(n\\times n\\) linear transformation of \\(x\\), because every linear map fixes the origin. (cs.cmu.edu)\n\nFor instance, translation by \\((t_x,t_y)\\) uses\n\n\\[T= \\begin{pmatrix} 1&0&t_x\\\\ 0&1&t_y\\\\ 0&0&1 \\end{pmatrix}.\\]\n\nRotations, scaling, and shearing have analogous representations. Successive transformations are combined through matrix multiplication. With column-vector conventions, applying \\(H_1\\) followed by \\(H_2\\) gives \\(H_2H_1\\); the order generally matters. Two-dimensional transformations use \\(3\\times3\\) matrices, and three-dimensional transformations use \\(4\\times4\\) matrices. (cs.cmu.edu)\n\nProjective transformations\n\nAn invertible \\((n+1)\\times(n+1)\\) matrix \\(H\\) defines a projective transformation by\n\n\\[[p]\\longmapsto[Hp].\\]\n\nMultiplying \\(H\\) by a nonzero scalar leaves this transformation unchanged. In two dimensions, writing its entries as \\(h_{ij}\\) gives\n\n\\[x'=\\frac{h_{11}x+h_{12}y+h_{13}} {h_{31}x+h_{32}y+h_{33}}, \\qquad y'=\\frac{h_{21}x+h_{22}y+h_{23}} {h_{31}x+h_{32}y+h_{33}}.\\]\n\nThus 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)\n\nProjective 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)"
    },
    {
      "heading": "Perspective imaging",
      "text": "An ideal perspective camera maps a three-dimensional point to a two-dimensional image using a \\(3\\times4\\) matrix:\n\n\\[s \\begin{pmatrix}u\\\\v\\\\1\\end{pmatrix} = P \\begin{pmatrix}X\\\\Y\\\\Z\\\\1\\end{pmatrix}, \\qquad P=K[R\\mid t].\\]\n\nHere \\(K\\) describes camera intrinsics, while \\(R\\) and \\(t\\) describe the change from world coordinates to camera coordinates. The factor \\(s\\) 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)\n\nThis 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)"
    },
    {
      "heading": "Homogeneous polynomial equations",
      "text": "In algebraic geometry, homogeneous coordinates are paired with homogeneous polynomials. A polynomial \\(F\\) of degree \\(d\\) is homogeneous when every monomial has total degree \\(d\\), giving\n\n\\[F(\\lambda X_1,\\ldots,\\lambda W) =\\lambda^dF(X_1,\\ldots,W).\\]\n\nIts numerical value generally depends on the chosen representative, but the condition \\(F=0\\) does not. Homogeneous equations therefore define well-defined subsets of projective space. (math.mit.edu)\n\nAn affine polynomial \\(f(x_1,\\ldots,x_n)\\) of total degree \\(d\\) can be homogenized by forming\n\n\\[F(X_1,\\ldots,X_n,W) = W^d f\\left(\\frac{X_1}{W},\\ldots,\\frac{X_n}{W}\\right).\\]\n\nAfter expansion, this is a polynomial, including at \\(W=0\\). For example, the circle equation\n\n\\[x^2+y^2=1\\]\n\nbecomes the projective conic\n\n\\[X^2+Y^2-W^2=0.\\]\n\nSetting \\(W=1\\) recovers the affine equation; setting \\(W=0\\) 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)"
    },
    {
      "heading": "Historical development",
      "text": "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)"
    },
    {
      "heading": "Limitations and conventions",
      "text": "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)\n\nDifferent conventions place the homogenizing coordinate first or last and use row or column vectors. Corresponding matrix formulas must be adjusted consistently. Most importantly, appending \\(1\\) 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)"
    }
  ],
  "links": [
    "projective-geometry",
    "matrix",
    "computer-vision",
    "field-mathematics",
    "real-number",
    "complex-number",
    "equivalence-relation",
    "equivalence-class",
    "linear-subspace",
    "vector-space",
    "affine-space",
    "hyperplane",
    "cross-product",
    "affine-map",
    "linear-map",
    "euclidean-space",
    "algebraic-geometry",
    "polynomial",
    "conic-section"
  ],
  "sources": [
    {
      "title": "CSP problems 1",
      "url": "https://e.math.cornell.edu/people/mann/classes/brown/CSPproblems1.pdf"
    },
    {
      "title": "38 Representing Images and Geometry – Foundations of Computer Vision",
      "url": "https://visionbook.mit.edu/homogeneous_coordinates.html"
    },
    {
      "title": "782 Arithmetic Geometry Lecture Note 13",
      "url": "https://ocw.mit.edu/courses/18-782-introduction-to-arithmetic-geometry-fall-2013/c6986079bc69909f419f02c76095c60b_MIT18_782F13_lec13.pdf"
    },
    {
      "title": "Introduction and course overview",
      "url": "https://www.cs.cmu.edu/~16385/s19/lectures/lecture7.pdf"
    },
    {
      "title": "Manipulating Points and Lines",
      "url": "https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/BEARDSLEY/node2.html"
    },
    {
      "title": "Geometric Transformations",
      "url": "https://pages.mtu.edu/~shene/COURSES/cs3621/NOTES/geometry/geo-tran"
    },
    {
      "title": "Massachusetts Institute of Technology — Algebraic Geometry Notes",
      "url": "https://math.mit.edu/classes/18.721/notes/ag-oct7-2021.pdf"
    },
    {
      "title": "Geometric Transformations, 1800–1855 – CMS Notes",
      "url": "https://notes.math.ca/en/article/geometric-transformations-1800-1855/"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}