The real instrument

A second rectangle fixes the column a level picture hides

Two vanishing points of a building put a level camera on a semicircle and leave it free to slide along it; a second rectangular object turned against the first puts it on a second semicircle, and the two cross once, at the camera. On a facade seen twelve degrees off square and slid a hundred pixels, a second object twenty degrees further already reads the focal length to 1.3 per cent where the building alone, even with its principal point known, manages 2.9 — and where the frame's middle column is wrong by a third. The reading does not care where the column was slid, and it is best when the second object stands at forty-five degrees to the camera, whose semicircle is flat over the true column.

Worth reading first: The principal point is not the centre · Recovering the camera from the picture it drew.

A level picture shows its rise on its horizon, and hides its slide divided what a shift lens or a crop does to a photograph into two halves. A level camera’s principal point lies on its horizon, so the half of a shift that moves it up or down — a rise — is read straight off the picture, and the textbook focal length from two vanishing points loses nothing to it once the horizon is used. The half that moves it along the horizon — a slide — is read by nothing. Two vanishing points of a rectangular building fix a semicircle of possible cameras, with the two points at the ends of its diameter, and every column on the semicircle is a principal point that would draw them with a focal length of its own. On a facade seen nearly square, a tenth of the frame cropped off the side was 23 per cent of the focal length.

That essay ended on what else could fix the column. A building has no third horizontal direction perpendicular to both its walls, but a street has more than one rectangle in it — a kerb, a parked car, the joints of a paving, a second building — and if one of them is turned against the first, its vanishing points supply a second semicircle on the same horizon.

Two semicircles cross once

Every camera that could have drawn the building’s two vanishing points sits on the building’s semicircle: at column cc along the horizon, with the vanishing points at positions aa and bb, the right-angle condition is

(a−c)(b−c)=−f2,(a - c)(b - c) = -f^2,

a semicircle of height ff over each cc between them. A second rectangle whose walls point in other directions draws its own two vanishing points on the same horizon and its own semicircle. The true camera is on both. Subtracting the two conditions removes the focal length and leaves the column alone:

c=a1b1−a2b2(a1+b1)−(a2+b2),c = \frac{a_1 b_1 - a_2 b_2}{(a_1 + b_1) - (a_2 + b_2)},

which is where the two semicircles cross — the line along which two circles have equal power, their radical axis, meeting the horizon. The focal length is then the semicircles’ common height there. Nothing in this asks where the middle of the frame is.

A building seen 12° off square and a second object turned 20° from it draw two semicircles that cross at column 445 and 854 px — the camera itself, slid 100 px — where the middle column reads 579A level camera with a 44° field, its principal point slid 100 px sideways by a shift or a crop, looking at a building whose walls are turned 12° from square to it, and at a second rectangular object on the same ground — a kerb, a car, a paving pattern — turned 20° further. Each object's two horizontal vanishing points lie on the horizon (the building's at 263 and 4462 px, the second object's at -89 and 1812 px), and each pair puts the camera on a semicircle with the pair as diameter: at every column the semicircle's height is the focal length a principal point there would need. One pair cannot say where on its semicircle the camera stood. Two pairs can: the semicircles cross once, at column 445.0 and 853.9 px, and the true camera is at column 445 with 853.9 px. The building's semicircle read at the frame's middle column gives 579 px, -32.2%. Turned alike, the two semicircles share a centre and never cross; the slider turns the second object.00.50011.50201234column along the horizon, thousands of px (the frame is 0 to 0.69)focal length each pair implies there, thousands of pxcrossing: 854 pxmiddle column: 579 pxthe framelarge arc: the building · small: the second objectturned 20° apart
Fig. 1 A building 12° off square and a second object turned further, each pair of vanishing points drawing its semicircle of cameras. The two cross at the true camera, slid 100 px; the frame’s middle column reads the building’s semicircle a third short. The slider turns the second object.

The arrangement here is the hard case the earlier essay identified: a camera with a 44-degree field, its principal point slid 100 pixels along the horizon by a shift or a crop, facing a building whose walls are turned only 12 degrees from square. One of the building’s vanishing points sits 4,000 pixels out to the right of the frame and the other just inside it, and the semicircle is steep over the frame. Its true camera, at column 445, has a focal length of 854 pixels; read at the middle column, 345, the semicircle says 579, a third short.

A second object turned 20 degrees further has its vanishing points at −89 and 1,812 pixels, much nearer, and its smaller semicircle crosses the building’s at column 445 and 854 pixels — the camera, to the last digit, from exact vanishing points. The slider turns the second object through 5, 10, 20, 33 and 50 degrees, and the crossing does not move. What moves is the angle at which the two semicircles meet. At 5 degrees apart their centres are close and they cross at a shallow angle, so an error in either pushes the crossing a long way along them. At 33 degrees the second object stands at 45 degrees to the camera, its vanishing points straddle the true column evenly, and the camera sits at the very top of its semicircle.

How far apart the two must be turned

Exact vanishing points always give the camera back. Vanishing points read from marked edges do not, and the question with a number in it is how far apart the two objects have to be turned before the crossing is worth having.

Twenty degrees between the two objects puts the focal length within 1.3% on a facade seen 12° off square, against 2.9% for the building alone with its principal point known and 33% from the middle columnA level camera slid 100 px, a building turned 12° from square to it and a second object turned 3, 5, 10, 15, 20, 25, 33, 40, 50, 60, 70° further; each of the four vanishing points read from eight edges of 160 px marked to half a pixel; 200 pictures a point. Median focal-length error from the crossing of the two semicircles: 3°, 12.49%; 5°, 7.56%; 10°, 3.28%; 15°, 1.98%; 20°, 1.32%; 25°, 0.93%; 33°, 0.68%; 40°, 0.88%; 50°, 1.06%; 60°, 1.62%; 70°, 2.54%. Against three references: the building's own two vanishing points with the principal point known outright, 2.91% at every turn; the principal point known and the better-placed of the two objects used, 2.05, 1.82, 1.33, 1.08, 0.86, 0.80, 0.68, 0.70, 0.96, 1.56, 2.91%; and the building's semicircle read at the frame's middle column, 33.4%, off the top of the chart. Two objects turned a few degrees apart draw nearly concentric semicircles whose crossing slides a long way for a small error in either, and the reading is poor. By 20° it already beats knowing the principal point with the building alone, because the second object's semicircle fixes the focal length where the building's cannot; at 33°, where the second object is turned 45° to the camera and its semicircle is flattest over the true column, it equals knowing the principal point outright. Past that the second object turns square to the camera and its far vanishing point runs away.0246801020335070how far the second object is turned from the building, degreesmedian focal-length error, % (200 pictures)two objectsknown column, best objectknown column, buildingmiddle column: 33%, off the chartbuilding 12° off square, slid 100 pxedges to half a pixel
Fig. 2 The median focal-length error over 200 pictures, each vanishing point read from eight edges marked to half a pixel, against how far the second object is turned from the building. Dotted: the building alone with its principal point known. Dashed: the principal point known and the better-placed object used.

Each of the four vanishing points is read from eight edges of 160 pixels whose ends are marked to half a pixel — the edges the earlier essay used — and 200 pictures are read at each turn. Turned 3 degrees apart the two objects give a focal length 12.5 per cent out, and 5 degrees apart 7.6: nearly concentric semicircles are nearly no information about where they cross. By 10 degrees the error is 3.3 per cent, by 15 it is 2.0, by 20 it is 1.3, and at 33 degrees it bottoms out at 0.68. Past that the second object turns towards square to the camera, one of its vanishing points runs away to the side, and the error climbs again: 1.6 per cent at 60 degrees, 2.5 at 70.

Set against what the earlier essay could do, these numbers are better than they look. The frame’s middle column, read on the building’s semicircle, is wrong by 33 per cent at every turn — the slide, read through a steep slope. The building’s own two vanishing points with the principal point known outright, which was the best the earlier essay had to compare with, give 2.9 per cent. A second object twenty degrees from the building already does better than knowing where the principal point is, and by more than a factor of two.

That sounds impossible and is not. The building’s two vanishing points are a poor gauge of the focal length on a facade seen nearly square, column or no column: one of them is 4,000 pixels out, found by extending edges that are nearly parallel, and its error along the horizon is large. The second object has both its vanishing points within 1,400 pixels of the principal point. A fair reference is a reader who knows the principal point and uses whichever of the two objects straddles it more evenly — the dashed line — and against that the crossing is 1.3 per cent against 0.86 at 20 degrees and equal to it, 0.68 against 0.68, at 33 degrees. So twenty degrees does not quite do as well as knowing the principal point outright with both objects in hand, and thirty-three does.

Why forty-five degrees to the camera is the best place

The equality at 33 degrees has a reason, and it is the most useful thing the measurement turned up. At that turn the second object stands at 45 degrees to the camera: its walls recede equally to left and right, its two vanishing points sit at ff on either side of the true column, and the camera is at the top of its semicircle. The top of a semicircle is flat. Moving the column a little either way changes the height there by almost nothing — to second order — so the focal length read from that object is insensitive to where the column is. The crossing gets its column from the building, whose steep semicircle pins it, and its focal length from the second object, whose flat top forgives whatever error the column has.

That division of labour is the general rule for choosing a second object, and it is easy to apply from the picture. The building, seen nearly square, is the column gauge: its semicircle is steep over the frame because its vanishing points are lopsided about it. The best focal-length gauge is whatever rectangle in the picture has its two vanishing points most evenly placed on either side of the frame — a car parked at an angle, a paving pattern laid diagonally to the street. A second object turned only a few degrees from the first does neither job, because its semicircle is nearly the first one again.

The column it gives back

The column is the other half of the reading, and the one the earlier essay could not touch.

Twenty degrees apart, the two semicircles put the principal point's column within 14 px for a building 12° off square and 14 px for one turned 30°; five degrees apart, 36 and 52The same pictures read for where the principal point sits along the horizon: median error over 200 pictures, a building turned 12° or 30° from square and a second object turned further by 3, 5, 10, 15, 20, 25, 33, 40, 50°, all four vanishing points from eight edges to half a pixel. Building at 12°: 3° 53.3, 5° 36.1, 10° 22.2, 15° 16.9, 20° 14.5, 25° 13.1, 33° 11.5, 40° 10.2, 50° 9.2 px. At 30°: 3° 84.6, 5° 52.4, 10° 27.6, 15° 18.2, 20° 13.6, 25° 10.8, 33° 8.8, 40° 7.8, 50° 7.9 px. The column is the radical axis of the two semicircles, and its error grows as one over the difference of their centres: two objects turned alike have nearly one centre and an axis that a pixel of error moves a long way. A column read to 10 or 15 px is a principal point read to two per cent of the frame's width, which is what a shift or a crop of unknown size needed.02040608001020304050how far the second object is turned from the building, degreesmedian error in the principal point's column, pxbuilding 12° off squarebuilding 30° off squareslid 100 px, edges to half a pixel200 pictures a point
Fig. 3 The median error in the principal point’s column against how far the second object is turned, for a building 12° and 30° off square, both slid 100 px.

For the building 12 degrees off square, the column comes back to a median 36 pixels with the second object 5 degrees further, 22 at 10, 14.5 at 20 and 9 to 12 from 33 degrees on. For a building turned 30 degrees it is 52 at 5 degrees, 14 at 20 and 8 to 9 from 33 to 50. The column error grows as one over the difference between the semicircles’ centres, which is the algebra’s way of saying that two objects turned alike leave the crossing ill-defined — at 3 degrees apart the column is 53 to 85 pixels out, near the size of the slide being recovered. From about 15 degrees apart it is read to 15 to 20 pixels, two to three per cent of the frame’s width: a crop or a shift of unknown size, read off the picture to within a few per cent of its size.

The slide no longer enters

The reason to want the column read rather than assumed is that an assumed column carries the slide straight into the focal length.

Slid anywhere from 200 px left to 200 px right, two objects 20° apart read the focal length to 1.2–1.5%; the middle column's error grows with the slide to 58%A building 12° off square and a second object 20° further, the camera's principal point slid -200, -150, -100, -50, 0, 50, 100, 150, 200 px along the horizon; four vanishing points from eight edges each, marked to half a pixel; 200 pictures a point. Median focal-length error — the crossing of the two semicircles: 1.18, 1.18, 1.26, 1.21, 1.19, 1.25, 1.32, 1.42, 1.45%; the building's two vanishing points with the true principal point: 2.69, 2.70, 2.69, 2.74, 2.79, 2.80, 2.91, 2.96, 2.99%; the building's semicircle at the frame's middle column: 39.3, 30.6, 21.1, 10.4, 2.8, 15.8, 33.4, 58.3, none%. The crossing never consults the middle of the frame, so where the principal point was slid does not enter it; its error changes only because a slide moves the vanishing points relative to the frame where the edges are marked. The middle column's error is the slide itself, read through the slope of a semicircle that is steep for a facade seen nearly square — and at 200 px to the right the middle column falls outside the building's semicircle altogether and gives no focal length.010203040-200-1000100200how far the principal point is slid along the horizon, pxmedian focal-length error, % (200 pictures)middle columntwo objectsknown column, buildingbuilding 12° off squareedges to half a pixel
Fig. 4 The median focal-length error against how far the principal point was slid, for the crossing of two objects 20° apart, the building’s own two points with the principal point known, and the building’s semicircle read at the frame’s middle column.

Slid anywhere from 200 pixels left to 200 pixels right, the crossing of two objects 20 degrees apart reads the focal length to between 1.2 and 1.5 per cent. The variation is not the slide. It is that sliding the principal point moves where the vanishing points fall relative to the frame, and so where the edges a reader marks run towards them; the crossing itself never consults the middle of the frame. The middle column, by contrast, is the slide read through the slope of the building’s semicircle: 10 per cent at 50 pixels to the left, 21 at 100, 39 at 200, and to the right 16, 33 and 58 per cent at 50, 100 and 150. At 200 pixels to the right the middle column falls outside the building’s semicircle altogether and gives no focal length at all.

That is the property the earlier essay asked for in its rule for a photograph of unknown history, and it matters most for the use a focal length is put to: a focal length is not an angle until the frame it is measured in is known, and a length on the ground, unlike a height from one photograph, needs it. If the sides might have been trimmed, two vanishing points give a focal length carrying an unknown error set by the building’s turn. Four vanishing points from two objects turned apart give one carrying no such term, whatever was trimmed.

Not every second rectangle is a building

A second building is the generous case: eight long edges for each of its vanishing points. A car offers fewer, a kerb shorter ones, a paving slab hardly any.

A kerb read from four short edges still puts the focal length within 4.1%, where the building alone with its column known manages 2.9%; a single paving slab does not, at 13%A building 12° off square read from eight edges of 160 px for each vanishing point, and a second object 20° further read from fewer and shorter edges, all marked to half a pixel, the camera slid 100 px; 200 pictures each. Median focal-length error from the crossing of the semicircles, and with the column known and the better-placed object used: a second building: 8 edges of 160 px, 1.32% and 0.86%; a car: 4 edges of 160 px, 2.26% and 1.69%; a kerb: 4 edges of 80 px, 4.07% and 3.28%; a paving slab: 2 edges of 60 px, 12.62% and 8.58%. The median column error rises from 14 px to 52 px. A second object does not need to be a building; it needs edges long enough to place its vanishing points, and two short edges of one slab leave each of its vanishing points where a quarter-pixel slip of an end throws it.a second building: 8 edges of 160 px, column free1.32%the same, column known0.86%a car: 4 edges of 160 px, column free2.26%the same, column known1.69%a kerb: 4 edges of 80 px, column free4.07%the same, column known3.28%a paving slab: 2 edges of 60 px, column free12.62%the same, column known8.58%median focal-length error, 200 picturesthe second object 20° from the building
Fig. 5 The second object read from fewer and shorter edges — a second building, a car, a kerb, a single paving slab — 20° from a building 12° off square. Each pair of bars: the crossing, and the principal point known with the better object used.

Read from four edges of 160 pixels — about what a parked car’s roofline, sills and wheel-arches give — the crossing reads the focal length to 2.3 per cent. From four edges of 80 pixels, a kerb and its gutter running a short way across the frame, to 4.1 per cent; the median column error grows from 14 pixels to 20. From two edges of 60 pixels, the two sides of one paving slab, the second object’s vanishing points are thrown wherever a quarter-pixel slip of an end sends them, and the focal length is 12.6 per cent out with a column 52 pixels wrong.

So the kerb and the car are worth having — both still within a few per cent, against a third from the middle column — and the single slab is not. The difference is not the kind of object but the length of its edges. A paving pattern of many slabs, each with edges running to the same two vanishing points, is a second building’s worth of edges; one slab is two short lines.

Coarse edges favour the second object more

The comparison so far has used edges marked to half a pixel, which is careful work. Coarser marking hurts every reading, and not equally.

At two pixels of marking, two objects 20° apart read the focal length to 5.4%, the building alone with its column known to 20%: the second object's nearer vanishing points carry the readingA building 12° off square and a second object 20° further, the camera slid 100 px, every edge's ends marked to 0.25, 0.5, 1, 2 px; 200 pictures a point. Median focal-length error — two objects: 0.67, 1.32, 2.35, 5.41%; the building with the true principal point: 1.50, 2.91, 6.34, 19.68%; the building's semicircle at the middle column: 32.3, 33.4, 36.1, 45.4%. A facade seen 12° off square puts one vanishing point 4017 px from the principal point, read from edges that are nearly parallel, and that point's error grows fastest with the marking; the second object, turned to 32°, has both its vanishing points within 1367 px. So the second object does not merely fix the column: on a facade seen nearly square it is the better gauge of the focal length too, and its advantage grows as the edges get worse.020400.2500.50012how finely each edge's ends are marked, pxmedian focal-length error, % (200 pictures)middle columnknown column, buildingtwo objectsbuilding 12° off square, slid 100 px200 pictures a point
Fig. 6 The median focal-length error against how finely each edge’s ends are marked, for two objects 20° apart, the building alone with its principal point known, and the building’s semicircle at the middle column.

At a quarter of a pixel the crossing reads the focal length to 0.67 per cent and the building with its principal point known to 1.5. At one pixel they are 2.4 and 6.3; at two pixels, 5.4 and 20. The building’s reading degrades fastest because its far vanishing point is the one most sensitive to how the edges are marked: 4,000 pixels out, found from edges that converge on it at angles of a few degrees, it moves along the horizon by hundreds of pixels for a pixel’s error in an edge’s end. The second object’s vanishing points are within 1,400 pixels of the principal point and move far less. On a facade seen nearly square, then, the second rectangle is not only what fixes the column. It is the better instrument for the focal length in its own right, and the worse the marking, the more of the reading it carries.

The middle column sits above both whatever the marking — 32 per cent at a quarter of a pixel, 45 at two — because its error is the slide, which no care in marking edges reduces.

What four vanishing points say

A level photograph of one rectangular building fixes a semicircle and leaves the camera free along it. A level photograph of two rectangles turned apart fixes two semicircles and their crossing, which is the principal point’s column and the focal length both. In the algebra of one conic calibrates the camera, each pair of perpendicular vanishing points imposes one condition on the camera’s calibration; a level camera with an unknown principal point and focal length has three unknowns; the horizon supplies one, and two pairs supply the other two. An angle is a cross-ratio is the same statement in the language of the horizon line.

There is a second reading of the same arithmetic, and it is the one the arc every eye stands on began from. For a drawn rectangle, every station on the semicircle reconstructs a genuine rectangle of a different proportion; the drawing alone cannot say which. Two drawn rectangles turned apart on one floor fix the station, provided both are known to be rectangles. The photograph and the drawing are one problem: a second right angle somewhere else on the ground is what turns a family of eyes into one.

What the crossing assumes

Both objects are rectangles standing on the same level ground. Each pair of vanishing points must belong to two perpendicular horizontal directions. A car is rectangular in plan to within its design; a kerb and the building line beside it may be perpendicular only by accident, and a kerb that runs along a curving road is not a direction at all. A second object whose corner is not a right angle draws a semicircle on the wrong diameter, and the crossing then lands somewhere else, with no sign in the picture that it has. Recovering the camera relies on the same promise of right angles and fails in the same way.

The camera is level. As in the earlier essay, the principal point lies on the horizon only when the optical axis is horizontal — the horizon at eye level is the same fact seen from the horizon’s side; a tilted camera’s horizon misses its principal point by ftan⁡f\tan of the tilt, and its vertical vanishing point is then finite and the orthocentre construction is available instead.

The lens draws straight lines straight. Each vanishing point is found by extending edges. Straight lines that are not is about the lenses for which that fails; a wide lens’s barrel distortion bends the edges of the second object as much as the building’s, and an object near the frame’s edge, where distortion is largest, is the one most likely to be a car or a kerb.

The edges are marked independently. A reader who marks every edge of an object systematically too steep moves both its vanishing points together, which moves its semicircle’s centre, and the crossing slides along the horizon by an amount no number of edges reduces.

Still open: whether a circle on the ground does what a second rectangle does

A second rectangle supplies two vanishing points and one semicircle. A circle on the ground — a manhole cover, a roundabout, the base of a column — supplies something different: its picture is an ellipse, and one conic calibrates the camera is the collection’s argument that a circle’s image carries the camera’s calibration: the imaged circle meets the vanishing line of its plane, in two complex points, at the images of the circular points, and those two points constrain the camera as a pair of perpendicular vanishing points does. For a circle on the ground the vanishing line is the horizon.

The measurement that settles what a circle is worth puts a circle of stated size on the ground beside the building, at a stated distance and position in the frame, marks points on its imaged ellipse with half a pixel of error, and fits the ellipse. It then asks how well the column and the focal length come back from the building’s two vanishing points and the ellipse together, against the two rectangles here; whether a circle’s information about the column, unlike a rectangle’s, does not depend on how it is turned, since a circle has no turn; and how small a circle — or how far off, foreshortened to a sliver — still fixes the column to the fifteen or twenty pixels two rectangles twenty degrees apart achieve.

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.

Focal lengthHorizonIdentifiabilityPrincipal pointShift lensStation pointVanishing point