Mirrors that are not cameras

Square to the camera is the worst mirror

A mirror pair's baseline runs along the mirror's normal, so a mirror facing the camera puts the second eye directly behind the first — the forward-motion arrangement, with the epipole in the middle of the frame and the rays to a mark crossing at 23°. Turning it forty-four degrees opens that to 65° and cuts the worst depth error threefold, and the number to watch is not the angle but where the reflected lens sits on the print.

Worth reading first: One shutter, two views · A turn of the head is not a step sideways.

Everything in one shutter, two views and two matches are enough is about how well a mirror pair is determined. Neither says whether it is any good, and those are different questions: an arrangement can determine its answer perfectly and determine it terribly, which is the distinction an ambiguity is not an uncertainty is written to keep apart.

The mirror pair is well determined everywhere and very badly conditioned in one particular arrangement, and the arrangement is the obvious one — a mirror facing the camera.

The baseline has no choice about its direction

A pair of photographs can be taken from anywhere. A mirror pair cannot: the second centre is the first reflected in the mirror, so the segment joining them is perpendicular to the mirror and that is the end of it. The photographer chooses how far from the glass to stand, which fixes the baseline’s length, and chooses how the mirror is hung, which fixes its direction. There is no third choice.

The second eye is 5139 mm away, and a tape says soThe room in plan: the camera, the mirror as a line, and the virtual camera behind it. The virtual centre is the real one reflected in the mirror plane, so the two lie on the mirror's normal and are exactly twice the camera's distance apart — 2.569 metres to the mirror, 5.139 metres of baseline. That is the difference between this pair and a pair of photographs taken from two places: a two-view reconstruction is a shape with no size, and this one has a size the moment somebody measures how far the camera stood from the glass.the camerathe camera, reflected5139 mmin plan, from above2 × 2569 mm
Fig. 1 The room in plan. The baseline runs along the mirror’s normal and is twice the distance to the glass — a direction the photographer sets by hanging the mirror and by nothing else.

Set the mirror square to the camera and that direction is the direction the camera is looking. The second eye sits directly behind the first, which is a forward-motion pair: the arrangement a camera makes by walking toward what it is photographing rather than stepping sideways.

Forward motion is the worst-behaved geometry in the two-view subject, and the collection has already measured why in a different costume. A turn of the head is not a step sideways is about the opposite extreme — a baseline of zero, where nothing at all can be recovered — and the material between the two extremes is the same material: how much parallax an arrangement actually produces, against how much a count of its unknowns suggests.

The epipole comes to the middle

A forward-motion pair puts its epipole where the camera is heading, which is near the middle of the frame. In a mirror pair the epipole is where the reflected lens appears, and a mirror square to the camera puts the reflection of the lens in the centre of the picture.

That matters because of the constraint from the previous rung. Every mark and its reflection are joined by a line through the epipole. When the epipole is in the middle of the frame, those lines radiate from the centre, and a mark near the centre lies close to its own reflection — so the two views of it are nearly the same view, and there is almost nothing to triangulate with.

Every mark, its reflection, and the point where the lens is: 3.5e-13 pxOne photograph of a room with a mirror in it, 6 degrees off square to the camera. Each of 12 marks appears twice — once directly and once in the mirror — and the two appearances are joined by a straight line. All of those lines pass through one point, and the point is where the camera would see its own lens reflected. The worst of them misses it by 3.5e-13 pixels, which is the arithmetic floor rather than a fit. That point is the epipole of the two views, and it is also the vanishing point of the mirror's normal, because the line from the eye to its own reflection runs along that normal.the lenscorrect from 14 cm, at 160 mm wide12 pairs · 3.5e-13 px
Fig. 2 Nearly square: the joining lines radiate from a point close to the middle of the picture, and the marks near that point are barely separated from their own reflections.

The angle the rays cross at

The quantity underneath all of this is the angle at which the two rays to a mark cross. The ray to the direct image is a ray of the real camera; the ray to the reflected image is that camera’s ray reflected in the plane, which is a ray from the reflected centre. They meet at the mark, and the angle they meet at is the parallax the arrangement supplies.

The rays cross at 23° when the mirror is square and 65° when it is turnedThe quantity underneath the previous two figures. Triangulation spends the angle at which the two rays cross: at a small angle a displacement along either ray moves the intersection a long way, and at a right angle it does not. A mirror square to the camera gives 23 degrees of that angle for this mark, and one turned 44 degrees gives 65. Everything else in this essay is a consequence of the curve, which is why it is drawn rather than described.0204060010203040how far the mirror is turned from square, in degreesthe angle the two rays cross at, in degreesthe parallax a mirror pair actually has23° → 65°
Fig. 3 The crossing angle against the mirror’s tilt, for one mark in one room: twenty-three degrees when the mirror is square, sixty-five when it is turned.

A displacement along either ray moves the intersection by an amount that grows as one over the sine of that angle, which is the law two rays that do not meet sets out for the general case. At sixty-five degrees a pixel of error is worth roughly a pixel’s worth of depth; at twenty-three degrees it is worth two and a half times as much, and at five degrees it would be worth eleven.

What the tilt is worth, in millimetres

The honest way to price this is not to nudge one image coordinate and report the displacement. That is a measurement of the direction the nudge happened to be in, and on this site’s own room it gets the answer backwards: nudging the direct image sideways in a square-mirror arrangement moves the recovered point along the well-determined axis, and reports the degenerate case as the good one.

So all four image coordinates are perturbed in turn, the four displacement vectors are collected as the columns of a Jacobian, and what is quoted is the largest displacement any perturbation of a given size can produce — the largest singular value, which is the number a worst case actually needs.

Square to the camera costs 3.0× the depth error of a mirror turned 44°One mark, triangulated across the mirror, with the mirror turned by the amount on the horizontal axis and its direct image displaced by three tenths of a pixel. The vertical axis is how far the recovered point moves. A mirror square to the camera puts the second centre directly behind the first, so the two rays to a mark cross at a narrow angle and the intersection is poorly determined; turning the mirror opens that angle. The improvement is 3.0-fold across the range, and it is bought with nothing but where the mirror is hung. The small rise over the first few degrees is not noise: turning the mirror from square first sweeps the epipole TOWARD this mark before carrying it away, and a mark the epipole is passing over is the worst-placed mark there is.024010203040how far the mirror is turned from square, in degreeswhat three tenths of a pixel can cost, in millimetresnearly squareone mark, 0.3 px of marking error3.0× across the range
Fig. 4 The result: three tenths of a pixel of marking error can move the recovered point by 4.8 millimetres with the mirror square, and by 1.6 with it turned forty-four degrees.

Threefold, bought with nothing but where the mirror hangs. And the curve has a feature worth reading rather than smoothing: it rises slightly over the first few degrees before falling. That is not noise. Turning the mirror from square sweeps the epipole across the frame, and for the first few degrees it sweeps toward this particular mark before carrying on past it. A mark the epipole is passing over is the worst-placed mark there is.

The crossing angle accounts for three quarters of it

Two numbers in the sections above invite being divided into each other, and the division is worth doing because it does not quite come out.

The crossing angle goes from 23° square to 65° turned, so the 1/sin1/\sin law predicts an improvement of sin65°/sin23°=2.32\sin 65° / \sin 23° = 2.32. The measured worst-case displacement goes from 4.8 mm to 1.6 — a factor of 3.0. So the crossing angle explains about three quarters of the gain, in logarithms, and a quarter comes from somewhere else.

The somewhere else is a real feature of a mirror pair rather than slack in the measurement. The 1/sin1/\sin law is derived for two rays perturbed independently, and a mirror pair’s two rays are not independent: both are rays of one camera, so the four image coordinates being perturbed are four coordinates of a single photograph and the resulting displacements are correlated. The largest singular value of the Jacobian therefore picks up a contribution the two-ray argument has no term for, and turning the mirror changes that contribution as well as the crossing angle.

Which is the reason for taking a singular value rather than a nudge in the first place, and the reason this essay’s own warning about nudging one coordinate is not a fussy one. The 1.6 and the 4.8 are worst cases over every perturbation direction; the 2.32 is what a two-ray idealisation would give; and the gap between them is the arrangement’s own coupling, visible only because the two were computed separately.

The number to watch is on the print

The mirror’s angle is not something a photographer measures. What is visible, in the viewfinder and in the finished photograph, is where the reflection of the camera falls in the frame — and that is the epipole, which is the quantity the conditioning actually depends on.

The quantity that decides it is on the print: how far the lens is from the middleThe same sweep plotted against something a reader can see rather than against the mirror's angle, which nobody photographs. The horizontal axis is how far the epipole — the reflected lens — sits from the centre of the picture. The depth error falls monotonically with it, so the useful instruction is not "turn the mirror by so many degrees" but "arrange the shot so that the reflection of the camera is well away from the middle of the frame". That is a rule about composition, and it can be followed while looking through the viewfinder.024100200300400how far the epipole is from the middle of the picture, in pixelswhat three tenths of a pixel costs the depth, in millimetres14°44°the same sweep, against what the print showscompose, do not compute
Fig. 5 The same sweep plotted against something a reader can see: how far the reflected lens sits from the middle of the picture. The error falls monotonically with it.

So the instruction is a compositional one. Arrange the shot so the camera’s own reflection is well away from the centre of the frame, and away from whatever is being measured. That is a rule that can be followed while looking through a viewfinder, and it is the same rule a surveyor follows when refusing to sight along a line: the evidence has to have a direction to it.

The other three degeneracies

Turning the mirror fixes the arrangement’s worst case. Three other failures are not about the tilt at all, and each has a different signature.

A mark on the mirror plane is its own reflection. Dust on the glass, a scratch, the frame of the mirror itself: the direct image and the reflected image coincide, the joining line is undefined, and the correspondence carries no information. A fit handed several of these does not fail loudly; the rows of the design matrix are near zero and the answer is determined by whatever else is present, which is the quiet kind of failure. The remedy is to notice, and the way to notice is that the two marks are in the same place.

A scene confined to one plane parallel to the mirror gives every mark the same depth, so every joining line has the same length and the arrangement carries no depth information to recover. That is the planar degeneracy a flat scene fixes no second eye measures at length, and it arrives here unchanged.

A curved mirror has no reflected centre. There is no second camera, the joining lines do not concur, and the skew fit returns a matrix whose residual reports the curvature rather than the marks. That is the useful diagnostic in the whole family: the concurrence test is a flatness test.

A mirror ball 5.00 m across, and the point its lines of sight missThe backward continuations are drawn to the point that fits them best. They miss it by up to 0.72 mm — over 20 cm of mirror, so a photograph of this ball is a projection of nothing from anywhere.eyethe best fit — no ray goes through itno single viewpoint — the rays miss by 0.72 mmover 20 cm of a 5.00 m ball
Fig. 6 The third failure, measured next door: over twenty centimetres of a two-metre ball the lines of sight miss their own best-fitting point by 2.8 millimetres.

Where the ill-conditioning actually lives

It is worth being exact about which quantity is badly determined in the square arrangement, because “the reconstruction is poor” hides a structure that is easy to use once it is seen.

The Jacobian of the triangulation has three singular values, and in a forward-motion arrangement they are not merely small — they are unequal by a large factor. The largest belongs to a direction that runs roughly along the line of sight, and the other two belong to directions across it. So the recovered point is well placed on the page and badly placed in depth, which is the same anisotropy the metrology field finds when it unprojects a mark onto a ground plane and gets an ellipse rather than a disc.

That structure is usable. A measurement that only wants the shape of something in a plane facing the camera is barely affected by the square arrangement; a measurement that wants how far one object stands in front of another is affected by all of it. Quoting one error figure for the recovered point throws that distinction away, and the distinction is generally the thing a reader wanted.

Two mirrors, and why they do not simply add

The obvious response to a badly placed mirror is a second mirror. It works, and it works less well than counting the images suggests.

Two mirrors produce a set of virtual cameras rather than one, and every one of them is a genuine extra view of the scene taken in the same exposure. But their centres are not scattered: they are the original centre reflected and re-reflected, so they all lie on one circle about the line where the mirrors meet, at the same distance from it. A set of viewpoints confined to a circle is a narrower set than the count suggests, and the directions it fails to constrain are the directions along that circle’s axis.

That is the same complaint as the one above, one level up: what an arrangement supplies is not a number of views but a spread of viewpoints, and the second is what the conditioning reads. The geometry of that circle is the subject of the next essay in this field, which is about what two and three mirrors generate rather than about what they measure.

Why this is not the same as choosing a stereo baseline

A photographer setting up an ordinary stereo pair trades baseline against matching: a wide baseline gives better depth and makes correspondences harder to find, because the two views look less alike. The range a pair cannot see past prices one side of that and a wrong match is not a small error prices the other.

A mirror pair’s trade is different in an interesting way. Turning the mirror does not make the two views less alike — they are the same photograph, and a mark and its reflection are visible together, in one exposure, with the same lighting and the same exposure interval. What turning the mirror costs is field: a mirror at forty-four degrees reflects a narrower slice of the room, so there are fewer correspondences to be had even though each is better placed.

That is a more forgiving trade than the ordinary one, and it is the practical argument for the whole arrangement. The hard part of stereo is correspondence, and a mirror hands the correspondences over: two appearances of one object, in one frame, at one instant, joined by a line a ruler can draw.

A rule of thumb, and what it is worth

A reader wanting one sentence to carry away can have this: a mirror pair behaves like an ordinary stereo pair whose baseline is twice the distance to the glass, reduced by the sine of the angle between the mirror’s normal and the line of sight to whatever is being measured.

The reduction is the whole of the essay. A mirror square to the camera and a mark straight ahead give a sine near zero, and a baseline multiplied by nothing is not a baseline. Turning the mirror, or measuring something off to the side, or both, brings the factor up.

Two cautions go with it. The rule is a first-order statement and it is stated on one mark rather than on a scene, so a photograph with marks spread across the frame has a different factor for each of them — the ones near the reflected lens are badly served while the ones at the edge are well served, in the same exposure. And the rule says nothing about how many correspondences exist, which the mirror’s field of view decides and which turning the mirror makes worse. The arrangement to aim for is the one that trades a little field for a lot of angle, and there is no formula for where that balance sits, because it depends on what the photograph is of.

Another picture of the same sweep buys nothingTwo ways of adding views to the courtyard, every mark read to 1 px. Filling in a fixed 1.6° sweep leaves the worst camera-centre error at 2.1e-2 where 3 views gave 2.8e-2. Widening the sweep by 12° per view improves it from 3.2e-3 to 1.3e-3 and then flattens as well. What the reconstruction is short of is angular spread, not pictures. At every point on both curves the Jacobian has exactly 7 flat directions.0.0010.0030.010.0334567number of viewsworst camera-centre error (fraction of the track's mean radius, log scale)7 flat7 flat7 flat7 flat7 flat1.6° sweep, filled in12° per view, wideningfilled in: 2.8e-2 → 2.1e-2widened: 3.2e-3 → 1.8e-3
Fig. 7 The general accounting, from the many-view field: what an extra view is worth depends on where it is, not on the fact that it exists.

The one case where square is right

The essay’s title is a claim about triangulation, and there is a measurement a mirror pair makes for which square is the best arrangement rather than the worst. Saying so is not a hedge; it is what separates a claim about an arrangement from a claim about mirrors.

A mirror square to the camera puts the epipole at the principal point, and the epipole is the vanishing point of the mirror’s normal. So a square mirror is a mirror whose normal points at the camera, and the position of the epipole in the frame is a direct reading of the mirror’s orientation. Anyone wanting to align a mirror — to set it perpendicular to an optical axis, which is a common enough problem on a bench — has exactly this instrument: turn the mirror until its own reflection of the lens sits at the principal point, and it is square to within whatever the reading precision allows.

The two uses want opposite arrangements for the same reason. Triangulation wants the epipole far from the marks, because that is where the parallax is. Alignment wants the epipole at a known place, because that is where the reading is. One geometry, two jobs, and the quantity both of them turn on is where the reflected lens falls.

What is measured here

One mark, triangulated across a mirror in one room, with the mirror turned through forty-four degrees.

The worst displacement three tenths of a pixel of marking error can produce falls from 4.8 millimetres to 1.6, a factor of three. The angle at which the two rays cross rises from 23° to 65°. The epipole moves from a hundred and seventeen pixels off the centre of the frame to four hundred and ninety-one. And the error rises before it falls over the first eight degrees, because the epipole passes over the mark on its way out of the picture — which is what says the governing quantity is the mark’s distance from the epipole rather than the mirror’s angle.

The short version

A mirror pair’s baseline runs along the mirror’s normal, so hanging the mirror decides the geometry and nothing else does. Square to the camera is the forward-motion case: the reflected lens sits in the middle of the frame, the joining lines radiate from there, and the marks nearest the middle are the least separated from their own reflections.

Turning the mirror carries the epipole out of the picture and opens the crossing angle from twenty-three degrees to sixty-five, cutting the worst-case depth error threefold. The quantity that decides it is where the camera’s own reflection falls on the print, which is a thing to compose rather than a thing to compute.

Every mark, its reflection, and the point where the lens is: 1.2e-12 pxOne photograph of a room with a mirror in it, 32 degrees off square to the camera. Each of 12 marks appears twice — once directly and once in the mirror — and the two appearances are joined by a straight line. All of those lines pass through one point, and the point is where the camera would see its own lens reflected. The worst of them misses it by 1.2e-12 pixels, which is the arithmetic floor rather than a fit. That point is the epipole of the two views, and it is also the vanishing point of the mirror's normal, because the line from the eye to its own reflection runs along that normal.correct from 14 cm, at 160 mm wide12 pairs · 1.2e-12 px
Fig. 8 The arrangement to aim for: the reflected lens well out of the frame, and every mark a long way from 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.

BaselineConditioningDegenerate configurationDepth uncertaintyEpipoleJacobianMirror planeSensitivitysingular valuesTriangulation