Many pictures at once

A skyline gives a long lens its turn

A long lens reads the direction between two cameras well only if the turn between them is given, and a band of marks far behind the scene gives it from the pictures themselves. The band's own parallax makes the turn wrong by the baseline over its distance — 0.18° for a band at 96 m — but the error is a pan along the baseline, the one wrong turn a direction hardly feels: 0.27° of direction where a random turn that size would cost 11.5°. A band ten times further than the scene leaves the long lens 1.83° against 1.60° with the turn exact and 57° with it unknown.

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

A given turn spends the long lens’s parallax settled what a long lens on a distant scene can do for a pair of cameras. Two cameras 0.3 m apart, both aimed at a slanted scene 24 m away through a 2,480 px lens, read the direction between them from thirty marks to a median error of 57° when the turn between the cameras is unknown. That is nearly nothing. Given the turn exactly, they read it to 1.60°. The difference is that a narrow view cannot tell a small turn from a small step sideways, and once the turn is known there is nothing left to confuse the step with. The price was a budget: a turn given wrongly by some angle costs about 0.8 of that angle times the distance over the baseline, so at 24 m a tenth of a degree of turn error costs six and a half degrees of direction.

The essay took the turn from outside the pictures, from a sensor or a calibration, and ended on the place a picture might supply it. Marks far enough away have no parallax, so they move between the two pictures by the turn alone, and a turn fitted to them is the turn. A skyline, a ridge or a row of distant roofs is a band of such marks, and many pictures of a near scene have one behind it.

Nothing is infinitely far, though. A band at a finite distance has a little parallax of its own, which a fit that assumes none will read as part of the turn. By the budget, a turn error of the baseline over the band’s distance, 0.3 m over 100 m, about 0.17°, ought to cost more than ten degrees of direction. It costs a quarter of one, and the reason is the same confusion that made the unknown turn so expensive.

The scene and the skyline in one picture

The arrangement is the earlier one exactly. Two cameras 0.3 m apart are both aimed at the middle of a slanted scene of thirty marks 24 m away, through a 2,480 px lens lengthened to keep the scene filling the frame. Every mark is read to 0.3 px. Added to it is a band of twelve marks across the top of the frame, at a stated distance, also read to 0.3 px.

A skyline moves between the two pictures by the turn and its own small parallaxThe left picture of a pair 0.3 m apart, through a 2,480 px lens, both cameras aimed at the middle of a slanted scene 24 m away, drawn at 0.9 of its pixels. The 22 of the scene's thirty marks that fall inside the frame (lower), and a band of twelve far marks 240 m away across the top of the frame, a skyline. Each mark's arrow is how far it moves to its place in the right picture, drawn true. The cameras converge on the scene, so its marks move by 0.2 px on average; the band moves by 28.1 px, which is the turn between the cameras, 0.72° or 31.0 px, less the band's own parallax of 3.1 px. A turn fitted to the band takes that parallax for part of the turn.far band, 240 mscene, 24 mleft picture, 2,480 px lensscene 0.2 px · band 28.1 px
Fig. 1 The left picture through the 2,480 px lens, the scene’s marks below and a band of twelve far marks 240 m away across the top. Each arrow is how far the mark moves into the right picture, drawn true. The cameras converge on the scene, so its marks barely move; the band moves 28.1 px, which is the turn between the cameras, 0.72° or 31.0 px, less its own parallax of 3.1 px.

The two cameras converge on the scene, so the scene’s marks move by a fraction of a pixel between the pictures and the band moves by 28.1 px. Almost all of that is the turn between the cameras, 0.72° or 31.0 px through this lens. The rest, 3.1 px the other way, is the band’s own parallax at 240 m. A turn fitted to the band cannot tell the two apart and takes all of it for turn.

The turn is fitted to the band’s normalised rays by least squares, assuming the marks are infinitely far, and handed to the same linear reading of the direction the earlier essay used. Each figure below is the median over two hundred trials, with the scene’s reading errors held the same from one band to the next so that only the band changes.

A band ten times further away is nearly as good as the turn itself

Read off a far band, the turn costs the long lens only the parallax the band itself hasA pair 0.3 m apart with a 2,480 px lens on a scene 24 m away, 30 marks read to 0.3 px, the direction between the cameras read with the turn given. Given exactly, the median error is 1.60° (dashed); with the turn unknown it is 57° (dotted). Read off a band of twelve far marks, also read to 0.3 px, it is 3.93° with the band at twice the scene's distance, 2.24° at four times, 1.83° at ten, 1.68° at forty and 1.63° at infinity. A band ten times further than the scene gives the long lens nearly all the turn is worth.3103010025102050band's distance, as a multiple of the scene'sdirection's error, median (degrees)turn off the bandturn exactturn unknownlong lens, scene at 24 mband at 10×: 1.83°
Fig. 2 The direction’s median error at 24 m against the band’s distance, as a multiple of the scene’s. With the turn exact, 1.60° (dashed); with it unknown, 57° (dotted). Read off the band: 3.93° at twice the scene’s distance, 2.24° at four times, 1.83° at ten, 1.68° at forty, 1.63° at infinity.

With the turn read off the band, the long lens’s error is 3.93° when the band is twice as far as the scene, 2.24° at four times, 1.83° at ten times, 1.68° at forty times, and 1.63° with the band at infinity. With the turn given exactly it was 1.60°, and with it unknown, 57°. A skyline at 240 m behind a scene at 24 m brings the long lens to within a quarter of a degree of an exact turn, with no instrument and no calibration, and a skyline at a kilometre to within a tenth.

That is the first answer to the question the earlier essay left: the turn can be read off the picture, and well. The rest of the essay is about why it works as well as it does, since the budget said it should not.

The band’s error is the one a direction hardly feels

Take the reading noise away entirely, so that only the band’s distance is wrong, and look at the turn the band reports and at what it does to the direction.

The band's own parallax reads as a pan along the baseline, the one wrong turn a direction hardly feelsWith every mark exact, so that only the band's distance is wrong: the turn the band reads (solid), which is a pan of the baseline over the band's distance, 0.178° at 96 m, of which 100.0% is about the vertical; the error that turn puts into the direction (heavy), 0.274° at 96 m; and what a turn error of the same size about a random axis would cost by the rule found for a given turn, 0.8 of its size times distance over baseline (dashed), 11.5° at 96 m. The band's error is in the direction the step itself moves the marks, so it is taken up by the length of the step, which a pair never knew.10030010000.010.1110distance of the far band (m)degreesa random turn that sizethe band's turn, a panits cost to the directionevery mark exact, scene at 24 m96 m: 0.27° against 11.5°
Fig. 3 With every mark exact: the turn the band reads (solid), a pan of the baseline over its distance, 0.178° at 96 m, entirely about the vertical; the error it puts into the direction (heavy), 0.274° at 96 m; and what a turn error that size about a random axis would cost by the given-turn rule (dashed), 11.5°.

The turn a band at 96 m reports is wrong by 0.178°, which is the baseline over the band’s distance, 0.3/96 radians, to three figures. All of the error is about the vertical axis: it is a pan. With every other reading exact, that wrong turn puts 0.274° of error into the direction. The given-turn rule, for a turn error of the same size about a random axis, predicts 11.5°. From a band at 48 m to one at 2.4 km, the band’s error costs the direction between twenty-five and sixty times less than the rule says.

The reason is the confusion that made the unknown turn so costly in the first place. A longer lens buys parallax and not the direction found that through a narrow field a small pan and a small sideways step slide the marks across the picture almost identically. With the turn unknown, the pair could not tell how much of what it saw was step and how much was turn. That was the whole of its failure.

The band’s parallax is a sideways step seen from far away: it moves the far marks sideways, in the direction the step moves everything. The fit reads it as a pan of the same size, because through a narrow field that is the pan the step looks like. So the error the band hands on is a pan exactly along the line of confusion, and along that line a wrong turn and a step are the same thing. When the wrong pan is subtracted, the near marks look as though the step were shorter. The step’s direction is untouched, and its length was never known: a pair of pictures cannot measure the length of its own baseline. The band errs only in the one direction a pair could not have measured anyway.

The rule from the given turn, 0.8 of the error times distance over baseline, is an average over random axes, and it was always dominated by the axes that do not lie along the step. A tilt about the horizontal moves the marks vertically, and a pair stepping sideways reads that as a step with a vertical part, which changes the direction. A pan along the step does not. A sensor’s error falls on all three axes. A band’s error falls on one, and it is the harmless one.

Which axis a turn is wrong about

That explanation makes a prediction about any wrong turn, not only a band’s. If a pan is harmless because a sideways step imitates it, then a sensor whose turn is wrong about the vertical should cost the direction almost nothing, and one wrong about the horizontal should cost it most. The earlier essay expected the opposite. It reasoned that a heading error, which is entirely about the vertical, would lean the direction more than a random one, and it did not measure each axis separately. Measured, one axis at a time with every mark exact:

For a step across the view, a wrong tilt costs the direction most and a wrong pan almost nothingThe pair at 24 m with the 2,480 px lens and every mark exact, the turn given wrongly by a stated angle about one of the camera's axes at a time. A tenth of a degree of tilt leans the direction 8.25°, of roll 0.48°, of pan 0.07°. The rule for a turn wrong about a random axis, 0.8 of its size times distance over baseline (dotted), gives 6.4°: it is an average over axes that cost very differently. A pan is the turn a sideways step imitates, so its error is taken up by the step's length.0.010.030.10.310.010.1110100the turn's error (degrees)direction's error, exact marks (degrees)tilt, about the horizontalroll, about the line of sightpan, about the verticalrandom axis, the rulea step across the view, exact marks0.1°: tilt 8.3°, pan 0.07°
Fig. 4 The pair at 24 m with every mark exact, the turn given wrongly about one of the camera’s axes at a time. A tenth of a degree of tilt leans the direction 8.25°, of roll 0.48°, of pan 0.07°. The rule for a random axis (dotted) gives 6.4°, an average over axes that cost very differently.

A tenth of a degree of tilt, the turn about the horizontal across the view, leans the direction by 8.25°. The same error in roll, about the line of sight, leans it 0.48°, and in pan, about the vertical, 0.07°. The rule of 0.8 times the error times the distance over the baseline, 6.4° here, is an average over a random axis. It is almost entirely the tilt’s contribution, which on its own runs at about 1.03 times the error times distance over baseline. A tilt moves every mark vertically, and a pair stepping sideways can only explain that as a step with a vertical part. A pan moves every mark sideways, and the step already does that.

That changes the sensor arithmetic the earlier essay sketched. A phone’s heading, held against a magnetic field and quoted to a degree or more, is an error about the vertical. For a pair stepping sideways it is the harmless axis, and a degree of heading error costs less than a degree of direction. The tilt, held against gravity and quoted to a few tenths of a degree, is the axis that costs most. A few tenths of tilt at 24 m is twenty degrees or more of direction. A budget for a sensor should be split by axis, and for a sideways pair nearly all of it belongs to the tilt.

The skyline’s own error falls on the cheap axis, and its reading noise is a few thousandths of a degree in tilt. That is why it does so much better than a sensor whose errors are larger and fall where they cost most.

What the band does cost

The band’s error is not free. With every reading exact, it costs a fraction of a degree. With the readings at 0.3 px, a band at twice the scene’s distance more than doubles the direction’s error. That comes from what the subtracted pan does to the near marks.

What the band costs depends on its distance over the scene's, at every rangeThe direction's median error with the turn read off a band of twelve far marks, as a multiple of its error with the turn exact, against how many times further the band is than the scene, for scenes at 12, 24 and 48 m under a lens lengthened in proportion. At four times: 1.48× (12 m), 1.40× (24 m), 1.55× (48 m). At ten: 1.19×, 1.15×, 1.15×. At forty: 1.06×, 1.05×, 1.03×. The cost is set by the ratio of the two distances, and the band costs more than the parallax it removes, which is one over one minus the ratio, at the nearest bands.310301001×2×3×band's distance, as a multiple of the scene'serror over the exact turn'sscene at 12 mscene at 24 mscene at 48 m1 / (1 − ratio)lens lengthened with the distance10×: 1.15× at 24 m
Fig. 5 The direction’s error with the turn read off the band, over its error with the turn exact, against the band’s distance as a multiple of the scene’s, for scenes at 12, 24 and 48 m. At four times: 1.48×, 1.40× and 1.55×. At ten: 1.19×, 1.15× and 1.15×. At forty: 1.06×, 1.05× and 1.03×. Dashed, the share of parallax the band removes, 1/(1 − ratio).

Subtracting the band’s parallax as if it were turn leaves each near mark with its parallax relative to the band rather than to infinity. A mark at 24 m read against a band at 96 m keeps three quarters of its parallax. The pair is reading the same direction from a smaller signal, under the same reading noise, and its error grows. If that were all, the error would rise by the reciprocal of the share kept, 1/(1 − d/D): 1.33 times for a band at four times the scene’s distance, 1.11 at ten, 1.03 at forty.

Measured, it rises a little more than that at the nearest bands and agrees at the furthest. At four times it is 1.40× for the scene at 24 m, 1.48× at 12 m and 1.55× at 48 m. At ten times it is 1.15 to 1.19×, at forty 1.03 to 1.06×. Those three ranges sit on one curve, so what matters is the ratio of the two distances, not either one. The extra cost at the nearest bands is not explained here. A turn fitted to a band in one part of the frame is not exactly the uniform shift the step produces across the whole frame, and a band at twice the scene’s distance is near enough for that difference to show. Past ten times the ratio, the share-of-parallax estimate is within a few per cent.

That gives a rule that needs no simulation. A band k times further than the scene costs about the share of parallax it takes, one over one minus one over k, and a little more when k is small. A skyline at ten times the scene’s distance costs about an eighth of the direction’s accuracy. At forty times it costs nothing worth measuring.

A few marks, read by either lens

The earlier essay asked 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. It does read the band more finely, about one axis.

The long lens reads the band's pan four times finer and its roll no better, and neither mattersA band at infinity, its marks read to 0.3 px, the scene at 24 m. The rms error of the turn read off the band, about the vertical (pan) and about the line of sight (roll), against the number of far marks, for the 2,480 px lens and a 620 px lens on the same scene. Pan: 0.0028° against 0.0103° with twelve marks, the ratio of the focal lengths. Roll: 0.033° against 0.033°, the same, since roll is read across the frame and the frame is the same number of pixels. Neither reaches the direction: with as few as two far marks the median error is at most 1.07 times the exact turn's for the long lens and 1.05 for the short.2510200.0020.0050.010.020.05far marks in the bandturn's error, rms (degrees)pan, long lenspan, short lensroll, long lensroll, short lensband at infinity, marks to 0.3 pxdirection: at most 1.07× exact
Fig. 6 A band at infinity read to 0.3 px, the scene at 24 m: the turn’s rms error about the vertical (pan) and about the line of sight (roll), against the count of far marks, for the 2,480 px lens and a 620 px lens. With twelve marks, pan 0.0028° against 0.0103°; roll 0.033° against 0.033°. With as few as two marks, the direction’s error is at most 1.07 times the exact turn’s.

With twelve far marks read to 0.3 px, the long lens reads the pan to 0.0028° and the 620 px lens to 0.0103°. That is the ratio of their focal lengths, since a pixel through the long lens is a quarter of the angle. The roll, the turn about the line of sight, is read to 0.033° by both. Roll is read from how marks at opposite sides of the frame move up and down against each other, and that is measured across the frame in pixels. Both lenses have the same 690 px frame.

None of this reaches the direction. With as few as two far marks, the long lens’s median error with the band at infinity is at most 1.07 times its error with the turn exact, and the short lens’s at most 1.05 times. The given-turn budget at 24 m asked for the turn to within 0.087° for a direction within five degrees. The band delivers pan and tilt to thousandths. Its roll error, about twelve times larger, is about the line of sight, and a roll leans the direction least of the three. So the long lens’s finer reading of the band is real and is not needed. Its gain here is the one the earlier essay promised. Given the turn, it reads the direction as its parallax in pixels says, and a skyline in its own frame is enough to give it the turn.

Where the skyline has to be

The practical reading is short. A pair photographing a scene at some distance with a long lens can read the turn between its cameras from anything in the same frames that lies much further off: a ridge, a skyline, a far facade, stars at night. It needs only a few such marks, and their reading error is negligible against the scene’s. Their distance does matter, and as a ratio. A band at ten times the scene’s distance costs an eighth of the accuracy, and one at twice the distance costs half or more. The band does not have to be at infinity, and its distance does not have to be known: the error its finite distance introduces is a pan, which the step absorbs. What the band has to be is far, relative to the scene.

That is also the condition under which a long lens is used at all. The narrow field that makes the long lens confuse a turn with a step is a field aimed at something distant, and what lies behind a distant scene is usually more distant still. The arrangement that creates the problem tends to contain its remedy.

What this rests on

The band is in both pictures and its marks are matched. A skyline is often low in contrast and repetitive, and a matcher can pair the wrong roof with the wrong roof. One mismatched far mark, read as a mark 31 px off, is a large turn error on whatever axis it happens to fall. That is not tested here, and a robust fit over the band would be the first thing to add in practice.

The band is at one distance. A real skyline has depth, and its nearer parts carry more parallax than its further ones. The pan the band reads would then be an average over the band’s inverse distances, and nothing here suggests the average behaves differently from a single distance. A band whose depth varies across the frame, such as a nearer hill on the left and a further one on the right, would add a little roll, and that is not measured.

The cameras differ by a turn and a sideways step. The step is level and across the view, as in the earlier essays. A step with a forward part makes the band’s parallax point away from the middle of the frame rather than sideways, which is no longer a pan. Its error would no longer lie along the line of confusion, and the saving above would shrink.

The direction is read by the earlier plain linear estimate, from thirty marks with independent errors.

Still open: a step that is not across the view

Everything here steps the second camera sideways, across the line of sight, and the band’s error came out as a pan exactly because the band’s parallax pointed the way the step did. A camera that moves partly toward the scene, a vehicle driving a little to one side of straight ahead or a drone descending as it crosses, moves the band’s marks away from the middle of the frame as well as sideways. A fit that assumes the band has no parallax then reads that radial part as turn too, and through a narrow field a radial flow looks like no turn at all: it is a change of scale.

The measurement that settles what that costs steps the second camera at a stated angle between across the view and straight toward the scene, reads the turn off a band at a stated multiple of the scene’s distance, and asks whether the band’s turn error stays along the line of confusion or acquires a tilt or roll that the direction feels. It asks at what angle of step that saving is lost, and whether, for a step mostly toward the scene, the band’s radial parallax can be fitted as a scale alongside the turn, reading the step’s forward part from the far marks rather than spending the near ones on it.

A skyline’s pan stops being harmless when the step turns toward the scene takes that measurement: the band’s error stays a pan at every lean, and what changes is its cost, which turns the step’s direction by the scene’s distance over the band’s times sin φ cos φ.

A far band moves between two pictures by the turn and its own small parallax. A fit reads both as turn, but the parallax lies along the one line a pair could never measure, the length of its step. So a skyline gives a long lens its turn, at the cost of the parallax the skyline itself has.

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