What survives

A line is a space of its own

Everything this site has said about projective geometry has been said about the plane. One dimension down there is a smaller object with a complete theory: a point of a line is one ratio, a map of a line is three numbers, three pairs fix it, and the cross-ratio is not merely an invariant but the only one — which is a claim that can be made to fail.

Worth reading first: What a projection destroys · Four lines have a cross-ratio.

The first essay on this site says that a projection destroys length, angle, area and the ratio in which a point divides a segment, and that one quantity survives. Everything since has been built on that one quantity.

What has not been said is where it lives.

Four points on a line, before and after a projectionLength and the ratio of lengths do not survive the projection; the cross-ratio does, agreeing to 0e+0 relative.horizonABCDon the groundin the picturelength AB1.00011.3930ratio AB:CD0.56670.6837cross-ratio1.31681.3168correct from 26 cm, at 160 mm wide34° across
Fig. 1 The survivor, in the form it is usually met: four points on a line in the world, four points on a line in the picture, one number the same on both sides.

The cross-ratio is not a property of a picture, or of a camera, or of a scene. It is a property of four points of a line, and a line — a projective line — is a space in its own right, with its own points, its own maps and its own complete theory. That theory is small enough to state in a page and it turns out to be underneath a good deal of what the construction field does by hand.

What a point of a line is

A point of the projective line is a pair of numbers up to scale: [a:b][a : b], where [3:1][3 : 1] and [6:2][6 : 2] are the same point. The ordinary coordinate is t=a/bt = a/b, and [1:0][1 : 0] — the pair with a zero underneath — is the point at infinity.

That is not a trick for handling a special case. It is the same device the site uses for the plane, one size down: a point of the picture is a triple up to scale, a point of space is a quadruple, and a point of a line is a pair.

A family of parallel ground lines at 30°, and where they meetAll five lines pass through one point on the horizon, off the edge of the frame at x = 1464. The point fitted from the drawn lines agrees with the one computed from the direction to 1e-11 px, and the fit's own residual is 2e-12 px.horizon — the image of the line at infinityvanishing point at x = 1464 — off the framecorrect from 26 cm, at 160 mm wide34° across
Fig. 2 The point at infinity in its usual disguise. Parallel lines meet at one, its image is a vanishing point, and on a line it is an ordinary member of the space rather than a limit.

Writing it that way makes the cross-ratio an ordinary determinant expression, with the point at infinity as one of the four costing nothing. That matters more than it sounds: the fourth point of almost every construction in the construction field is the vanishing point, and a formula that has to special-case it is a formula that special-cases the most useful configuration there is.

A receding depth cut into 7, with no ruler anywhere7 equal steps along an auxiliary direction, one join to the far end, and 6 parallels: the cuts land 2e-13 px from the divisions the camera projects. 7 is not a power of two, and nothing here halves anything.1correct from 19 cm, at 160 mm wide46° across
Fig. 3 One of those constructions, with the vanishing point doing the work of a fourth point. The arithmetic below treats it exactly like the other three.

What a map of a line is

A projectivity of a line is a two-by-two matrix, up to scale, acting on the pairs:

tat+bct+dt \mapsto \frac{a t + b}{c t + d}

Four entries, minus one for the scale, leaves three degrees of freedom. That number is the whole essay.

Three degrees of freedom means three conditions determine the map. Three conditions means three point-pairs. And once three pairs are given, every other point’s image is not a choice — it is a consequence.

Three pairs, and then the line has no choices leftA projectivity of a line is a 2×2 matrix up to scale — three numbers — so three pairs determine it and every further point is a prediction. The three drawn pairs give t ↦ (0.3832·t − 0.7714)/(0.4429·t − 0.2488), which sends 2.70 to 0.2780. Predicted rather than fitted, and the cross-ratio of the four is 0.839506 on the left and 0.839506 on the right — the same number to 16 decimal places.tt′0.003.101.00-2.004.000.502.700.28predicted, not fittedthree pairs givencross-ratio 0.839506
Fig. 4 Three pairs given, drawn as three arrows between two copies of the line. The fourth arrow is not given: it is where the map the first three fixed has to send its point.
Three pairs, and then the line has no choices leftA projectivity of a line is a 2×2 matrix up to scale — three numbers — so three pairs determine it and every further point is a prediction. The three drawn pairs give t ↦ (0.3832·t − 0.7714)/(0.4429·t − 0.2488), which sends -1.80 to 1.3968. Predicted rather than fitted, and the cross-ratio of the four is 2.074074 on the left and 2.074074 on the right — the same number to 15 decimal places.tt′0.003.101.00-2.004.000.50-1.801.40predicted, not fittedthree pairs givencross-ratio 2.074074
Fig. 5 The same map, asked about a different fourth point. Nothing was refitted between these two figures; the map has three numbers in it and they were settled by the three arrows.

The construction that produces the map is the standard one and it is worth naming because it is the reason three is the right number. There is exactly one projectivity carrying any three distinct points to 00, 11 and \infty. Compose one of those with the inverse of another and any three points go to any other three, once, and no further freedom is left over.

The claim, and how it fails

“The cross-ratio is an invariant of projection” is a true sentence that says almost nothing. Every projection preserves plenty of things — incidence, straightness, the order in which points lie for some configurations — and preserving a number is common.

The claim worth making is the strong one:

The cross-ratio is the only invariant of four points of a line. Two quadruples with the same cross-ratio are carried to each other by some projectivity, and two with different cross-ratios are carried by none.

That is a claim which can be made to fail, and making it fail is what makes it a measurement.

The fourth pair is not free, and asking for a different one is refusedThe curve is where the three given pairs put every point. Asking for 2.70 ↦ 0.389 instead of 0.278 — a factor of 1.40 — is asking for a projectivity with four independent conditions, and there is none: the cross-ratio would have to change from 0.8395 to 0.9166. The check refuses it. That refusal is what "the cross-ratio is the only invariant" means, stated so it can fail.-1.50-1-0.50000.5002345tt′ the three pairs requireasked forrefusedcross-ratio 0.8395 → 0.9166
Fig. 6 Three pairs fixed, and a fourth pair asked for that is not the one the map gives. The cross-ratio would have to change from 0.8395 to 0.9166, and the check refuses it.
The fourth pair is not free, and asking for a different one is refusedThe curve is where the three given pairs put every point. Asking for 2.70 ↦ 0.292 instead of 0.278 — a factor of 1.05 — is asking for a projectivity with four independent conditions, and there is none: the cross-ratio would have to change from 0.8395 to 0.8488. The check refuses it. That refusal is what "the cross-ratio is the only invariant" means, stated so it can fail.-1.50-1-0.50000.5002345tt′ the three pairs requireasked forrefusedcross-ratio 0.8395 → 0.8488
Fig. 7 The same refusal at a five per cent request. There is no threshold and no tolerance beyond the arithmetic’s own: a projectivity either exists or it does not.
The fourth pair is not free, and asking for a different one is refusedThe curve is where the three given pairs put every point. Asking for 2.70 ↦ 0.278 instead of 0.278 — a factor of 1.00 — is asking for a projectivity with four independent conditions, and there is none: the cross-ratio would have to change from 0.8395 to 0.8395. At a factor of one it is the point the map already gives, and the check passes. That refusal is what "the cross-ratio is the only invariant" means, stated so it can fail.-1.50-1-0.50000.5002345tt′ the three pairs requireasked forthe identity casecross-ratio 0.8395 → 0.8395
Fig. 8 And the control, which is the half that stops the refusal from being a routine that rejects everything. Asking for exactly the pair the map already gives is accepted.

Run the other way, that is a test on a drawing. Four marks claimed to be the images of four known points either have the right cross-ratio or they were not made by any projection of that line, and the deciding number is one subtraction.

Why the test is weaker than it looks

The site has already been caught by this and the finding is worth repeating here, where the reason for it is visible.

Dividing depth by eye measures three taught methods for spacing a receding row and finds all three wrong in metres. The obvious check — take four consecutive divisions and compute their cross-ratio — gives one of the three a perfect score.

Two versions of the same invariant, one of which measures nothingFour consecutive divisions give the equal-steps method a perfect score. Using the vanishing point as the fourth point rejects it by 14%.error against the value the projection must producefour divisionsthree plus the VPthe projectionexactexactequal stepsexact14%halving3.6%25%tapering0.9%21%green: agrees with the projectiona necessary condition is not a test
Fig. 9 The check that fails to discriminate. Four consecutive divisions of a row spaced equally in the picture have cross-ratio 4/3, and four consecutive divisions of a correctly projected row have cross-ratio 4/3 as well.

The reason is exactly the three degrees of freedom. Four points chosen as “the first four of a sequence” are not four independent points: any four equally spaced points can be carried to any other four equally spaced points by a projectivity, because three pairs were enough and the fourth came free. A test run on four points that a map could carry anywhere is a test on nothing.

Four points on a line, before and after a projectionLength and the ratio of lengths do not survive the projection; the cross-ratio does, agreeing to 0e+0 relative.horizonABCDon the groundin the picturelength AB1.00011.3930ratio AB:CD0.56670.6837cross-ratio1.31681.3168correct from 26 cm, at 160 mm wide34° across
Fig. 10 The version with teeth: choose four points that are not four consecutive members of one sequence, so that the value could have come out otherwise. Their cross-ratio is not 4/3, and it is then a number a wrong drawing can fail to reproduce.

That is the practical rule this section exists for. Four points of which three were free tell nobody anything; the fourth has to come from somewhere the first three did not.

A perspectivity is a projectivity, and not conversely

Two lines in a plane and a point not on either: joining each point of the first line to the centre and reading where the join meets the second is a perspectivity. It is the simplest map of a line to a line and it is what every ray in every figure on this site performs.

A point on the left is a line on the rightFive points in the left picture. Each one fixes a line in the right picture — the image of the ray it came along — and its match lies on that line to 1.4e-13 px. The five lines meet at the epipole, 3.5e-11 px from concurrent. Knowing where a point is in one picture does not say where it is in the other; it removes one of the two degrees of freedom.1234512345a point is chosen hereand must be on this linematch to its own epipolar line: 1.4e-13 px5 of 44 correspondences drawn
Fig. 11 The operation, drawn: a centre, two lines, and the correspondence a pencil of rays sets up between them.

Every perspectivity is a projectivity. The converse is false, and the gap is instructive: a perspectivity between two distinct lines fixes their point of intersection, so it has only two free parameters rather than three. A general projectivity is a composition of perspectivities — two of them suffice — and the extra parameter is the intermediate line’s freedom.

A print, photographed again — flat and rolledFour marks fix a homography; the other 16 are predicted by it. On a flat print they land where it says to 1e-13 px. Rolled to 1/R = 0.25 per metre the same four predict the same 16 to 8.3 px, because a composition of projections is a projection only if the middle surface is a plane.an anchorcorrect from 19 cm, at 160 mm wideflat 1e-13 px · rolled 8.3 px
Fig. 12 Two perspectivities in a row. The composition is a projectivity and it is not in general a perspectivity, which is why “projection of a projection” needed an essay of its own.
Two ground lines at 90°, and the picture says soThe two lines cross at 80.43° on the paper. Taking the cross-ratio of the pair with the two lines from their crossing point to the imaged circular points, and halving the logarithm's imaginary part, returns 90.000000° — the angle in the world, with no rectification anywhere.horizonv_zthe horizon misses the imaged circle, so the two points are a conjugate pairprotractor on the paper: 80.43° · cross-ratio: 90.000000°correct from 21 cm, at 160 mm wide42° across
Fig. 13 The dual statement, on a pencil of lines rather than a range of points. Four rays through a point carry the same number, and any transversal reads it back — which is why a cross-ratio can be measured when the points themselves have left the picture.

The map, written down

It is worth seeing the answer once as numbers, because the shape of it explains what a projectivity of a line can and cannot do.

Three pairs — nought to 3.1, one to minus two, four to a half — give a map with four entries, and applied to 2.70 it returns 0.2780. That number was not fitted to anything. It is the value the three arrows above force, and the cross-ratio of the four points on the left agrees with the cross-ratio of their four images to sixteen decimal places.

A map with three parameters is very free. It can reverse the order of points, it can send a finite point to infinity and bring infinity back to a finite place, and it can compress an unbounded range into a short interval. What it cannot do is move four points independently, and every constraint on a drawing that this site has ever checked is a case of that one limitation.

Three pairs, and then the line has no choices leftA projectivity of a line is a 2×2 matrix up to scale — three numbers — so three pairs determine it and every further point is a prediction. The three drawn pairs give t ↦ (0.3832·t − 0.7714)/(0.4429·t − 0.2488), which sends 4.90 to 0.5758. Predicted rather than fitted, and the cross-ratio of the four is 1.061224 on the left and 1.061224 on the right — the same number to 17 decimal places.tt′0.003.101.00-2.004.000.504.900.58predicted, not fittedthree pairs givencross-ratio 1.061224
Fig. 14 The same map asked about a point beyond the last of the three. Nothing extrapolates badly here, because there is nothing being extrapolated: the map is exact everywhere or it is not a map.

The one place a projectivity of a line does misbehave is at its pole — the point t=d/ct = -d/c, which it sends to infinity. Anything near there is thrown a long way, and a drawing whose useful range straddles that point is a drawing whose measurements are conditioned by how close it came.

How wide the picture gets as the field of view opensOn a flat plane the picture's half-width is tan(θ/2): it multiplies by 6.6 between 120° and 170° and is unbounded at 180°. On a cylinder it multiplies by 1.42 over the same range and keeps going past 180° without incident.0246850100150field of view across the picture (degrees)half-width of the picture, in focal lengthsplanecylinderstereographicequidistantcut off at eight focal lengthsthe plane crosses it at 166°
Fig. 15 The pole in its familiar form. A point approaching the plane through the eye images further and further out, and the reciprocal that does it is the same reciprocal as the denominator above.

What lives on this line, on this site

Almost everything, once it is looked at.

The horizon is a projective line, and the vanishing points of horizontal directions are its points. The vanishing point of a direction and the vanishing point of the direction at right angles to it are paired by a map of that line, which is the subject of a rung further along.

A receding row of posts sets up a map of the drawn line to itself, and which map it is decides how the spacings behave — the subject of the rung immediately after this one.

The pencil of rays through the eye is a projective line’s worth of directions, and the cross-ratio of four of them is the number that survives every section of the pencil.

Projective, affine, metric — what each stage buysThe photograph fixes the plane only up to a projectivity: the midpoint of a receding side lands 0.3970 of the way along. Supplying the plane's vanishing line buys the midpoint back exactly and nothing else. Supplying the image of one circle buys the last three numbers, at which point the right angle is 90.000° and two equal sides measure 1.000000. The cross-ratio is 1.333333 in all three, because it was never lost.projectiveaffinemetricmidpointtwo equal sidesa right anglecross-ratioprojective1.333333333affine0.5000001.333333333metric0.5000001.00000090.000°1.333333333— means the stage does not determine it at allcross-ratio 1.333333 throughout
Fig. 16 And the stratification this all sits inside: what a picture of a plane determines, in three stages. The cross-ratio is the column that holds through every one of them, and it holds because it is the only thing that could.
Halving a receding rectangle two waysThe diagonals cross at the image of the rectangle's centre, 8e-14 px from it — the construction is exact at every camera because it uses only which lines meet where, and that is what a projection keeps. Halving the drawn side with a ruler instead lands 22.7 px from the image of the side's midpoint.the diagonals against a ruler, at 3.2 mthe diagonals — exactthe ruler — 22.7 px outcorrect from 23 cm, at 160 mm wideharmonic set -1.000000 · 8e-14 px
Fig. 17 The one value of the cross-ratio with a construction attached. A harmonic set — cross-ratio minus one — is reachable with a straightedge alone from three points, which is the special case a drawing office actually uses.

What a measuring point is, said this way

The drawing office has a construction for laying out true distances along a receding line: mark the distances at true scale along a line that runs parallel to the picture plane, join each mark to a fixed point on the horizon, and read where the join crosses the receding line.

The measuring point, checked against the depths the camera produces6 equal depths of 0.62 m, laid out by the construction, land on the projected positions to 6e-14 px.246VPcorrect from 26 cm, at 160 mm wide34° across
Fig. 18 The construction, as a drawing office performs it. It is exact, and nothing in the recipe says why.

Said in this essay’s vocabulary it is one sentence. The measuring line and the receding line are two lines of one plane; the joins are a pencil through a point; so the correspondence between them is a perspectivity, and a perspectivity carries the cross-ratio. The measuring line carries true distances because it is parallel to the picture plane and therefore drawn at one uniform scale; the perspectivity carries them across; and the receding line ends up with the projected positions because a projection and a perspectivity are the same operation seen from two sides.

A height carried across the room with a straightedgeJoin the two feet, run the join to the horizon, join that point to the first head: the second head follows, and it lands 1e-13 px from where the camera puts it. No length is measured anywhere in the construction.horizon175 cm, knownconstructedcorrect from 19 cm, at 160 mm wide46° across
Fig. 19 The same machinery on a height rather than a depth. One perspectivity, one fixed point, and a true measurement carried into a foreshortened part of the picture.

The construction’s exactness is then not a property of the draughtsman’s care. It is a property of the object: two lines and a centre, and there is nothing in that arrangement for care to affect. That is the same reading the bay repeated by a straightedge gives its own construction, and it is the reason a straightedge construction can be exact where a rule about a paper angle is not.

Why one dimension is worth the trouble

There is a fair objection to all of this: the plane’s theory contains the line’s, so why write the line’s down separately.

Three answers, and each of them has produced something on this site.

The counting is different, and the counting is what gets used. Three pairs against four correspondences is the difference between a construction a draughtsman can perform on a horizon and one that needs a whole plane’s worth of marks. Where a question can be phrased on a line, it is cheaper — and several of the site’s constructions turn out to be line questions dressed as plane ones.

The classification is different. A map of a plane is sorted by its fixed structure: a line of fixed points and a fixed centre, with the census this collection runs on such maps. A map of a line is sorted by its fixed points, of which there are two, or one, or none — and none is a real case with real consequences, which has no plane analogue that reads the same way.

And the degenerate case is different. A projectivity of a line with no real fixed point is perfectly ordinary; the site’s own metric machinery rests on exactly such a map. Nothing in the plane’s census prepares a reader for a map whose fixed set is a pair of complex conjugates and whose two numbers are the focal length and the centre of the picture.

Four constructions, three of them the same mapA shadow, a floor anamorph, a mirror and a rectification, each decomposed into its fixed points and lines. Three are central collineations with a line of fixed points; the fourth is not, and that is the difference between changing a picture and changing where it is seen from.constructionfixed structurea shadow, ground to floorhomology · ratio 0.6719a floor anamorphhomology · ratio -1.4815a mirror in a vertical planehomology · ratio -1.0000a rectificationgeneral · three fixed points3 of 4 are centrala line of fixed points is what they share
Fig. 20 The plane’s census, for contrast. It sorts maps by an axis and a centre, and every member of it has a visible fixed set — which is exactly what the line’s third case does not.

What this does not say

It says nothing about which four points to use. That is the whole difficulty in practice, and the section above says only what makes a choice worthless rather than what makes one good.

It says nothing about noise. Every number here is exact; a cross-ratio read off a real drawing has a reading error in each of four positions, and its sensitivity to those errors depends on the configuration in a way that is worth an essay of its own. What can be said now is that the sensitivity is a fact about the arrangement rather than about the arithmetic, which is a distinction this site has had to make three times in three different fields.

What one pixel of click error costs, against distanceA 1.83 m object at 3 m is measured to 0.28% per pixel; the same object at 201 m to 18.2% per pixel. The whole object shrinks toward the horizon, so a pixel buys more world.05101550100150200distance from the camera (metres)error in the recovered height, per pixel of click error (%)6 m — 0.55%25 m — 2.27%60 m — 5.43%120 m — 10.84%one pixel, on a 690 px picturelinear in distance
Fig. 21 The general shape of that separation: exactness and conditioning are two different numbers, and a construction can be exact to the last bit and multiply a pixel of reading error without bound.

And it says nothing about the plane. A projectivity of the plane is eight degrees of freedom and needs four correspondences; a projectivity of space is fifteen and needs five. The counting is the same counting and the answers are different numbers.

The transferable form

The useful half of this rung is a habit rather than a result.

Count the degrees of freedom before running the test. A quantity computed from as many free points as the map has parameters is preserved by every map of that kind, and preserving it proves nothing at all.

That is what the four-consecutive-divisions check got wrong, and it is what makes the vanishing-point version right. It generalises: a homography of the plane has eight parameters, so any check computed from four points of a plane is passed by every plane map there is, and a check on a plane needs a fifth point — which is exactly why five marks fix a conic and why the conic is the object a plane’s checks are made of.

What links here

Computed from the collection, not written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

Cross ratiodegrees of freedomDemonstrationFree parameterHomogeneous coordinatesInvariantPencilPerspectivitypoint at infinityProjective lineProjectivity