Many pictures at once

A given turn spends the long lens's parallax

A long lens on a distant scene earns back one power of the parallax a pair loses with distance and reads the direction between its cameras no better for it, because it cannot tell a turn from a step. Give it the turn and the pixels count after all: the long lens and the wide scene fall onto one curve. The price is that a wrong turn costs its own size times the distance over the baseline, whatever the lens.

Worth reading first: Far enough away, a pair is one eye · A turn of the head is not a step sideways.

A longer lens buys parallax and not the direction walked a pair of cameras 30 cm apart away from a scene in three ways. Under one lens, a scene that grows with the distance keeps filling the frame and its parallax falls as one over the distance. A scene of fixed size shrinks in the frame as well, and its parallax falls as the square. A lens lengthened to keep that fixed scene filling the frame wins back exactly one power, so in pixels the long lens matches the growing scene. In the direction between the two cameras, it does not. At 24 m, at nearly the same parallax, the growing scene gave the direction to 18.5° and the long lens to 58°. The essay’s reading was that what fixes a direction is the angle the marks span, and no lens can widen that.

Its last section put a condition on the verdict. The long lens fails because a narrow view cannot tell a small turn of the second camera from a small step sideways: both slide the marks across the picture, and over a narrow cone they slide them almost identically. A turn of the head is not a step sideways made the same point about a short baseline. If the turn were known from somewhere else, from an inertial sensor or from a reference far enough away to have no parallax, only the step would be left to find, and the long lens’s pixels would have nothing to compete with.

This essay gives the pair its turn, first exactly and then with stated errors, and asks what the long lens’s pixels are then worth.

A direction is linear once the turn is given

Without the turn, a pair’s relative pose comes out of the essential matrix: eight or more correspondences fix a three-by-three matrix up to scale, and its factors are a rotation and a direction. That is the reading the earlier essay used, and it spends the marks on five unknowns at once.

With the rotation given, the problem shrinks to two unknowns and becomes linear. Each correspondence says that the ray to a mark in the first picture, turned by the known rotation, the ray to the same mark in the second picture, and the step between the cameras all lie in one plane. Equivalently, the step is perpendicular to the cross product of the two rays. Thirty marks give thirty such vectors, and the step’s direction is the one most nearly perpendicular to all of them, found as the smallest eigenvector of a three-by-three matrix. No iteration, no starting guess, and no choice among four factorisations. With exact marks and an exact turn, the direction comes back to better than a millionth of a degree at 24 m, which is the arithmetic confirming that the reading is right before any noise is added.

Everything else is the earlier essay’s arrangement unchanged: the pair, the scene and the reading error that far enough away, a pair is one eye set up, with 30 marks scattered on a slanted plane with relief, read to 0.3 px in both pictures, a short lens of 620 px, and the long lens lengthened in proportion to the distance, so that at 24 m it is 2,480 px. Each point on the curves below is the median of sixty or more trials.

The long lens comes off the floor

A given turn takes the long lens off the floorA pair 30 cm apart reading 30 marks to 0.3 px, the scene walked from 6 m to 96 m under three arrangements, with the direction between the cameras recovered with the turn unknown (dashed) and with it given exactly (solid). At 24 m: the lengthened lens 58.0° unknown and 1.69° given; the growing scene 18.5° and 1.59°; the fixed scene under the short lens 77.9° and 15.3°.1020500.3131030100distance to the scene (m)error in the direction (degrees)scene growsshort lenslong lensturn unknowndashed: turn unknown · solid: turn given24 m: 58° → 1.7°
Fig. 1 The direction’s error against distance, for a scene that grows under the short lens, a fixed scene under the short lens, and the fixed scene under a lens lengthened to keep it in frame. Dashed lines read the direction with the turn unknown, solid lines with it given exactly. Both axes are logarithmic.

The dashed lines are the earlier essay’s result. The solid lines are new, and they are the whole of the first finding. Given the turn, every arrangement improves, and the long lens improves most. At 24 m it goes from 58.0° to 1.69°, a factor of thirty-four. The growing scene goes from 18.5° to 1.59°, a factor of twelve. The short lens on the shrinking scene goes from 77.9° to 15.3°, and is now the one left behind.

At 6 m the three arrangements are the same picture and the same 0.40°. Past that, the two solid lines for the long lens and the growing scene run together all the way to 48 m, where the error is about 3°, and both turn upward together at 96 m, where the parallax has fallen to under half a pixel against marks read to 0.3 px and the reading starts to fail for want of signal.

So the earlier essay’s conclusion was correct for the question it asked, and depends entirely on the turn being unknown. With the turn known, the long lens is not a poor relation of the wide scene. It is its equal.

Parallax in pixels becomes the whole of it

The earlier essay’s sharpest figure plotted the direction’s error against the parallax on offer, and found that equal parallax did not buy equal accuracy: at about 1.8 px the growing scene and the long lens differed by a factor of three. That was the evidence that pixels are not leverage. The same plot, with the turn given, says the opposite.

With the turn given, parallax in pixels is the whole of itThe direction's error with the turn given exactly, against the parallax a homography cannot absorb. The growing scene and the lengthened lens lie on one curve: at 24 m the lengthened lens offers 1.72 px and reads the direction to 1.69°, the growing scene 1.80 px and 1.59°. The short lens on a shrinking scene joins the same curve wherever it has parallax to offer. With the turn unknown, the same two arrangements at the same parallax differed by a factor of three.0.51250.31310parallax a homography cannot absorb (px)error with the turn given (degrees)scene growsshort lenslong lensturn given exactly, 0.3 px marksone curve
Fig. 2 The direction’s error with the turn given exactly, against the parallax a homography cannot absorb, for the three arrangements. All three fall on one curve.

All three arrangements now lie on one curve. At 24 m the long lens offers 1.72 px and reads the direction to 1.69°; the growing scene offers 1.80 px and reads it to 1.59°. The short lens on the shrinking scene joins the same curve wherever it still has parallax: at 12 m it offers 1.97 px and reads 1.52°. The curve falls roughly as one over the parallax, which is what a direction read from displacements of a fixed reading error should do.

That is the rule of thumb the earlier essay tested and rejected, arriving after all, under one condition. Parallax in pixels measures a pair’s condition when parallax is the only thing in the picture that varies with the step. With the turn unknown, it is not: a narrow cone of rays lets a turn imitate most of a step, and a pixel of parallax can be spent explaining a turn instead. The same narrow cone is what lets a narrow view keep a second answer, inside out: over a few degrees of field, a turned scene and a stepped one are close to the same pictures, and the ambiguity has more than one form. Take the turn away as an unknown and the imitation has nothing to imitate.

The lens cancels out of a wrong turn

No turn is given exactly. A gyroscope drifts, a horizon is read to some fraction of a pixel, a reference is not quite at infinity. So the given rotation is now perturbed by a stated error about a random axis, and the direction read with it.

How well the turn must be known, at 24 mAt 24 m, the direction's error against the error in the turn it is given, for the three arrangements, with the error of the essential-matrix reading (turn unknown) drawn as a short dashed line beside each at the right. The lengthened lens: 1.6° with the turn to 0.01°, 5.6° to 0.1°, 15.0° to 0.3°, 58° to 1°, against 57° unknown. The short lens on the same scene: 17.0°, 19.3°, 32.5°, 71°, against 80°. The growing scene follows the lengthened lens.0.0030.010.030.10.310255075error in the given turn (degrees)error in the direction (degrees)scene growsshort lenslong lensturn unknown24 m, 30 cm baseline · dashed: turn unknown0.1° → 5.6°
Fig. 3 At 24 m, the direction’s error against the error in the turn given to it, for the three arrangements. The short dashed lines at the right are each arrangement’s error with the turn unknown. The horizontal axis is logarithmic, from three thousandths of a degree to one degree.

The long lens holds its 1.6° while the turn is known to a hundredth of a degree. At a tenth of a degree it reads 5.6°, at three tenths 15.0°, and at a whole degree 58°, which is where it started with no turn at all. So at 24 m a turn known to a degree is worth nothing, and a turn known to a tenth is worth a factor of ten.

The curves for the long lens and for the growing scene lie on top of each other at every turn error, which is unexpected at first. The long lens has four times the focal length, so a turn that is wrong by a tenth of a degree moves its marks by four times as many pixels: 4.3 px against 1.1 px. One might expect the long lens to need a turn four times better. It does not, and the reason is that its parallax is four times larger in pixels too. A wrong turn moves every mark by about the focal length times the error. The step the pair is trying to read moves marks by about the focal length times the baseline over the distance. The error in the direction is the ratio of the two, and the focal length divides out.

The lens cancels: a wrong turn costs its size times the distance over the baseline36 cases: two arrangements, distances from 6 m to 48 m, turn errors of 0.03°, 0.1° and 0.3°, and at 24 m baselines of 15, 30 and 60 cm. The error the wrong turn adds to the direction (the given-turn error and the exact-turn error combined as a difference of squares) against the turn's error times the distance over the baseline. A line through the origin with slope 0.80 fits them, the worst 23% off it. The focal length does not appear.010203040010203040turn error × distance ÷ baseline (degrees)direction error the turn adds (degrees)large: lens lengthened · small: scene growsslope 0.80
Fig. 4 Thirty-six cases, at distances from 6 m to 48 m, turn errors from 0.03° to 0.3°, and at 24 m three baselines. The error a wrong turn adds to the direction, against the turn’s error times the distance over the baseline. The points lie close to a line through the origin, and the long lens (large dots) and the growing scene (small dots) fall together.

Measured, the added error is 0.80 of the turn’s error times the distance over the baseline, with the worst of thirty-six cases 23 per cent off that line. The small cases are the noisy ones, where the turn’s contribution is a fraction of a degree under the marks’ own error. A coefficient below one is plausibly what a random axis gives: part of any random turn is about the line of sight, and a roll of that kind turns marks about the middle of the picture rather than sliding them all one way, so it leans the direction less.

The rule is simple enough to use directly. At 24 m with a 30 cm baseline, distance over baseline is 80, so each tenth of a degree of turn error costs about six and a half degrees of direction. At 6 m it costs one and a half. Double the baseline and it costs half as much. The focal length does not appear.

How much turn a direction needs

The rule turns round into a budget: for a direction to be within a stated error, how well must the turn be known?

The turn a direction needs halves with every doubling of the distanceFor the lengthened lens and a 30 cm baseline, the largest error in the given turn that still leaves the direction within 2°, 5° and 10°, found by bisection, against distance. For 5°: 0.39° at 6 m, 0.19° at 12 m, 0.087° at 24 m, 0.031° at 48 m. For 2° at 48 m no turn is good enough: the marks alone already miss by more.10200.030.10.31distance to the scene (m)turn accuracy needed (degrees)within 2°within 5°within 10°lens lengthened, 30 cm baseline5° at 24 m: 0.09°
Fig. 5 For the long lens, the largest turn error that still leaves the direction within 2°, 5° and 10°, against distance, each found by bisection. Both axes are logarithmic. The lines fall with a slope near one: double the distance and the turn must be known twice as well.

For a direction within 5°, the turn must be known to 0.39° at 6 m, 0.19° at 12 m, 0.087° at 24 m and 0.031° at 48 m. Each doubling of the distance halves the budget, a little faster at the far end, where the marks’ own error is eating into what is left. For 2°, the budget is 0.15° at 6 m and 0.023° at 24 m, and at 48 m no turn is good enough, because even an exact one leaves the long lens at about 3°. For 10° the budget is a little over twice that for 5°: 0.20° at 24 m, 0.084° at 48 m.

Those are small angles. A tenth of a degree is 2.6 mm seen from a metre and a half, about the thickness of a coin held at arm’s length. And they are angles in the relative turn between two cameras, which is a stricter thing than the orientation of either. Two cameras on one rigid bar, calibrated once, carry a relative turn that may well be known to hundredths of a degree for as long as the bar does not flex. One camera that moved between two exposures needs its turn measured over that interval.

What the turn is worth, side by side

What the turn is worth at 24 mThe direction's median error at 24 m, 30 cm baseline, 30 marks read to 0.3 px, the short lens at 620 px and the long one at 2480 px on the same scene. short lens, turn unknown: 80.0°; long lens, turn unknown: 56.8°; short lens, turn to 0.1°: 19.3°; long lens, turn to 1°: 57.6°; long lens, turn to 0.3°: 15.0°; long lens, turn to 0.1°: 5.6°; long lens, turn to 0.01°: 1.6°; long lens, turn exact: 1.6°.short lens, turn unknown80.0°long lens, turn unknown56.8°short lens, turn to 0.1°19.3°long lens, turn to 1°57.6°long lens, turn to 0.3°15.0°long lens, turn to 0.1°5.6°long lens, turn to 0.01°1.6°long lens, turn exact1.6°24 m, median of 120 trials57° → 1.6°
Fig. 6 The direction’s median error at 24 m, over 120 trials, for the short lens and the long lens on the same fixed scene, with the turn unknown, given to stated accuracies, and given exactly.

At 24 m on one fixed scene, read in eight ways, the ranking is clear. Unknown turn: the short lens 80°, the long lens 57°, both close to the 90° that means nothing has been learned. Given to a degree, the long lens is no better than unknown. Given to a third of a degree, 15°. Given to a tenth, 5.6°, against 19.3° for the short lens given the same tenth. Given to a hundredth, 1.6°, the same as exact.

So the question the earlier essay left, how accurately the rotation must be known before a long lens beats a short one, has an answer with two parts. On the same distant scene the long lens beats the short lens at every turn accuracy better than about a degree, because the short lens on a shrinking scene has almost no parallax to work with and the long lens has four times as much. And the long lens beats its own unknown-turn reading only once the turn is known to better than about a degree at 24 m. Below a third of a degree it is clearly worth having, and below a few hundredths it has given everything it can.

What a sensor might supply

Whether an inexpensive inertial sensor delivers those accuracies was the third part of the question, and this essay can only partly answer it, because it measured a geometric model and not a sensor.

What can be said is what the budget asks for. For a pair taken by one camera moving between exposures, the turn wanted is the change in orientation over that interval. A gyroscope measures exactly that, by integrating its rate. Its error over a short interval is set by its noise and by its bias multiplied by the time, and the drift figures quoted for small consumer gyroscopes make hundredths of a degree over a second plausible. Over a minute the bias alone would usually be enough to spend the budget at 24 m. An absolute orientation from a phone’s fused sensors is a different thing: the tilt is held against gravity and is commonly quoted to a few tenths of a degree, and the heading, held against a magnetic field, to a degree or more. Those would leave the long lens at 24 m with fifteen degrees or worse.

The sensor also has to be aligned with the camera. A gyroscope that is known to a hundredth of a degree but mounted a quarter of a degree off the lens’s axis does not give the camera’s turn to a hundredth of a degree once the turn is large. None of this is tested here. The rule above says what accuracy each distance needs; whether a given device delivers it is a question for that device’s own measurements, made over the interval in question.

What this leaves of the earlier verdict

The earlier essay concluded that a lens spends more pixels on the same rays, and what fixes a direction is how far apart the rays are. That is now one half of a pair of statements. With the turn unknown, the spread of the rays decides, and the long lens cannot help. With the turn known, the parallax in pixels decides, and the long lens helps exactly as much as its pixels say. Which half applies depends on what else the pair knows, not on its optics.

It also restates where far enough away, a pair is one eye put the limit. The ratio of baseline to distance was the whole of the pair’s condition there, and it returns here as the price of the turn: every tenth of a degree of turn error costs about 0.8 of a tenth times the distance over the baseline. The long lens has changed what the pixels can do, and nothing about what the baseline is worth. How flat is flat enough and the range a pair cannot see past both describe the same ratio from the side of the scene. A pair that wants its direction at a long distance still needs either a longer baseline or a better turn, and a better lens does not substitute for either.

A turn about a random axis, and a plain estimate

The turn’s error is drawn about a uniformly random axis with a fixed size. A real sensor’s errors are not like that: a gyroscope’s are usually largest about one axis, and an absolute heading’s error is entirely about the vertical. Which axis matters was measured later and is the opposite of what this paragraph first guessed: for a step across the view, a turn wrong about the horizontal leans the direction most, about 1.03 times the error times distance over baseline, and one wrong about the vertical hardly at all, because a pan is the turn a sideways step imitates. A skyline gives a long lens its turn has the numbers. The random axis’s 0.8 is an average over the three. A budget for a particular sensor should use its own axes.

The step is read by a plain linear estimate with no weighting and no refinement, from 30 marks with equal, independent reading errors of 0.3 px. A refined estimate would lower every curve somewhat. Where the adjustment stops measured how far a full refinement brings marks read to a pixel, and found a floor at a third of a pixel set by the reading itself. It would not change the rule that a wrong turn costs its size times the distance over the baseline, because that comes from the geometry of the marks and not from how they are fitted.

The scene is the earlier essay’s slanted plane with relief, so the comparison between arrangements is the same one it made. And the medians at 96 m, where the parallax is under half a pixel, mostly measure noise.

Still open: whether a turn can be read off the picture itself

The given turn was taken from outside the pictures. A distant scene often carries part of it inside them. Marks far enough away to have no parallax, such as a skyline, a mountain ridge or a set of stars, move between two pictures by the turn alone, so a homography fitted to them is the turn, read to the precision of those marks. The question is how good a turn that gives, and whether it is good enough to spend the long lens’s parallax on the near marks.

The measurement that settles it puts a band of marks at a stated far distance behind the near scene, reads the turn from the far band alone, and passes that turn to the linear direction estimate on the near marks. It asks how far away the far band must be for its own parallax to stop biasing the turn; how many far marks it takes for their reading error, spread over the long lens’s narrow field, to meet the budgets above; and whether a long lens, whose narrow field reads a far band’s turn more finely in degrees, gains here what it lost in the essay before.

A skyline gives a long lens its turn takes that measurement: a far band’s own parallax reads as a pan along the baseline, the one wrong turn a sideways pair hardly feels, and a band ten times further than the scene leaves the long lens within a quarter of a degree of an exact turn.

A long lens’s parallax is real, and with the turn unknown a narrow view spends it explaining a turn. Given the turn, the pixels count in full. A wrong turn then costs its size times the distance over the baseline, and the focal length is not in that rule at all.

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.

BaselineConditioningDegeneracyerror propagationHomographyParallaxStereo pair