Definitioncore
Cross-ratio
Also called anharmonic ratio.
A number computed from four collinear points that every projective transformation preserves, the basic invariant of projective geometry.
The cross-ratio is a number computed from four points of a line. A homography changes lengths, ratios of lengths and the spacing of the points, but it keeps the cross-ratio, so the cross-ratio is the basic invariant of projective geometry. This page uses the convention of Hartley and Zisserman, in which the points with coordinates on a line give the value . A photograph of four points on a straight edge therefore gives the same number as the points themselves, whatever the camera position.
Definition
Let be four points of the projective line , each a nonzero 2-vector up to scale (see homogeneous coordinates). For two points write
The cross-ratio is
defined when the points differ and the points differ. Each point appears once in the numerator and once in the denominator, so the scale of each vector cancels and the value depends only on the points.
For finite points , with the coordinate along the line, and
A point at infinity is allowed: its factors become constants that cancel. Other books use other orders of the four points; their value is one of the six values listed below, so state the convention before you compare numbers.
Invariance. A homography of the line is with an invertible matrix. The matrix with columns and is times the matrix with columns and , so . The factor appears in the numerator and in the denominator and cancels. So the cross-ratio does not change. A homography of the plane maps a line to a line and acts on it as a homography of , so it keeps the cross-ratio of four collinear points too.
Four collinear points of the plane. For points of one line of the projective plane, take any point not on the line and replace by the determinant . The value does not depend on . Read in the dual way, it is also the cross-ratio of the four lines through and the points: four concurrent lines have a cross-ratio, and every line that misses their common point cuts them in four points with that same cross-ratio.
Permutations. The 24 orders of four points give at most six values. If one order gives , the others give , , , and .
Harmonic sets. Four distinct points are a harmonic set when the six values are , and . In the convention of this page, means that the pairs and separate each other harmonically. The midpoint of a segment and the point at infinity of its line are the classic example.
Examples and non-examples
- The check value. For : .
- Invariance under a homography. The map is a homography of the line, with matrix . It sends to . The cross-ratio is , the same value, although no length or ratio of lengths is kept.
- The six values. For the points in all 24 orders the values are , , , , and .
- Measuring in a photograph. Four posts stand at equal distances along a straight fence, at units. In the image, the first three are at , and pixels along the image of the fence. The fourth is at with , so and . The homography maps to , which confirms the value.
- A harmonic set. The points , , the midpoint and the point at infinity: .
- Non-example: three points. Three distinct points of a line have no invariant: a homography of the line can send any three distinct points to any other three. The cross-ratio needs four.
- Non-example: the ratio of lengths. For the ratio of the two segments is ; under the images give the ratio . The simple ratio is an affine invariant, not a projective one (see the hierarchy of planar transformations).
- Non-example: points not on one line. For four points in general position in the plane there is no single cross-ratio, because a homography can map any four such points to any other four.
Related definitions
- Projective plane: the space in which the points and lines live.
- Homography: the maps that keep the cross-ratio. A map of the line that keeps every cross-ratio is a homography of the line.
- Hierarchy of planar transformations: the cross-ratio is the invariant of the projective group; ratios of lengths along a line belong to the affine group.
- The formula of Laguerre gives the angle between two lines from the cross-ratio of the two lines and the two lines through their meeting point and the circular points. This is the link between angles and the image of the absolute conic.
- Vanishing point detection: with equally spaced points on a line in the scene, the cross-ratio locates the vanishing point of the line in the image.
References
- Richard Hartley and Andrew Zisserman, Multiple View Geometry in Computer Vision, second edition, Cambridge University Press, 2004, Section 2.5, The projective geometry of 1D (the cross ratio of four points of a line and its invariance, and concurrent lines)
- Jürgen Richter-Gebert, Perspectives on Projective Geometry, Springer, 2011, the chapter Lines and cross-ratios (the cross-ratio by determinants and its invariance)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag JB8543 Edit this page History Report an error Markdown