Homogeneous coordinates
Encyclopedia : H : HO : HOM : Homogeneous coordinates
In mathematics, homogeneous coordinates, introduced by August Ferdinand Möbius, allow affine transformations to be easily represented by a matrix. Also they make calculations possible in projective space just as Cartesian coordinates do in Euclidean space. The homogeneous coordinates of a point of projective space of dimension n are usually written as (x : y : z : ... : w), a row vector of length n + 1, other than (0 : 0 : 0 : ... : 0). Two sets of coordinates that are proportional denote the same point of projective space: for any non-zero scalar c from the underlying field K, (cx : cy : cz : ... : cw) denotes the same point. Therefore this system of coordinates can be explained as follows: if the projective space is constructed from a vector space V of dimension n + 1, introduce coordinates in V by choosing a basis, and use these in P(V), the equivalence classes of proportional non-zero vectors in V.
Taking the example of projective space of dimension three, there will be homogeneous coordinates (x : y : z : w). The plane at infinity is usually identified with the set of points with w = 0. Away from this plane we can use (x/w, y/w, z/w) as an ordinary Cartesian system; therefore the affine space complementary to the plane at infinity is coordinatised in a familiar way, with a basis corresponding to (1 : 0 : 0 : 1), (0 : 1 : 0 : 1), (0 : 0 : 1 : 1).
If we try to intersect the two planes defined by equations x = w and x = 2w then we clearly will derive first w = 0 and then x = 0. That tells us that the intersection is contained in the plane at infinity, and consists of all points with coordinates (0 : y : z : 0). It is a line, and in fact the line joining (0 : 1 : 0 : 0) and (0 : 0 : 1 : 0). The line is given by the equation
- [ (0:y:z:0) = \mu (1 - \lambda) (0:1:0:0) + \mu \lambda (0:0:1:0) ]
- 1 Brackets versus parentheses
- 2 Addition of homogeneous coordinates
- 3 Scalar multiplication of homogeneous coordinates
- 4 Linear combinations of points described with homogeneous coordinates
- 4.1 Both points are affine
- 4.2 Both points are at infinity
- 4.3 One point is affine and the other at infinity
- 4.4 General case
- 5 Use in computer graphics
- 6 See also
Brackets versus parentheses
Consider projective 2-space: points in the projective plane are projections of points in 3-space ("3-D points"). Let the notation- [ (x:y:z) ]
- [ (u:v:w) ]
- [ (x:y:z) = (u:v:w) \Leftrightarrow x=u \wedge y=v \wedge z=w. ]
- [ [x:y:z] ]
- [ [u:v:w] ]
- [ [x:y:z] = [u:v:w] \Leftrightarrow \exists \alpha (x = \alpha u \wedge y = \alpha v \wedge z = \alpha w ). ]
- [ (x:y:z) \equiv (u:v:w) \Leftrightarrow \exists \alpha (x = \alpha u \wedge y = \alpha v \wedge z = \alpha w ). ]
- [ (x:y:z) \equiv (u:v:w) \Leftrightarrow [x:y:z] = [u:v:w]. ]
Addition of homogeneous coordinates
This distinction between brackets and parentheses means that addition of points in homogeneous coordinates will be defined in two different ways, depending on whether the coordinates are enclosed with brackets or parentheses.Consider once again the case of the projective plane. Addition of a pair of 3-D points is the same as for ordinary coordinates:
- [ (a:b:c) + (x:y:z) = (a+x:b+y:c+z). ]
- [ [a:b:c] + [x:y:z] = [z a + x c : z b + y c : c z]. ]
- [ (a:b:c:d) + (x:y:z:w) = (a+x:b+y:c+z:d+w) ]
- [ [a:b:c:d] + [x:y:z:w] = [w a + d x : w b + d y : w c + d z : d w]. ]
Scalar multiplication of homogeneous coordinates
There are two kinds of scalar multiplication: one for unprojected points and another one for projected points.Consider a scalar a and an unprojected 3-D point (x : y : z). Then
- [ a (x:y:z) = (a x : a y : a z). ]
- [ (x:y:z) \equiv a (x:y:z) ]
- [ (x:y:z) \ne a (x:y:z). ]
- [ a [x:y:z] = [a x : a y : z] ]
- [ [x:y:z] \ne a [x:y:z]. ]
Linear combinations of points described with homogeneous coordinates
Let there be a pair of points A and B in projective 3-space, whose homogeneous coordinates are
- [ \mathbf : [X_A:Y_A:Z_A:W_A], ]
- [ \mathbf : [X_B:Y_B:Z_B:W_B]. ]
- both points belong to affine 3-space,
- both points belong to the plane at infinity,
- one point is affine and the other one is at infinity.
Both points are affine
If both points are in affine 3-space, then [ W_A \ne 0 ] and [ W_B \ne 0 ]. Their linear combination is
- [ a [X_A:Y_A:Z_A:W_A] + b[X_B:Y_B:Z_B:W_B] \ ]
- :[ = [a X_A:a Y_A:a Z_A:W_A] + [b X_B:b Y_B:b Z_B:W_B] \ ]
- : [ = \left[ a : a : a : 1 right] + \left[ b : b : b : 1 right] ]
- : [ = \left[ a + b : a + b : a + b : 1 right] . ]
Both points are at infinity
If both points are on the plane at infinity, then WA = 0 and WB = 0. Their linear combination is
- [ a [X_A:Y_A:Z_A:W_A] + b [X_B:Y_B:Z_B:W_B] = [a X_A:a Y_A:a Z_A:0] + [b X_B: b Y_B:b Z_B:0] ]
- ::::: [ = [a X_A + b X_B : a Y_A + b Y_B : a Z_A + b Z_B : 0]. ]
One point is affine and the other at infinity
Let the first point be affine, so that [ W_A \ne 0 ]. Then
- [ a [X_A:Y_A:Z_A:W_A] + b[X_B:Y_B:Z_B:0] ]
- :[ = a [0:0:0:0] + b [X_B:Y_B:Z_B:0], ]
- :[ = [b X_B:b Y_B:b Z_B:0], ]
General case
The calculation can also be carried over without distinguishing between cases, similarly to the addition of two points:
- [ a [X_A:Y_A:Z_A:W_A] + b [X_B:Y_B:Z_B:W_B] ]
- : [ = [a W_B X_A + b W_A X_B:a W_B Y_A + b W_A Y_B:a W_B Z_A + b W_A Z_B:W_A W_B] ]
In particular, applying this formula in the degenerate cases gives us that summing [ [0:0:0:0] ] with anything else produces [ [0:0:0:0] ] again.
Use in computer graphics
Homogeneous coordinates are frequently used in computer graphics as they allow all affine transformations to be represented by a matrix operation. A translation in R^2:(x,y) -> (x+a,y+b) can be represented as- [\begin1&0&a\\0&1&b\\0&0&1\end\beginx\\y\\1\end=\beginx+a\\y+b\\1\end,]
- [\begina&b&0\\c&d&0\\0&0&1\end.]
See also
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
