Constructing a view

The arc every eye stands on

Four drawn corners known to be a rectangle fix the horizon of their plane and nothing else. The eye that drew them has to see the two vanishing points at a right angle, so it lies on the circle those points are a diameter of — and every point of that arc reconstructs a genuine rectangle, with right angles to five parts in ten million million of a degree, and a different proportion.

Worth reading first: The point you have to stand at · One, two and three point are one construction · The horizon is at eye level — if the picture plane is vertical.

A rectangle is drawn on a floor in a picture, and the drawing is known to be a projection of a real rectangle. What does that fix?

The answer is more than nothing and much less than everything, and the shape of the leftover is a circle.

Every eye that could have drawn it lies on one arcThe four corners of a rectangle on the floor, drawn. Its two vanishing points are the ends of the arc, and the eye — folded flat into the picture about the horizon — has to see them at a right angle, so it lies on the circle having them as a diameter. Sliding the assumed centre of the picture along the horizon slides the station round the arc: at 50% of the way between the two vanishing points the focal length comes out 1129.9 px and the rectangle is reconstructed 0.2830 wide for every one deep, with its corners at right angles to 1.1e-13°. The camera that actually drew it is the mark on the arc at 812.8 px. Nothing in the four corners chooses between them.vanishing point 1vanishing point 2where the camera wasassumed centre 50% alongfocal 1129.9 px · 0.283 : 1
Fig. 1 Four drawn corners, their two vanishing points, and the arc every eye that could have drawn them lies on. Sliding the assumed centre of the picture along the horizon slides the station around the arc.

What the four corners give straight away

Two things, and both are free.

The two pairs of opposite edges meet at two vanishing points, and the line joining them is the plane’s own vanishing line — its horizon. That comes from the drawing alone, needs no camera, and is exact.

What does not come from the drawing alone is anything metric. The relation between two perpendicular directions’ vanishing points is

f2=−(v1−p)⋅(v2−p)f^{2} = -(\mathbf{v}_1 - \mathbf{p})\cdot(\mathbf{v}_2 - \mathbf{p})

which is one equation with three unknowns in it: the focal length and the two coordinates of the principal point. Two vanishing points cannot determine three numbers, and that is the whole of the shortfall.

The arc

Suppose the camera is level, so the principal point lies on the horizon. Then the relation collapses to a statement about one line, and it says something a straightedge could have said.

The eye, folded flat into the picture about the horizon, sees the two vanishing points at a right angle — because the two directions they belong to are at right angles. And the locus of points seeing a fixed segment at a right angle is the circle having that segment as a diameter.

Every eye that could have drawn it lies on one arcThe four corners of a rectangle on the floor, drawn. Its two vanishing points are the ends of the arc, and the eye — folded flat into the picture about the horizon — has to see them at a right angle, so it lies on the circle having them as a diameter. Sliding the assumed centre of the picture along the horizon slides the station round the arc: at 22% of the way between the two vanishing points the focal length comes out 936.1 px and the rectangle is reconstructed 0.1503 wide for every one deep, with its corners at right angles to 3.4e-13°. The camera that actually drew it is the mark on the arc at 812.8 px. Nothing in the four corners chooses between them.where the camera wasassumed centre 22% alongfocal 936.1 px · 0.150 : 1
Fig. 2 The eye assumed to be a fifth of the way along. The station moves round the arc and the focal length comes out shorter.

Which point of the arc is a matter of where the principal point is assumed to be: drop a perpendicular from the assumed centre to the horizon and it meets the arc once. The height of that meeting above the horizon is the focal length, and it is the same square root as before.

That is the classical station-point construction, and it is the algebra drawn rather than a second method. Books give it as a recipe — swing a semicircle on the two vanishing points, drop a perpendicular from the centre of the picture, and where they cross is where the camera stood — and what makes it a recipe rather than a derivation is that the semicircle is presented without the right angle it comes from.

What the composition rule commits the reader toWith the two points one page-width apart the picture is correct from 80 mm — a 90° field of view — and a reader holding it at 400 mm sees a room 5.0 times as deep as the one drawn. Nothing about the drawing changes; the number is the layout's.0.6× the page48 mm×8.3 at 4000.8× the page64 mm×6.3 at 4001.0× the page80 mm×5.0 at 4001.4× the page112 mm×3.6 at 4002.0× the page160 mm×2.5 at 4003.0× the page240 mm×1.7 at 4004.5× the page360 mm×1.1 at 4007.0× the page560 mm×0.7 at 400distance the picture is correct from, shown 160 mm widea rule about the paperwhich is a rule about the reader
Fig. 3 The layout the recipe is usually drawn in, where the arc fits on the sheet. The separation between the two vanishing points is the focal length in disguise, so an arc that fits is a picture with a wide field in it.

Every station gives a rectangle, and they are not the same rectangle

Here is the part that is easy to state and worth measuring.

Take any point of the arc. The focal length that goes with it is chosen precisely so that the two edge directions come out perpendicular. So the reconstruction cannot fail to have right angles — it has them by construction, to five parts in ten million million of a degree across the whole walk.

What differs is the proportion.

The proportion is the assumption, not the drawingEvery point of the arc reconstructs a rectangle with right angles to 5.1e-13°, and they run from 0.071 : 1 to 1.120 : 1 — a factor of 15.7. The rectangle that was actually there is 0.667 : 1, and only 2% of the arc gets within five per cent of it. A proportion read off a photograph of a rectangle is a proportion read off the assumption that the centre of the picture is the centre of the frame.012320406080assumed centre of the picture, % of the way between the vanishing pointsreconstructed proportion of the rectanglethe rectangle that was there, 0.667 : 115.7× across the arcevery one a true rectangle
Fig. 4 The reconstructed proportion at every station on the arc. Every one of them is a true rectangle, and they run from 0.071 : 1 to 1.120 : 1 — a factor of nearly sixteen.

The rectangle that was actually there is two-thirds as wide as it is deep. Only a fiftieth of the arc puts the reconstruction within five per cent of it.

So a drawn rectangle does not say what shape it is. It says what shape it is given where the centre of the picture is, and the centre of the picture is not something the four corners contain.

What the drawing does say, which is a bound

The arc is usually read as pure shortfall — four corners fix nothing metric — and that is too strong. Parameterising it turns the shortfall into an inequality, and the inequality is worth having.

Put the two vanishing points at x1x_1 and x2x_2 on the horizon, a distance DD apart, and write the assumed principal point as p=x1+tDp = x_1 + tD. The perpendicularity relation then reads

f2  =  −(x1−p)(x2−p)  =  t(1−t) D2,f  =  Dt(1−t).f^{2} \;=\; -(x_1 - p)(x_2 - p) \;=\; t(1-t)\,D^{2}, \qquad f \;=\; D\sqrt{t(1-t)}.

Three things fall out of that one line.

The principal point must lie between the two vanishing points. Outside that band t(1−t)t(1-t) is negative and there is no real focal length — which is the band the second figure marks along the horizon, derived rather than drawn.

The focal length is bounded above by half the separation. t(1−t)≤1/4t(1-t) \le 1/4, so

f  ≤  D2,f \;\le\; \frac{D}{2},

with equality only at the middle. That is a metric statement from the drawing alone, with nothing assumed: the field of view is at least 2arctan⁡(W/D)2\arctan(W/D) for a picture WW wide. Two vanishing points close together on the page prove a wide lens; two far apart permit a long one and do not require it. So the drawn rectangle does say something about the camera after all — an inequality rather than a value, which is the same shape both vanishing points on the paper reaches from the drawing-board side.

And the assumption is stationary at the top of the arc. Since f=Dt(1−t)f = D\sqrt{t(1-t)} has zero derivative at t=1/2t = 1/2, an error in the assumed centre costs a second-order error in the focal length there and a first-order one elsewhere. Ten per cent of the band wrongly assumed costs two per cent of the focal length at the middle and nineteen per cent at t=0.2t = 0.2 — a factor of ten between a rectangle sitting symmetrically in the frame and one off to the side.

That last one is the essay’s closing observation with a number on it, and it is the practically useful part. A reader with a photograph and one rectangle in it should ask where the rectangle’s two vanishing points sit relative to the frame’s middle, and trust the reconstruction in proportion to how nearly the middle bisects them. It is also why the same assumption behaves so differently on different pictures, and why the principal point being taken as the centre is sometimes harmless and sometimes not — the cost is not a property of the assumption, it is a property of where on the arc it lands.

The proportion inherits all of it, since the reconstructed shape is a function of ff and the two vanishing points. Its 0.071-to-1.120 range across the arc is the image of ff running from zero up to D/2D/2 and back to zero, and the fiftieth of the arc that lands within five per cent of the truth is narrow for the same reason the focal length’s own dependence is steep away from the middle.

None of which repairs the shortfall. Three unknowns and one equation is still three unknowns and one equation, and a box supplies the missing two where a rectangle cannot. What the parameterisation adds is that the one equation is not empty: it excludes a band, it caps the focal length, and it says where along the remaining freedom an assumption is cheap.

Where along the arc the picture actually was

There is a natural question and it has a clean answer: which point of the arc corresponds to the assumption everybody makes?

Assuming the principal point is the middle of the frame puts the station at the point of the arc directly over the middle of the frame. For a rectangle that sits symmetrically in the picture that is near the top of the arc, where the focal length is largest and the proportion is least sensitive to being wrong. For a rectangle off to one side it is well round the arc, and both the focal length and the proportion are worse behaved there.

Every eye that could have drawn it lies on one arcThe four corners of a rectangle on the floor, drawn. Its two vanishing points are the ends of the arc, and the eye — folded flat into the picture about the horizon — has to see them at a right angle, so it lies on the circle having them as a diameter. Sliding the assumed centre of the picture along the horizon slides the station round the arc: at 50% of the way between the two vanishing points the focal length comes out 813.3 px and the rectangle is reconstructed 0.6904 wide for every one deep, with its corners at right angles to 2.8e-14°. The camera that actually drew it is the mark on the arc at 812.8 px. Nothing in the four corners chooses between them.vanishing point 1vanishing point 2where the camera wasassumed centre 50% alongfocal 813.3 px · 0.690 : 1
Fig. 5 A rectangle at a different angle on the floor, with the assumed centre in the same place. Where along the arc the assumption lands depends on the rectangle, not on the camera.

So the quality of the assumption is a property of the picture’s composition rather than of the camera. A rectangle photographed head-on and centred is well conditioned; one photographed obliquely at the edge of the frame is not, and nothing about the two pictures announces the difference.

Two rectangles close it

One rectangle is one pair of perpendicular directions. Two rectangles on the same floor, at different angles, are two pairs — and perpendicular is a pairing says two pairs determine the involution, which determines both numbers.

Drawn as arcs it is the same statement and it is prettier. Each rectangle gives a circle whose centre is on the horizon. Two circles whose centres are both on one line meet at two points, one each side of it, and the one above the horizon is where the eye stood.

Two rectangles on one floor, and the arcs cross onceOne drawn rectangle leaves the eye free along an arc. A second rectangle, lying on the same floor at a different angle, draws a second arc — and two circles whose centres are both on the horizon meet at one point above it. That point is where the camera stood, to 6.1e-12 px. It is the same fact as the involution on the horizon needing two pairs and no more: each rectangle is one pair, an involution has two degrees of freedom, and the crossing of the arcs is that solution drawn instead of solved.one crossing, one eyetwo rectangles, two arcscrossing off by 6.1e-12 px
Fig. 6 Two rectangles on one floor and the two arcs they give. The crossing is where the camera was, to six parts in a million million of a pixel.

That is the arithmetic solved by drawing, and the two routes agree because they are the same constraint written twice: the involution’s two parameters and the two circles’ one crossing.

What a second measurement could have been instead

The second rectangle is one way to close the family. It is not the only one, and the alternatives are worth listing because each of them corresponds to a piece of information a real photograph might contain.

A known proportion. If the rectangle is known to be a square — a floor tile, a window, a sheet of paper — the proportion is given and the arc collapses to the one station that reproduces it. That is one number supplied, and one number was what was missing.

A vertical. One edge in the picture known to be vertical, and therefore perpendicular to both of the rectangle’s directions, adds a third direction and turns the problem into the three-point recovery. That is more than enough, and it is why a picture with a doorway in it is a much better picture to measure than a picture of a floor.

Or a circle. The image of a circle lying in the same plane supplies the plane’s imaged circular points directly, which is two constraints — the same two the second rectangle gives, arriving from a curve rather than from four corners.

All four routes — second rectangle, known proportion, vertical, circle — close the same one-parameter gap, and each of them is one number or two. Nothing closes it for free.

What the arc is, exactly

Worth being precise about, because “the eye is free along an arc” is the kind of sentence that is right and vague.

The arc is a rabatment — the eye folded into the picture plane about the horizon, so its position on the paper is a picture of a position in the room rather than a place a mark could go. Un-fold it and the arc becomes a circle in the horizontal plane through the eye, standing over the two vanishing points, and the eye is somewhere on that circle.

The free parameter, then, is one number: where along the horizon the principal point is. That single number carries both the focal length and the proportion, and the two move together in a way worth watching — the focal length is largest at the middle of the arc and falls to nothing at either end, while the proportion runs monotonically from one extreme to the other.

Why the answer had to be a conic

The arc is a circle, and that is not a coincidence of the level camera. It is the shape a right angle always makes.

Every constraint in this subject that says “these two directions are perpendicular” is the same constraint: two vanishing points are conjugate with respect to one conic in the picture, the image of the absolute conic. One conic calibrates the camera states it in that form and shows the orthocentre construction is the same relation with a square root in it.

Read the constraint as an equation in the camera’s unknowns instead of the scene’s, and it is one linear equation in the entries of that conic. The set of cameras satisfying it is therefore a plane section of the three-dimensional space of possible conics, and its intersection with the level-camera assumption is a curve — the arc.

Two rectangles give two such equations and the intersection is a point. Three would over-determine it, which is what the spare rectangle in perpendicular is a pairing is doing.

That is why the answer had to be a conic and could not have been an interval. The constraint is quadratic in the picture’s coordinates, so the locus it defines is a conic, and the only question was which one.

What this does not say

It says nothing about a tilted camera. The right-angle-on-a-circle argument needs the principal point to be on the horizon, which is the level condition, and a tilted camera has the same shortfall stated differently: the eye is free on a curve in space rather than on a circle in the picture plane, and the drawing does not say which curve without the tilt.

It says nothing about the aspect ratio of the frame. Everything here is about the principal point, which is a property of the camera; the frame is a crop and moving it moves the principal point relative to the picture without moving anything in the world.

And it does not make the assumed centre unreasonable. Assuming the centre of the frame is the centre of the picture is usually nearly right, and the next rung is about how nearly.

The count, in one line

It is worth setting the arithmetic out plainly, because the whole essay is a consequence of it and the counting is not hard.

A square-pixel camera has three unknowns: the focal length and the two coordinates of the principal point. Each pair of perpendicular directions in the scene supplies one linear constraint on them. So:

  • one rectangle — one constraint, two unknowns left, a surface of possible cameras;
  • one rectangle on a level camera — one constraint plus the levelness, one unknown left, the arc;
  • two rectangles on one plane, level camera — two constraints plus levelness, none left;
  • a box — three constraints, none left, and one to spare.

That table is the answer to every question of the form “is this enough”. It is the same counting a line is a space of its own recommends doing before any test is run, applied to the camera rather than to a quadruple of points, and it is what says in advance that the arc had to be one-dimensional.

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. 7 And the one thing no amount of counting recovers. Every entry above fixes the camera and none of them fixes a length, because a single view has no size in it whatever is drawn.

The arc’s own ends

The two ends of the arc are the two vanishing points, and it is worth saying what a station there would mean.

At an end, the folded eye has come down onto the horizon, which means the focal length has gone to zero — an infinitely wide camera, with the whole world crushed into a point. That is not a picture; it is the degenerate limit the construction runs to, and the sweep stops just short of both ends for that reason.

Between the ends, the focal length rises to a maximum at the top of the arc and falls again — so two different assumed centres give the same focal length, one each side of the middle, with different proportions. A focal length alone therefore does not locate the station on the arc, which is a small trap worth naming: two cameras of identical focal length, both consistent with the same four drawn corners, disagreeing about what the rectangle is.

Every eye that could have drawn it lies on one arcThe four corners of a rectangle on the floor, drawn. Its two vanishing points are the ends of the arc, and the eye — folded flat into the picture about the horizon — has to see them at a right angle, so it lies on the circle having them as a diameter. Sliding the assumed centre of the picture along the horizon slides the station round the arc: at 30% of the way between the two vanishing points the focal length comes out 1035.6 px and the rectangle is reconstructed 0.1853 wide for every one deep, with its corners at right angles to 1.6e-13°. The camera that actually drew it is the mark on the arc at 812.8 px. Nothing in the four corners chooses between them.where the camera wasassumed centre 30% alongfocal 1035.6 px · 0.185 : 1
Fig. 8 One of a pair. The station on the other side of the arc’s top has the same focal length and reconstructs a different rectangle.

That is a genuine ambiguity within the ambiguity, and it says the free parameter is properly the position along the arc rather than the focal length. Naming the parameter correctly is what stops a reader from thinking that a known focal length would close the family.

The transferable form

Two rungs of this site have now ended with a curve rather than a number, and the second one arrives by a different route from the first.

A picture that leaves something free leaves it free along an object, and finding the object is more useful than bounding the number — because the object says how a second measurement will close it.

The ball stands at a focus leaves the lamp on a focal hyperbola, and the branch says at once what a second observation has to supply. Here the eye is left on a circle, and the circle says at once that a second rectangle will do — because two circles with collinear centres cross once above the line, and no more measurements are needed than that.

Had the answer been “the focal length is somewhere between five hundred and eleven hundred pixels”, both facts would have been invisible.

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.

degrees of freedomDemonstrationDepicted rectangleFocal recoveryFree parameterHorizonInvolutionPrincipal pointRabatmentStation pointVanishing point