
Points and displacements
In the plane, a rotation is linear: . A translation is not linear, because a linear map sends the zero vector to zero. A rotation followed by a translation therefore has the form Append one coordinate. A finite point gets a 1 and a displacement vector gets a 0: Rotation and translation now fit in one matrix: The translation column multiplies the last coordinate. It therefore moves points, which have , and has no effect on displacements, which have . The last coordinate marks whether a column is a point or a displacement, and it does not measure position along any axis. For example, translating by sends the point to , while the displacement stays .Code
Code
Coordinates depend on the frame
An affine space of dimension consists of a set of points and an associated vector space of dimension . It supports two operations:
- Point subtraction: gives a vector.
- Point translation: moves a point by a vector.
Code
Code
Homogeneous scale and projective points
In projective geometry, a point is a class of nonzero vectors that differ only by scale: When , the Cartesian point is . The vectors and therefore describe the same finite point . Each class is a line through the origin of , and the plane cuts it at the Cartesian point. When , the class has no Cartesian point. It is an ideal point, a direction on the line at infinity. Adding these points gives the projective plane, in which every pair of distinct lines meets in exactly one point. Two parallel lines meet at the ideal point of their common direction (Hartley & Zisserman, 2004). The earlier sections used the same vector for a displacement. Under a rigid or affine transformation it behaves as a displacement, and under a projective transformation it is a point at infinity. Three-dimensional space works the same way with four coordinates. A point becomes , and A camera maps these 3D homogeneous points to 2D homogeneous image points with a matrix. The camera divides by the last coordinate after the matrix product. For a camera that coordinate is the depth of the point, so the division makes distant objects appear smaller. The pinhole model builds that matrix.Which properties a transformation keeps
All of the following act on column vectors .
With these conventions the families are nested: rigid similarity affine projective. Each family keeps fewer properties than the one before it. A projective transformation, or homography, keeps lines straight but can make parallel lines converge, which is what the photograph of the tracks shows. Singular matrices collapse the plane and are left out of these groups.
To apply a homography, compute and divide: , as long as . The first three families have a last row of , so and the division does nothing. For a homography, depends on the point, so the division makes the map nonlinear in Cartesian coordinates.
The code below applies one transformation from each family to the unit square and checks which properties each one keeps.
Code
Code
Composing transformations
If maps coordinates in frame to frame , and maps frame to frame , then The product is valid because the inner labels match: takes coordinates in , and produces coordinates in . The reversed product does not correspond to any chain of frames. It is also a different matrix in general, because matrix multiplication does not commute. For example, rotating and then translating moves a point to a different place than translating and then rotating. In the code below, frame is rotated by and shifted by one unit in , and frame is shifted two units along the axis of . The origin of lands at in . The reversed product gives a different point.Code
Code
Exercises
- Why does ignore the translation column, while includes it?
- Show numerically that and are the same projective point.
- A square becomes a parallelogram. Which transformation families could have produced it, and which measurements are unchanged?
- Why is meaningful, while the reversed product generally is not?
- Why can a homography make two parallel lines appear to converge?
References
- Hartley, R., Zisserman, A. (2004). Multiple View Geometry in Computer Vision.
- Kevin M. Lynch, F. (2017). Modern Robotics. Link
Found an error on this page? Report an issue.

