Perpendicular is a pairing
Worth reading first: A line is a space of its own · The two points a picture hides · Recovering the camera from the picture it drew.
Two directions in the ground plane are at right angles. Each has a vanishing point on the horizon. So there is a rule taking a point of the horizon to another point of the horizon, and the rule is symmetric: apply it twice and the direction is back where it started.
A map that is its own inverse is called an involution, and it is not a curiosity. It is a two-parameter object where a general map of a line has three, and the missing parameter is worth a piece of machinery.
Two pairs, not three
A line is a space of its own counts a projectivity’s freedom at three, so three pairs determine one. An involution is the subset with trace zero, which is one condition, leaving two.
So two pairs determine an involution, and a third pair is then a prediction rather than an input.
That is the whole of the operational content. A pair of perpendicular directions is a rectangle lying on the floor; two rectangles, at different angles, are two pairs; and two pairs are enough.
What the fixed points are
An involution’s fixed points come from a quadratic whose discriminant is negative — always, for this one, and the negativity is the geometry rather than an accident. A real fixed point would be a direction that is its own perpendicular, and there is none.
So the two fixed points are complex conjugates, at along the horizon.
The real part is where the centre of the picture falls on the horizon. The imaginary part is the focal length. Measured on a camera whose principal point was deliberately put off-centre so that recovering it would be a measurement: the focal length comes back to eleven decimal places and the centre to twelve.
Those two points are not new to this site. They are the imaged circular points, which the two points a picture hides computes by intersecting the vanishing line with the image of the absolute conic, and which the whole metric upgrade of a plane consists of.
Arriving at them from a map of one line rather than from a conic in the plane is not a new theorem. It is a cheaper route, and cheap enough to change what is possible.
Written out
The relation itself is one line and it is worth seeing, because everything above is a reading of it.
Two directions are perpendicular exactly when their vanishing points and satisfy
with the principal point. For a level camera both points lie on a horizontal horizon that carries , so the vertical components vanish and it collapses to
which is a Möbius map of the horizon’s own coordinate with a reciprocal of . Its matrix has trace zero by inspection, which is the involution; its fixed points solve , which is the pair; and the minus sign is the reason the pair is imaginary.
The minus sign is not a convention. One conic calibrates the camera makes the same point about the same sign from the conic’s side: it is a refusal, and a positive right-hand side means no camera produces this picture from a rectangular object at all.
The third pair is a check, not an input
Two pairs settle the map, so a third rectangle on the same floor is spare — and spare is exactly what a measurement wants.
Fitted from two and predicted onto a third, the pairing lands a tenth of a millionth of a millionth of a pixel from where the camera puts it. That is the arithmetic floor, and it is a genuine round trip: the third rectangle’s orientation never entered the fit.
On a real picture that spare rectangle is the whole of the quality control. A third pair that lands where the first two put it says the two rectangles really were rectangles and really were coplanar; a third pair that lands somewhere else says one of those was false, and says it without needing to know which.
What the cheap route buys
Every route this site has had to a focal length has needed one of two things.
Three mutually perpendicular directions — the orthocentre construction of recovering the camera, which is exact and needs a box.
Or two directions and an assumed principal point — the two-vanishing-point relation, which needs only a rectangle and needs to be told where the centre of the picture is.
The involution is the third route and it needs neither. Two rectangles lying flat on one floor, at different angles, give both numbers together — no vertical anywhere in the scene, and nothing assumed about the frame.
That matters because assuming the centre is the standing weakness of the second route. The principal point is not the centre measures what a shifted or cropped frame costs, and it is per cents rather than parts per million.
The condition, and it is a real one
The two numbers can be read straight off the horizon only when the camera is level — when the principal point lies on the horizon at all.
That is not a technicality and it is the honest limit of the cheap route. Tilt the camera by a degree and the recovered focal length is a tenth of a pixel out; by nine degrees and it is eight pixels out.
What survives the tilt is the general statement rather than the shortcut. The involution still exists on any plane’s vanishing line, and its fixed points are still that plane’s imaged circular points. What stops being true is that the two parameters of the involution are the focal length and the horizontal position of the centre; on a tilted camera they are two combinations of three unknowns, and one plane no longer separates them.
Why an involution and not just a map
There is a temptation to skip the word. Perpendicularity gives a correspondence between points of the horizon; fit a general projectivity to it from three pairs and read off whatever comes out.
That would work and it would waste a rectangle. Worse, it would hide the structure: the fitted map would come back with trace zero every time and nothing would say why, and a fit with a parameter that is always the same value is a fit that has been asked the wrong question.
The word also imports a fact that would otherwise have to be rediscovered: an involution of a line is determined by two pairs, and its two fixed points are harmonically separated by every pair. So each rectangle’s two vanishing points are harmonic with the imaged circular points, which is a straightedge statement about a drawing and a construction a draughtsman could actually perform.
A wall works too, and says something else
Nothing above needed the plane to be the floor. Any plane has a vanishing line, any two perpendicular directions in it have vanishing points on that line, and the pairing is an involution.
A rectangle on a wall therefore gives a pair on the wall’s own vanishing line, and two rectangles on one wall give that wall’s imaged circular points.
What is new is what happens when the two planes are different. Each plane contributes two constraints on the image of the absolute conic, and the conic has three unknowns for a square-pixel camera, so one plane is short by one and two planes are over-determined by one. Two rectangles on the floor and one on a wall is therefore a complete calibration with a check left over, and it needs no vertical edge anywhere — which is worth knowing because the vertical is the direction a photograph most often has nothing straight along.
What this does not say
It says nothing about accuracy on a real picture. Every vanishing point here is exact because the drawing was made from a camera; on a photograph a vanishing point is fitted from edges that are nearly parallel, and the fit’s conditioning is the whole difficulty. Two rectangles at nearly the same angle give two nearly identical pairs and an involution that is nearly undetermined, exactly as two nearly parallel lines give a badly conditioned intersection.
It says nothing about non-square pixels. The identification of the imaginary part with the focal length assumes one focal length rather than two, and the pixel that is not square is what happens when that assumption is wrong.
And it does not replace the box. Three orthogonal directions give three constraints and settle all three camera unknowns; two rectangles on one plane give two, and the third — the height of the centre in the frame — comes from the levelness assumption rather than from the picture. Trading an assumption about the centre for an assumption about the camera being level is a trade rather than a saving, and which one is safer depends on the picture.
The three routes, side by side
It is worth putting the three next to each other, because what they need is more interesting than what they give.
The orthocentre route wants three mutually perpendicular bundles of edges. It gives the focal length and both coordinates of the principal point, over-determined, with a spread that measures how far the object is from being rectangular. It needs a box.
The conic route wants pairs of perpendicular directions, any number of them, in any planes, and solves a linear system for the image of the absolute conic. It is the general statement and the other two are cases of it.
The involution route wants two pairs in one plane and a level camera. It gives the focal length and the horizontal position of the centre, exactly, and says nothing about the vertical position because nothing in one plane’s vanishing line can.
All three return the same numbers on the same picture, which is the check that keeps them honest, and none of them is preferable in general. What decides is what the photograph happens to contain: a box, several planes, or one floor with two rugs on it.
One more pairing, on a different line
The involution here lives on a horizon and pairs directions at right angles. There is a second one in this collection’s machinery that lives on a pencil rather than on a range, and noticing that the two are the same kind of object is worth a paragraph.
Take a conic in a picture and a point. The lines through the point are a pencil — a projective line’s worth of them — and the conic pairs each line with another: the line and its conjugate, meeting the conic in a pair harmonic with the given point. That pairing is symmetric, so it is an involution of the pencil, and its two fixed lines are the tangents from the point.
When the point is inside the conic the tangents are imaginary, the involution has no real fixed line, and nothing in the pencil is its own conjugate — which is word for word the situation on the horizon, with a different conic and a different line.
So the two involutions this collection now uses are the same object twice: a symmetric pairing on a one-dimensional projective space, determined by two pairs, carrying its meaning in a pair of fixed elements that are imaginary exactly when the pairing has no self-conjugate member.
The transferable form
When a correspondence is symmetric, it has one fewer parameter than a general one — so it needs one fewer measurement, and its fixed set carries the meaning.
Symmetry is usually noticed and then not used. Here it is the difference between needing three rectangles and needing two, and between reading two numbers off a fitted map and reading them off a pair of conjugate roots that were already the objects the metric upgrade is made of.
The same move is available wherever a relation pairs things rather than ordering them: reflection in a mirror is an involution of the plane and this site’s own census finds it at a ratio of exactly minus one; conjugate diameters of a conic are an involution on the pencil of directions; and the pole–polar correspondence is an involution on the whole plane. Each of them costs one parameter fewer than the general map it sits inside, and each of them keeps its meaning in a fixed set rather than in a formula.
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.
- The map a row of posts is — both name degrees of freedom, demonstration, fixed point, involution, projective line, projectivity, vanishing point
- The quadrilateral no rectangle casts — both name demonstration, focal recovery, horizon, principal point, vanishing point
- A drawing has three horizons — both name demonstration, horizon, principal point, vanishing point
- A pixel is not a point — both name camera calibration, demonstration, principal point, vanishing point
- A projector is a camera run backwards — both name camera calibration, demonstration, focal recovery, vanishing point
- The proportion is the assumption — both name camera calibration, demonstration, focal recovery, principal point
Named objects
A flat tag is an object no other essay names yet.
Absolute conicCamera calibrationCircular pointsdegrees of freedomDemonstrationFixed pointFocal recoveryHorizonInvolutionPrincipal pointProjective lineProjectivityVanishing point