What survives

The two points a picture hides

The stratification rung says a photograph of a plane is projective, becomes affine when the vanishing line is known, and becomes metric with one more fact. The one more fact has a size and a shape: it is two points, complex conjugates on the vanishing line, and a rectification built from those two and nothing else returns every world angle to a tenth of a picodegree and every ratio of lengths to five parts in a quadrillion — and refuses to name a length.

Worth reading first: An angle is a cross-ratio · What one picture of a plane determines · The circle whose centre moves.

Two phases ago this site built a ladder. A photograph of a plane determines the plane projectively; adding the vanishing line makes it affine, so equal divisions and midpoints come back; adding one more fact makes it metric, so angles and ratios of lengths come back; and no amount of further looking supplies a length.

The rungs are right and the third one is vague. One more fact covers an imaged circle, a pair of known-perpendicular directions, a known aspect ratio, a calibrated camera and several other things, and they cannot all be the same fact. What is the quantity being bought?

It is two points, and this essay is about what they are, how to get them, and exactly what they do and do not buy.

Two points, and everything metric followsThe imaged circular points are where the horizon meets the image of any circle in the plane, and they are a conjugate pair — the first coordinate here is 169.5 − 446.0i. A rectification built from them and nothing else returns the world's angles to 2.2e-13° and its length ratios to 5.6e-15, and no length at all.horizonthe horizon does not cut the circle — the pair is complexrectified from the two points aloneangles: 2.2e-13°ratios: 5.6e-15length: —circle of radius 1.05 ma dash is a quantity two points cannot buy
Fig. 1 Left, the picture: a plane photographed obliquely, with the horizon and the image of a circle in it. Right, that plane rectified using nothing but the two points where those meet. Angles come back to 2.2e-13°, ratios to 5.6e-15, and the length is a dash.

The upgrade, counted

The counting is the quickest way to see that the answer has to be two points.

A projectivity of the plane has eight degrees of freedom: a 3×3 matrix up to scale. An affinity has six: the last row is fixed at (0,0,1)(0, 0, 1). A similarity has four: rotation, uniform scale, and two translations.

So the projective-to-affine step costs two numbers, and the affine-to-metric step costs another two. Four numbers in total, arriving in two instalments of two.

Two real numbers is a point on a line. And four numbers, as two points constrained to lie on a known line, is exactly the affine and metric steps taken together — which is what the circular points are: two points, at (1,±i,0)(1, \pm i, 0), on the line at infinity.

The instalments are the two ways of reading the same purchase. Knowing the line the two points lie on is the affine rung, and it is two numbers. Knowing where on it they are is the metric rung, and it is two more.

What they are, in one sentence

Every circle in a plane meets the line at infinity at (1,i,0)(1, i, 0) and (1,i,0)(1, -i, 0), whatever its centre and radius. Every similarity of the plane fixes those two points, and no other projectivity does.

The second half is why they matter. A projectivity of a plane is a similarity if and only if it fixes the circular points, so knowing where they are is knowing which maps are similarities — which is what it means to know the plane’s metric structure up to scale.

That is a definition rather than a tool, and the tool comes from applying a projection to it. The images of the two points under a projection are two points in the picture, and a homography that carries those to the standard pair carries the picture back to a similarity of the plane.

Getting them out of a picture

They are where the plane’s vanishing line meets the image of any circle in the plane. Both halves of that are inherited: the points lie on the line at infinity, so their images lie on its image; and they lie on every circle, so their images lie on the image of any one.

A line meets a conic in two points, so the intersection hands back exactly the pair, with nothing fitted and nothing chosen.

The intersection is complex in the ordinary case. A circle wholly in front of the camera has an image that does not reach the horizon — the discriminant here is 1.3×102-1.3\times10^2 — and a routine returning “no intersection” would be throwing the answer away rather than reporting an absence. The first coordinate of the pair here is 345.0909.3i345.0 - 909.3i, and it is worth noticing that the real part is exactly the principal point’s own xx: the horizon in this camera is horizontal, so the pair’s real part is where the optical axis crosses it.

A circle on the ground, and the two points that get called its centreThe image of the centre and the centre of the image ellipse are 21.1px apart — 5.1% of the ellipse's own width.centre of the ellipseimage of the centrecorrect from 22 cm, at 160 mm wideoffset 21.1 px
Fig. 2 The imaged circle they are read off, which this site has drawn since its foundation phase for another reason: the image of the circle’s centre and the centre of the imaged ellipse are different points, 21.1 px apart at the setting here.
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. 3 And the immediate use, from the rung below. Once the pair is located, a world angle is a cross-ratio taken against it, with no rectification anywhere.

The refusal the intersection needs

The complex case is not an edge case here; it is the ordinary one, and a routine that treated it as a failure would fail on almost every picture.

A conic and a line meet in two points. When the line cuts the visible conic those two are real and can be pointed at. When it misses — which is what happens whenever the imaged circle lies wholly below the horizon, which is whenever the circle is wholly in front of the camera — the two points are a conjugate pair, and they are just as much intersections as the real ones.

So the machinery returns them, with the discriminant beside them so the caller can tell which case it is in, and the site’s gate asserts the ordinary case comes back complex rather than empty. The assertion is worth having because the natural implementation of “where does this line meet this conic” returns an empty list for a negative discriminant, and an empty list here is the metric upgrade silently declining to happen.

The real case is not a pathology either. It occurs when the imaged circle reaches the horizon, which happens when the world circle crosses the plane through the eye — part of it is behind the camera, its image is a hyperbola, and the two branches run to the horizon in two real directions. Those two real points are still the imaged circular points, and everything below works unchanged.

The dual conic, and why the detour

Working with the two points directly is awkward, because building a rectifying homography out of a complex conjugate pair means keeping track of complex scale factors that have to cancel.

There is a real object carrying the same information:

C=IJT+JIT\mathbf{C}^*_\infty = \mathbf{I}\mathbf{J}^{\mathsf T} + \mathbf{J}\mathbf{I}^{\mathsf T}

It is real for any conjugate pair — the imaginary parts cancel term by term, and the machinery asserts that rather than assuming it — symmetric, and rank two. In the plane’s own coordinates it is diag(1,1,0)\mathrm{diag}(1, 1, 0) up to scale, which is the cleanest possible statement of what the pair is: the degenerate conic consisting of those two points.

The rectification then falls out of a symmetric eigen-decomposition. Diagonalise the imaged C\mathbf{C}^*, and the map sending it to diag(1,1,0)\mathrm{diag}(1, 1, 0) is Λ1/2UT\Lambda^{-1/2}\mathbf{U}^{\mathsf T} on the two nonzero eigenvalues. Twelve lines of arithmetic and no complex numbers after the first step.

The vanishing line comes out on the way

There is a detail in that decomposition worth stopping on, because it makes the counting above visible rather than argued.

The dual conic is rank two, so it has a null eigenvector — and that eigenvector is the vanishing line. It is not supplied to the decomposition and it is not fitted; it falls out.

Which is the four-numbers-in-two-instalments statement arriving as arithmetic. Two points on a line determine the line, so a construction given the two points has been given the line as well, and the affine rung is bought on the way past the metric one without a separate purchase.

The check is direct: the null eigenvector’s alignment with the horizon computed independently from two ground directions is 1.000000000000.

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. 4 The ladder, with what each rung buys. The photograph puts a midpoint at 0.397025 of the way along, the vanishing line buys it back at 0.500000, and the image of one circle buys a right angle at 90.000000° and two equal crosswise lengths at 1.000000.

What comes back, and what does not

The rectification is run on a test rectangle the machinery was never shown, and three things are asserted.

Every angle comes back, at a worst departure of 2.2e-13 degrees over every ordered triple of five test points.

Every ratio of lengths comes back, at a worst relative departure of 5.6e-15 over every pair of pairs.

No length comes back, and this is asserted by being refused rather than by being small. The rectified plane is a similarity of the real one; its overall scale is a free parameter, and the figure prints a dash where a length would go.

That dash is a convention this site adopted two phases ago and it is load-bearing. A number in that cell — the rectified rectangle happens to come out 3.4 units wide, say — would be read as a measurement of the world, and it is a measurement of the decomposition’s arbitrary normalisation.

Why exactly this and not more

The natural question is whether a cleverer construction could get the length too, and the answer is a short one.

A projection of a plane is a homography, and a homography composed with a uniform scaling of the world plane is a different homography that produces the identical picture — because scaling the world and moving the camera in proportion cancel. So two scenes differing by a scale factor are photographically indistinguishable, which the metrology field demonstrates by projecting a world 137×137\times larger from 137×137\times further away and getting the same picture to arithmetic noise.

There is nothing in the picture to operate on. The missing length is not hidden, it is absent, and the only cure is to import one from outside — a measured distance, a known object, a printed sheet.

Two scenes 137× apart, and the one picture they both makeEverything in the second plan — the room, the eye's distance, the eye's own height — is 137 times the first. Every projected vertex agrees to 1e-13 px. A single photograph has no scale, and this is what that means.a room 2.8 m across, eye 1.6 m up1 mthe same plan, 137× bigger137 midenticalpicturesthe picture — both scenes, drawn twice, one on top of the otherlargest disagreement 1e-13 px over 8 verticesone length has to come from outside the picture
Fig. 5 The demonstration. Two scenes at a ratio of 137, photographed from distances at the same ratio, produce identical pictures — so a length is not a quantity a single view is being coy about.
The ground, turned into a planFour corners of a rectangle of known proportions fix the homography. Three lengths it was never given come back to 1e-15 relative — so every measurement on that plane is available, in units of the rectangle's own width.the picturethe same plane, rectifiedacross — 0.6000 widths (true 0.6000)along — 0.7667 widths (true 0.7667)diagonal — 1.2023 widths (true 1.2023)worst error 1e-15 relativethe probes were not used to build the map
Fig. 6 And the rectification as the metrology field builds it, from four corners of a known-aspect rectangle. Same result, different reference — and this essay’s route needs no correspondences at all.

Where the conditioning lives

The two numbers that place the pair along the vanishing line are the metric rung, and they are not equally easy to come by. It is worth saying where the difficulty sits, because the failure is quiet.

The pair’s position depends on the fitted conic’s coefficients near the vanishing line, which is where the imaged circle is not. A circle photographed obliquely occupies a band well below the horizon, so the intersection is an extrapolation of the fit rather than an interpolation of it — and an extrapolated conic is the least reliable thing a conic fit produces.

The practical consequence: the pair is well determined when the imaged circle is large and strongly foreshortened, so that its own long axis points at the horizon and the fit has leverage there, and poorly determined when the circle is small or nearly frontal. A nearly frontal circle images as a nearly circular ellipse whose intersections with a distant horizon are set by coefficients the samples barely constrain.

None of that shows up as a failure. The rectification is produced, it is a valid similarity of something, and its angles are self-consistent. What has moved is which plane it is a rectification of. That is the same shape of failure the lens field records for a distortion coefficient fitted from a short arc, and the same repair applies: report the fit’s own conditioning beside the answer rather than the answer alone.

Five references, one purchase

The vagueness in “one more fact” resolves once the purchase is named, because every route to the metric rung is a route to the same two points.

An imaged circle gives them directly, as the horizon’s intersection with it.

Two known-perpendicular directions give a constraint each on the pair’s position along the vanishing line; two such pairs pin it.

A known aspect ratio of an imaged rectangle does the same thing in one step, which is how the facade essay proceeds.

A known angle between two imaged lines is Laguerre’s formula run backwards: the angle and the two lines determine the cross-ratio, which determines the pair.

A calibrated camera gives them for every plane in the picture at once, and that is a strong enough statement to deserve its own rung.

Five references, one thing bought. That is what makes the two points the right way to describe the metric upgrade: it is the invariant description, and the references are five ways of paying for it.

A façade, flattened out of the photographFour corners of a rectangle of known proportions fix the homography. Three lengths it was never given come back to 9e-16 relative — so every measurement on that plane is available, in units of the rectangle's own width.the picturethe same plane, rectifieddoor — 0.5068 widths (true 0.5068)sill — 0.3026 widths (true 0.3026)diagonal — 1.1766 widths (true 1.1766)worst error 9e-16 relativethe probes were not used to build the map
Fig. 7 One of the five, in the metrology field. A plane brought back to true from a known aspect ratio, which is a way of naming the two points without ever writing them down.
What keystone correction actually costsA projector turned 30° from square throws its rectangular panel as a quadrilateral. Correction cannot add light outside it, so it shrinks the picture until it fits — and 38.8% of the projector's pixels are thrown away. The fraction is measured on the panel rather than on the wall, because turning the projector makes the wall picture larger while making the panel usage smaller.30° of yaw, 6° of pitch, 1.50 throw ratio61.2% of the panel reaches the corrected rectangleouter: the thrown quadrilateral · inner: what correction can keep38.8% of the panel discarded
Fig. 8 And the projective step it starts from: the quadrilateral a rectangle photographs as, which carries every ratio and no angle until the pair is supplied.

What the pair does not do

Three limits, and they follow from what the pair is rather than from any weakness in the method.

They belong to one plane. Every plane in a picture has its own vanishing line and its own pair on it. Rectifying the ground does nothing for a wall.

They are only as good as the conic. The pair is read off a fitted conic and a fitted horizon, and both come from measurements on the picture. A circle sampled over a small arc, or a horizon fitted from nearly-parallel image lines, gives a pair whose position along the vanishing line is poorly determined — and the metric rung degrades smoothly rather than failing.

They buy a similarity, not a rigid motion. Angles and ratios return; the handedness and the orientation of the rectified copy are as arbitrary as its scale, and a rectification that flipped the plane would satisfy every assertion here.

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.90 per metre the same four predict the same 16 to 30.5 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 30.5 px
Fig. 9 And the reason the pair is the right description rather than one of the five references. Re-photographing the picture composes another projectivity, which moves the pair and leaves every cross-ratio taken against it alone.
Two points, and everything metric followsThe imaged circular points are where the horizon meets the image of any circle in the plane, and they are a conjugate pair — the first coordinate here is 169.5 − 446.0i. A rectification built from them and nothing else returns the world's angles to 1.6e-13° and its length ratios to 2.9e-15, and no length at all.horizonthe horizon does not cut the circle — the pair is complexrectified from the two points aloneangles: 1.6e-13°ratios: 2.9e-15length: —circle of radius 1.05 ma dash is a quantity two points cannot buy
Fig. 10 The same construction at a square test figure. Nothing about the recovery depends on the test shape, which is the point of measuring angles and ratios over every triple rather than checking one corner.

What this makes of the ladder

The stratification rung can now be restated in a form that says what is being bought rather than listing what will pay for it.

A picture of a plane is a picture of the plane’s projective structure. Everything a cross-ratio can see is there and nothing else is.

The affine structure is one line — the vanishing line — and having it makes parallelism, midpoints, equal divisions and ratios along a line available.

The metric structure is two points on that line, and having them makes angle and ratios across directions available.

The scale is not in the picture at all, and no number of further points helps.

Written that way the ladder is a statement about how much of the plane’s structure the picture has thrown away, in units of points and lines rather than in units of what can be measured. Eight degrees of freedom in the projectivity; two spent to get to affine; two more to get to a similarity; four left, which are the similarity itself and are not a loss.

That accounting is what makes the third rung’s vagueness disappear. It was vague because it was named by its receipts.

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. 11 The bottom rung, which is what a picture has for free: a cross-ratio, surviving where length, ratio of lengths and midpoint do not.
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 = 1285. The point fitted from the drawn lines agrees with the one computed from the direction to 9e-12 px, and the fit's own residual is 1e-12 px.horizon — the image of the line at infinityvanishing point at x = 1969 — off the framecorrect from 22 cm, at 160 mm wide40° across
Fig. 12 And the first purchase. The vanishing line is where parallels meet, and it is two of the four numbers the metric upgrade costs.

The short version

The metric upgrade of a photographed plane costs four numbers, and they are two points: the images of the circular points, complex conjugates lying on the plane’s vanishing line.

Knowing the line they lie on is the affine rung. Knowing where on it they sit is the metric rung. A construction handed the two points gets the line for free, which the eigen-decomposition demonstrates by returning it as its own null vector.

A rectification built from the pair and nothing else recovers every angle to 2.2e-13 degrees and every ratio of lengths to 5.6e-15, and prints a dash for the length — which is not a limitation of the method but a fact about single views, and the same fact this site has recorded in four fields.

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.

Absolute conicCircular pointsConicConic fitdegrees of freedomDemonstrationGround plane rectificationHomographyLaguerre formulaline at infinityMetric rectificationProjective stratificationRectificationscale ambiguitySimilarity