Constructing a view

A picture with nothing straight in it

Every construction on this site is handed the horizon, and a photograph of a crowd, a hillside or a curved façade has no straight edge to give it. What such a picture does have is repetition — and three things of one height put the horizon exactly where the camera has it, from the picture alone. Two things do not, and three standing abreast do not either, and both refusals are the reader's ordinary situation.

Worth reading first: The horizon is at eye level — if the picture plane is vertical · Where parallel lines meet · A height, out of one photograph.

Every construction in this collection so far has started by assuming the horizon. The measuring point needs it. The distance point is on it. Transferring a height across a room runs a line to it. Rectifying a façade uses it twice. It is the single most useful line in a picture, and each of those essays gets it the same way: find two edges that are parallel in the room, extend them, and take the crossing.

That works for architecture and for nothing else. A photograph of a crowd on a beach has no parallel edges. Neither has a hillside, a stand of trees, a curved façade, a market square full of people, or most photographs anybody has ever taken.

Such a picture is not without structure. It has repetition — several things of about the same size — and repetition is enough.

The horizon, out of the repetition4 uprights of one height, 6 pairs, 6 meeting points — every one of them on the horizon to 6e-14 px. The horizon is drawn afterwards, and it is not used to find them.the camera's horizoncorrect from 19 cm, at 160 mm wide46° across
Fig. 1 Four uprights of one height standing on one floor. Every pair of them contributes one point: the line through the two feet and the line through the two heads meet there. Six pairs, six points, and all six lie on one line. The camera’s own horizon is drawn afterwards, on top of them, and was not used to find them.
The horizon, out of the repetition4 uprights of one height, 6 pairs, 6 meeting points — every one of them on the horizon to 3e-13 px. The horizon is drawn afterwards, and it is not used to find them.the camera's horizoncorrect from 19 cm, at 160 mm wide46° across
Fig. 2 The same four positions with shorter uprights. The six meeting points are different points and they are on the same line, because what the construction uses is that the heights are equal rather than what they are.

Two of a height give a point

Take two objects of the same height standing on the same ground plane — two people, two bollards, two chairs.

In the room, the segment joining the two feet and the segment joining the two heads are parallel: one is the other displaced straight up by the common height. Parallel lines in the room have one vanishing point in the picture, so the drawn line through the feet and the drawn line through the heads meet there.

Both lines are horizontal in the room, so that meeting point is on the horizon.

Nothing in that argument mentions how tall the two objects are, how far apart they stand, or what camera took the picture. It mentions only that the two heights are equal, and equality is a thing repeated objects supply for free.

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 = 1171. 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 8e-13 px.horizon — the image of the line at infinityvanishing point at x = 1772 — off the framecorrect from 19 cm, at 160 mm wide45° across
Fig. 3 The fact underneath it. Two lines that are parallel in the room meet in the picture, and every line of that direction runs to the same point. Here the direction is “along the ground from one bollard to the other”, and the two lines using it are the feet and the heads.

Measured, the six points four uprights produce sit on the camera’s own horizon to about six parts in a hundred trillion of a pixel — which is to say the construction is not an approximation at all. It is the same kind of statement as the constructions in carrying a height across the room: joins and meets only, so it survives whatever the projection did.

And two of a height give only a point

A point is not a line, and the horizon is a line.

With exactly two objects there is one meeting point and nothing to say which way the horizon runs through it. In a picture taken with the camera not rolled the horizon is level on the paper and one point is enough — but “the camera was not rolled” is an assumption about how the photograph was taken, and the whole appeal of this construction is that it assumes nothing.

Three objects give three pairs and therefore three points, which is a line and a check. Four give six.

This is a refusal rather than a degradation, and the machinery here treats it as one: handed two uprights it returns the one point and declines to fit a line through it, because a line through one point is a choice and not a measurement.

The arrangement that gives nothingThree uprights at one depth: the line through the feet and the line through the heads are parallel in the picture, so they meet nowhere on it. 3 meeting points and none of them within 690×430 px. A photograph of a crowd standing in a row is this arrangement.the camera's horizoncorrect from 19 cm, at 160 mm wide46° across
Fig. 4 The worse refusal. Three uprights standing side by side at one distance from the camera: the line through their feet and the line through their heads are all but parallel on the paper, so they meet thousands of picture widths away and there is nothing on the page to mark. A photograph of a crowd standing in a row is exactly this arrangement.

The arrangement that looks best and gives nothing

The second refusal is the one worth remembering, because it is the arrangement a photographer naturally produces.

Line three people up abreast, all at the same distance from the camera, and photograph them. Their feet lie along a line parallel to the picture plane; so do their heads. A world direction parallel to the picture plane has its vanishing point at infinity — the drawn lines are parallel on the paper, and parallel lines do not meet anywhere a draughtsman can mark.

In the case drawn above the three meeting points land thousands of picture widths outside the frame, and as the three uprights line up exactly they go to infinity.

So the construction wants the repeated objects spread in depth, and a row of them across the frame is the single least useful arrangement. That is the opposite of the intuition, which says a nice orderly row ought to be the easy case. What makes the case easy for a person looking at the picture — everything the same size, obviously equal — is precisely what makes the construction degenerate.

This is the same trap in a different costume as the one recorded on this site about sampling a surface along its own axis, and the same one as choosing four rectification points at evenly spaced indices through a grid and getting four collinear points. In each of them a configuration that is tidy is a configuration that is degenerate, and tidiness is what an author reaches for when constructing an example.

Which pairs to trust, and why the worst one looks the best

There is a practical consequence of the abreast refusal that is worth separating out, because it changes which part of a photograph a reader should look at.

The quality of a pair is decided by the angle between the two lines being crossed — the line of feet and the line of heads. Two uprights well separated in depth make those lines cross steeply, and their meeting point is pinned down. Two uprights at nearly the same distance make them cross at a hair’s breadth, and the meeting point slides along the horizon under any wobble at all.

That is the ordinary business of a badly conditioned intersection, and it has a consequence that is not ordinary: the pairs that contribute least are the ones whose two members look most obviously alike. Two people at the same distance draw at the same size, so a reader can see at a glance that they are the same height and will reach for them first. Two people at four metres and thirteen metres draw at wildly different sizes, so the equality is an inference rather than an observation — and that is the pair that fixes the horizon.

The rule that falls out is short. Pick the pairs that are furthest apart in depth, and treat a pair drawn at the same size as no evidence at all. In the picture drawn above, the pair that does most of the work is the nearest upright with the furthest one, and the three points contributed by pairs at similar depths are the three that sit far out to the side, where the fit is right to give them little weight.

It also explains a mistake that is easy to make with a large crowd. Adding more people does not help if they are all standing in a row: a hundred uprights abreast are a hundred uprights at one depth, giving several thousand meeting points, every one of them off the paper. The information is not in the count. It is in the spread.

What happens when the objects are not equal

People are not all the same height, and that is the whole difficulty with using them.

The construction takes “equal” as exact. Given uprights whose heights vary, each pair still produces a meeting point, but the points no longer lie on one line: they scatter about the horizon, and a line fitted through them lands somewhere near it.

How near is the question a reader needs answered, and it has a number.

The price of the crowd not being a colonnadeSix equal uprights give the horizon exactly. At the 7 cm spread of adult heights the found horizon lands 8.5 px from the true one on a 690 px picture, which at this focal length is an eye height wrong by a few centimetres.05101502.5057.5010spread of the heights, in centimetreshow far the found horizon lands from the true one (px)adultsthe construction assumes equal and people are notthe tolerance, in pixels
Fig. 5 Six uprights whose heights are drawn from a spread, and the horizon found from them, against the horizon the camera actually has. At perfectly equal heights the two coincide. As the spread grows the found horizon walks away from the true one, and the walk is close to linear in the spread.

On the picture drawn — a 690-pixel-wide frame, a 46° field, six uprights spread from four metres to thirteen — a spread of two centimetres in the heights puts the found horizon about two pixels from the true one. A spread of five centimetres puts it about five and a half. A spread of seven centimetres, which is roughly the standard deviation of adult human height, puts it about eight and a half pixels out, and twelve centimetres puts it eighteen.

Eight and a half pixels on a 690-pixel picture is a little over one per cent of the width. It is worth converting that into the quantity a reader cares about, which is not pixels.

The horizon is at eye level. Its height in the picture, compared with the drawn height of anything standing on the ground, gives the camera’s own eye height — that is the content of the horizon is at eye level. At this focal length, an eight-pixel error in the horizon on a person standing at seven metres corresponds to an eye height wrong by something like seven centimetres. That is not nothing and it is not much: it is the difference between a camera held at the eye of a tall person and the eye of a short one.

So the honest statement is that a crowd gives the horizon to within a few centimetres of eye height, and a colonnade — where the repeated objects genuinely are equal — gives it exactly.

Four figures of the same height, camera level at 1.62 mThe horizon cuts every one of them at 91.0% of its height — the eye height over the figure height — however far away it is.horizon = eye level, 1.62 m91.01%correct from 26 cm, at 160 mm widespread 0
Fig. 6 Why the answer is worth having in the first place. The horizon crosses every standing figure at the point of it that is at the camera’s own eye height, whatever the distance — so once the horizon is found, every person in the photograph is a measuring rod.
The same four figures with the camera tilted 6°Tilting the picture plane breaks the rule: the fractions now range over 0.08 percentage points instead of agreeing.horizon = eye level, 1.62 m90.84%90.90%correct from 26 cm, at 160 mm widespread 0.08 pts
Fig. 7 What the found horizon is for, and the condition on using it. With the picture plane vertical the horizon cuts every figure at the same fraction of its height; six degrees of tilt is enough to spread the fractions, and the tilt is not visible in the picture.

Fitting a line, and which fit

Six points that are supposed to be on a line, and are not quite, have to be fitted, and the choice of fit is not a formality here.

The obvious fit — least squares of the vertical offsets, y against x — treats the horizontal position of every point as exact. The points this construction produces do not deserve that: a pair of uprights nearly abreast contributes a point a long way out to the side, whose position along the horizon is enormously uncertain and whose height is the only part worth trusting.

The fit used is total least squares, which minimises perpendicular distance and has no preferred axis. It is the difference between a line that is dragged sideways by a distant outlier and one that is not.

There is a better answer still, which this essay does not take: weight each point by how badly conditioned its pair is, since a pair spread in depth deserves more say than a pair nearly abreast. That is a real improvement and it needs a model of where the drawing error comes from, which is a different subject.

Other things that repeat

Uprights of equal height are the clearest case and not the only one.

Equal spacing along a line. A row of equally spaced posts, fence pales, sleepers or window mullions is a repeated interval rather than a repeated height, and a repeated interval on a straight line in the room gives that line’s vanishing point directly — which is on the horizon if the line is horizontal. That is the construction in the bay repeated by a straightedge run backwards.

Any repeated shape on the ground. Paving slabs, tiles, a repeated motif in a carpet: two corresponding points of two copies are a pair of points related by a translation in the world, and two such pairs give the translation’s vanishing point.

A person walking. The same person photographed twice in one frame — or once, with their reflection — is a pair of equal uprights that happen to be the same object.

A 1.72 m figure, drawn at every distance, by two systemsThe falling curve is a pinhole: f·H/Z, dropping -4.11 px per metre on average and 20.0× overall across the range. The flat one is an oblique system, whose slope is 0e+0 px per metre — zero, not nearly zero. A system with no diminution has no size–distance signal at all, so depth has to be carried by something else, and the something else is where the figure stands on the page.0100200204060distance of the object, metresits drawn height, pxa pinholean oblique systemdrawn height of a fixed object against its distance20.0× against 1.000
Fig. 8 The measurement that repetition makes available in the first place. Equal things at different distances draw at sizes in a fixed relation to their depths, and that relation is what the two-line construction is reading; the essays on drawing systems across cultures measure what happens in a picture where it is deliberately not obeyed.

The check that comes free

Four uprights give six points. Three of those six are enough to determine a line, so the other three are a test.

That is worth saying plainly because it is the difference between a construction and a measurement. A construction with exactly enough information produces an answer and no evidence. A construction with more than enough produces an answer and a residual, and the residual is the only thing that can tell a reader the heights were not equal after all.

The residual here is the root-mean-square perpendicular distance of the meeting points from the fitted line. At perfectly equal heights it is arithmetic noise. At a human spread it is tens of pixels — much larger than the error in the horizon itself, because the points scatter along the line as well as across it.

That asymmetry is useful. A large residual with a horizon that is nevertheless nearly right is the signature of unequal heights, which is a thing that averages out. A large residual with a horizon that is badly wrong would mean something else — objects not on one plane, or not upright — and the two can be told apart.

What one pixel of click error costs, against distanceA 1.72 m object at 3 m is measured to 0.30% per pixel; the same object at 201 m to 19.3% per pixel. The whole object shrinks toward the horizon, so a pixel buys more world.0510152050100150200distance from the camera (metres)error in the recovered height, per pixel of click error (%)5 m — 0.49%25 m — 2.41%100 m — 9.61%190 m — 18.26%one pixel, on a 690 px picturelinear in distance
Fig. 9 The other half of the accounting. Once the horizon has been found to within some number of pixels, every measurement that uses it inherits that error, and how much each one inherits is a separate question with its own curve.

What this does and does not unlock

With the horizon in hand, a photograph of a crowd becomes a measurable object. Heights compare against heights by cross-ratio. A plane in the picture can be rectified once four points on it are identified. The camera’s eye height comes out. Everything in a height from one photograph applies.

What it does not give is the rest of the calibration. The horizon is the ground plane’s vanishing line and that is affine information: it buys midpoints, ratios along a line, parallelism. It does not buy angles or the focal length, which need something more — a second vanishing direction known to be perpendicular, or a circle in the scene, or the machinery in what one picture determines.

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. 10 Where this sits in the ladder. Finding the horizon is the first rung: it takes a picture from projective to affine, which is what makes midpoints and ratios along a line meaningful. Every rung above it costs more than repetition can pay.
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 = 915. The point fitted from the drawn lines agrees with the one computed from the direction to 2e-12 px, and the fit's own residual is 2e-13 px.horizon — the image of the line at infinityvanishing point at x = 1329 — off the framecorrect from 13 cm, at 160 mm wide62° across
Fig. 11 The construction the whole essay is doing without. Two edges known to be parallel give the horizon immediately, and an architectural photograph has dozens of them; the point here is that a photograph of a beach has none.

The shape of the finding

The horizon is usually presented as something a picture either shows or does not — the sea, the edge of a field, the line where the two sets of parallel edges converge. It is better thought of as something a picture encodes, and the encoding survives the removal of every straight line in the scene.

What it does not survive is the removal of repetition. A photograph of one object, of any shape, from one viewpoint, carries no horizon at all: there is nothing in it to compare. A photograph of two of anything carries a point. Three carry a line.

That is a cleaner statement of the requirement than “the picture must contain parallel edges”, and it covers the parallel-edge case as a special instance — two parallel edges are two repeated things, and their ends are two pairs of corresponding points.

Halving a receding rectangle two waysThe diagonals cross at the image of the rectangle's centre, 1e-13 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 20.4 px from the image of the side's midpoint.the diagonals against a ruler, at 3.4 mthe diagonals — exactthe ruler — 20.4 px outcorrect from 23 cm, at 160 mm wideharmonic set -1.000000 · 1e-13 px
Fig. 12 The general tool the whole family is made of. Given three points on a line, one more is determined by drawing lines and taking crossings, and nothing is measured. Everything in this essay is an instance: the horizon comes out of the picture by drawing on it.

What links here

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

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.

ConditioningDegenerate configurationEye levelGround planeHorizonIncidencesingle-view metrologyStraightedge constructionTotal least squaresVanishing point