Many pictures at once

A skyline's pan is predicted by its own spread, not by a third picture

A band of far marks read as infinitely far hands a leaning step a pan of its sideways parallax, b cos φ over the band's distance, and the pan turns the step's direction. A third picture along the same track was supposed to read that distance from the ratio of two pans. It cannot: the pans of a 0.3 m and a 0.9 m step stay in one ratio, 3.05, for a band at 96 m and at 2.4 km, because a straight track's pairs are one pair at two sizes. The distance is already in the pair. A step toward the scene spreads the band's marks apart by its forward parallax, b sin φ over the same distance, and the ratio of the two is the step's own lean, which the scene's marks read. So the pan is predicted from the spread and taken out: exactly when marks are exact, and at 0.3 px from 4.2° to 2.1° at a 45° lean. What a further picture adds is length: the prediction's cost falls with the step, and the band's does not.

Worth reading first: Far enough away, a pair is one eye · Seven numbers no picture can name.

A skyline’s pan stops being harmless when the step turns toward the scene read the turn between two pictures off a band of far marks, a skyline or a row of distant roofs, as if the band were infinitely far. The band is not, so part of its parallax is read as turn. For a step straight across the view that part is a pan, and a pan is harmless there, because a skyline gives a long lens its turn exactly along the line a sideways step cannot measure anyway. Lean the step toward the scene by φ\varphi and the band’s error is still a pan, the sideways part of its parallax, bcos⁡φ/Db\cos\varphi/D for a step bb and a band at DD. What changes is the cost. Taking a wrong pan out shortens only the step’s sideways part, which turns a leaning step’s direction by (d/D)sin⁡φcos⁡φ(d/D)\sin\varphi\cos\varphi, with dd the scene’s distance: 2.9° at a 45° lean with a skyline ten times the scene’s distance.

Every remedy that essay found made DD larger. It closed on one that would not: a third picture, taken further along the same track. The band’s parallax across two different steps should be a measurement of DD that two pictures cannot make, since the two steps’ sideways parts are in a known ratio and the band’s pans must be in the same ratio. The questions were whether the two pans give the band’s distance back; how well, at 0.3 px; and whether, with DD read, the pan can be predicted and subtracted at every lean.

The answer to the first question is no, and the reason it is no shows where the distance actually is. It is in the pair already, in a number the earlier essay fitted and set aside.

The arrangement

The scene and the cameras are the earlier essay’s. A slanted scene of thirty marks 24 m away, a lens of 2,480 px, cameras aimed at the scene’s middle and stepped 0.3 m along a straight track leaning φ\varphi from across the view: φ=0\varphi = 0 is a sideways step, φ=90∘\varphi = 90^\circ a step straight at the scene. Behind the scene twelve far marks run across the upper part of the frame at a distance DD, 240 m unless stated, ten times the scene’s.

The turn is read off the band by least squares as if its marks were infinitely far, with one extra number fitted alongside: a radial scale, the band’s marks moving apart from the camera’s axis or together. The earlier essay added that number to absorb the forward part of the band’s parallax, which a turn alone would read as a tilt, and found that it worked and changed nothing that mattered at 0.3 px. The direction of the step is then read from the scene’s thirty marks with the turn the band gave.

Two pans in a ratio that carries nothing

Along one track the two pairs' pans stay in one ratio, 3.05, at every distance of the band, so their ratio carries no distance at allThree cameras on one straight track leaning 45° toward a scene 24 m away, the second 0.3 m and the third 0.9 m from the first, a band of twelve far marks read exactly. The pan each pair reads off the band is 0.1264° and 0.3859°, 0.0758° and 0.2315°, 0.0505° and 0.1544°, 0.0253° and 0.0772°, 0.0126° and 0.0386°, 0.0051° and 0.0154° for bands at 96, 160, 240, 480, 960, 2400 m: both fall as one over the distance, and their ratio is 3.054, 3.054, 3.054, 3.054, 3.054, 3.054, the ratio of the steps' sideways parts as each camera sees them, whatever the distance. The two pairs then read the same wrong direction, 4.57° and 4.65° off at 160 m.10030010000.0030.010.030.10.3band's distance (m)pan the band reports (°)pan, step of 0.3 mpan, step of 0.9 mthree pictures, one track at 45°marks read exactly
Fig. 1 Three cameras on one track leaning 45°, the second 0.3 m and the third 0.9 m from the first, every mark exact: the pan each pair reads off the band against the band’s distance, both on logarithmic scales.

Put a third camera on the track, 0.9 m from the first where the second is 0.3 m, and read the band from each pair. Every mark exact, the 0.3 m pair reads a pan of 0.126° from a band at 96 m and the 0.9 m pair 0.386°; at 240 m, 0.0505° and 0.154°; at 2.4 km, 0.0050° and 0.0154°. Both pans fall as one over the band’s distance. Their ratio is 3.054 at 96 m, 3.054 at 240 m and 3.054 at 2.4 km.

That is the whole of the answer, and it was in the premise. The two steps’ sideways parts are in a known ratio, and the band’s pans are in that same ratio, at every distance, because each pan is its step’s sideways part over DD, and DD divides out of a ratio. The ratio is a little over three rather than three exactly because each camera turns to keep the scene’s middle in view and sees its step from its own direction, but it does not move with the band. The pans would carry DD only if the steps’ lengths were known in metres, and then each pan alone would carry it: DD would be bcos⁡φb\cos\varphi over the pan, and no third picture would be needed.

The directions the two pairs read agree as well. With the band at 160 m, the 0.3 m pair reads the step’s direction 4.57° off and the 0.9 m pair 4.65° off: the same wrong direction, within the scene’s own geometry. A straight track’s pairs are one pair at two sizes, every angle the same and every length scaled, and a band read as infinite is the same mistake at both sizes. Three pictures along one line can only agree with each other about it.

So a third picture along the track gives back nothing a pair did not have. The premise was right that the ratio of two pans is fixed by the track; it was wrong that a fixed ratio could measure anything.

The distance is in the band’s spread

What does carry the band’s distance is the number the earlier fit added and found too small to matter.

A step toward the scene moves the camera closer to the band as well, by bsin⁡φb\sin\varphi. The band’s marks then spread apart from the point the camera moves toward, each by its angle from the middle times bsin⁡φ/Db\sin\varphi/D, and that spread is the radial scale the fit reads. The pan is the sideways part of the same parallax, bcos⁡φ/Db\cos\varphi/D. Their ratio is

bcos⁡φ/Dbsin⁡φ/D=cot⁡φ,\frac{b\cos\varphi/D}{b\sin\varphi/D} = \cot\varphi,

with bb and DD both gone. The ratio of the band’s pan to its spread is the step’s own lean, and the step’s lean is exactly what the pair reads from the scene: the sideways part of the read direction over its forward part. So the pan can be predicted from the spread without knowing DD or bb,

pan≈s txtz,\text{pan} \approx s\,\frac{t_x}{t_z},

where ss is the band’s radial scale and tx,tzt_x, t_z are the read direction’s sideways and forward parts. The pan is then taken out of the turn, the direction read again with the corrected turn, and the prediction repeated with the new direction, three times in all, since the first direction was read with the wrong pan and leans by the error being removed.

The band's radial flow is the forward part of its parallax and its pan the sideways part, so the pan can be predicted from the flow and taken out at every leanTwo cameras 0.3 m apart aimed at a scene 24 m away through a 2,480 px lens, the second stepped at an angle from across the view toward the scene, a band of twelve far marks 240 m away, every mark exact. The turn read off the band as if it were infinitely far, with a radial scale fitted alongside, leans the direction by 1.93° at 20°, 2.97° at 45° and 1.86° at 70° (dashed). The scale is the band's forward parallax, b·sin φ/D, and the pan is its sideways parallax, b·cos φ/D, so the pan is the scale times the read direction's sideways part over its forward part; predicted that way and taken out, three times over, the direction's error is 0.035°, 0.020° and 0.005° (solid). Across the view there is no forward part and nothing to predict from, and nothing to take out.01230153045607590step's lean from across the view toward the scene (°)direction's error, marks exact (°)band read as infinitepan predicted, taken outscene 24 m, band 240 mmarks read exactly
Fig. 2 Marks exact, a band at 240 m: the direction’s error against the step’s lean with the band read as infinite (dashed) and with its pan predicted from its spread and taken out (solid).

With every mark exact it works at every lean. Read as infinite, the band leans the direction by 1.93° at a 20° lean, 2.97° at 45° and 1.86° at 70°, the earlier essay’s law. With the pan predicted from the spread and taken out, by 0.035°, 0.020° and 0.006°: the band’s cost goes, and what is left is second order, the parts of the parallax a pan and a scale do not exactly describe. Straight across the view there is no forward part and no spread to predict from, but there is no cost to remove either, since a sideways step’s pan is the harmless one; straight toward the scene there is no pan.

So the answer to the third question is yes, and it does not need the second. The pan can be predicted and subtracted at every lean, from two pictures, without the band’s distance ever being read. The distance is not needed because what the pan depends on is not DD but b/Db/D, the band’s parallax, and the band’s spread measures exactly that in the other direction.

Read to 0.3 px, the spread is noisy

The spread is small. At a 45° lean with the band at 240 m it is 0.3×0.707/2400.3 \times 0.707/240, under a thousandth, and a mark at the band’s end, 290 px from the middle of the frame, moves by about a quarter of a pixel. Twelve marks read to 0.3 px in each picture read it with a noise about as large as itself. The predicted pan carries that noise, multiplied by the lean’s cotangent.

With marks read to 0.3 px and a band 240 m away, predicting the pan pays from a lean of about twenty degrees and costs below itThe same pair with every mark read to 0.3 px, medians over 120 trials, a band 240 m away. With the turn exact the direction's error is 1.46° across the view, 1.32° at 45° and 0.21° straight in. With the turn read off the band as if infinite: 1.67°, 2.87° at 20°, 4.19° at 45°, 1.99° at 75°. With the pan predicted from the band's radial flow and taken out: 2.92°, 3.05°, 2.14°, 0.95°. The prediction is the band's flow read from twelve marks, and multiplied by the step's sideways part over its forward part it carries that ratio's noise too, which is large when the step is mostly sideways.0240153045607590step's lean from across the view toward the scene (°)direction's median error (°)turn exactband read as infinitepan predicted, taken outband 240 m, marks to 0.3 px120 trials a point
Fig. 3 Marks read to 0.3 px, a band at 240 m, medians over 120 trials: the direction’s error against the step’s lean with the turn exact (dotted), the band read as infinite (dashed) and the pan predicted from the band’s spread (solid). The slider changes the band’s distance.

With the turn exact, the direction’s median error is 1.46° for a sideways step, 1.32° at a 45° lean and 0.21° straight in, the scene’s own floor. Read as infinite, the band leaves 1.67°, 2.87° at 20°, 4.19° at 45° and 1.99° at 75°. With the pan predicted and taken out: 2.92°, 3.05° at 20°, 2.14° at 45° and 0.95° at 75°.

The prediction pays from a lean of about twenty degrees, and above it the gain is large: at 45° it halves the error and brings it within 0.8° of the exact turn’s, at 60° and 75° it does better still. Below twenty degrees it costs. A step that is mostly sideways has almost no forward part, so its spread is almost nothing and is read as noise, and the cotangent multiplying it is large: at a 10° lean the prediction is 5.7 times the spread, and a spread read to its own size is a pan read to several times the one it was meant to remove. The plain reading costs little there, because the pan of a sideways step is the harmless one.

So a reader using the prediction should use it only when the read direction has a forward part, and the rule falls out of the measurement: take the pan out when the step leans more than about twenty degrees toward the scene, and leave it in when it leans less. The two regimes meet where both cost about the same.

The prediction does not care how far the skyline is

Predicted, the band's pan costs about the same at any distance; read as infinite it costs one over the distance, and the two cross near a kilometreA step leaning 45° toward a scene 24 m away, marks read to 0.3 px, medians over 120 trials, against the band's distance from 96 m to 2.4 km. With the turn exact the direction's error is 1.32°. Read as infinite, the band costs 9.38°, 4.19°, 2.62°, 1.89°, 1.54°; with its pan predicted from its radial flow and taken out, 2.39°, 2.14°, 2.03°, 1.99°, 1.96°. The prediction's cost is the noise in the band's flow, which does not depend on the band's distance; the plain reading's cost is the band's parallax, which does.100300100002.5057.5010band's distance (m)direction's median error (°)turn exactband read as infinitepan predicted, taken outstep leaning 45°, 0.3 mmarks to 0.3 px
Fig. 4 A step leaning 45°, marks read to 0.3 px: the direction’s median error against the band’s distance with the turn exact, the band read as infinite, and its pan predicted from its spread.

The two costs depend on the band’s distance in opposite ways. Read as infinite, the band costs its parallax, which falls as one over its distance: 9.38° at 96 m, 4.19° at 240 m, 2.62° at 480 m, 1.89° at 960 m and 1.54° at 2.4 km, approaching the exact turn’s 1.32°. With the pan predicted, the cost is the noise in the band’s spread multiplied by the lean, and both the spread and the pan fall with distance together, so their ratio is read with the same relative noise wherever the band is: 2.39°, 2.14°, 2.04°, 1.99° and 1.96°.

The two cross near a kilometre, about forty times the scene’s distance. A skyline nearer than that is better read with its pan predicted, and much better when it is near: a band of roofs at 96 m costs a 45° step 9.4° read as infinite and 2.4° with its pan predicted. A skyline further than that is better read as infinite, because its pan is already smaller than the noise its spread would add. The earlier essay’s rule, keep the band far, is right beyond a kilometre; within it the band’s own spread is the better remedy, and it is the one available indoors and in streets, where the far marks are seldom far.

What a further picture is good for

The third picture did not measure the distance. It does do something, and the measurement says what.

A further picture on the track helps by being further: the predicted pan's cost falls with the step and the plain reading's does notThe step leaning 45°, a band 240 m away, marks read to 0.3 px, medians over 120 trials; the first picture paired with one taken further along the same track, 0.30 m, 0.45 m, 0.60 m, 0.90 m, 1.50 m from it. With the turn exact the direction's error is 1.32°, 0.73°, 0.51°, 0.32°, 0.18°; read as infinite, the band leaves 4.19°, 3.48°, 3.26°, 3.13°, 3.11°, its own (d/D)·sin φ·cos φ whatever the step; with the pan predicted and taken out, 2.14°, 1.31°, 0.90°, 0.63°, 0.37°, falling as the step grows because the band's radial flow grows with it while its reading error does not.02400.50011.50step between the two pictures compared (m)direction's median error (°)turn exactband read as infinitepan predicted, taken outstep leaning 45°, band 240 mmarks to 0.3 px
Fig. 5 A step leaning 45°, a band at 240 m, marks read to 0.3 px: the first picture paired with one taken further along the same track, from 0.3 m to 1.5 m away, with the turn exact, the band read as infinite, and its pan predicted from its spread.

Pair the first picture with one taken further along the track and every reading changes except the band’s. With the turn exact, the direction’s error falls with the step, from 1.32° at 0.3 m to 0.51° at 0.6 m, 0.32° at 0.9 m and 0.18° at 1.5 m, since the scene’s parallax grows with the step and its reading error does not. Read as infinite, the band costs 4.19°, 3.26°, 3.13° and 3.11°: once the scene’s own noise is gone, what is left is the band’s (d/D)sin⁡φcos⁡φ(d/D)\sin\varphi\cos\varphi, which does not depend on the step at all. With the pan predicted: 2.14°, 0.90°, 0.63° and 0.37°, falling with the step as the exact turn does, because the band’s spread grows with the step and its reading error does not.

That is the third picture’s use, and it is the opposite of the one proposed. It does not measure the band’s distance through a ratio; it lengthens the step, and a longer step makes the band’s spread large enough to read. At 1.5 m the predicted pan is within 0.2° of an exact turn, where the plain reading stays 3.1° off however long the step becomes. A photographer, a vehicle or a drone with several pictures along its path should read each pan from the longest pair available, not from neighbours.

The same reasoning says what a finer reading buys. Read to 0.1 px instead of 0.3 at the 0.3 m step, the band’s spread is read three times as finely, and the predicted pan leaves 0.75° at 45° against an exact turn’s 0.35° and a plain reading’s 3.11°. Forty-eight far marks instead of twelve help less, 1.85° against 2.14°, because the spread is read best from the marks furthest from the middle and adding marks across the same band adds few of those.

What this rests on

The band is at one distance. The pan and the spread are then the same parallax, b/Db/D, and their ratio is exactly the lean’s cotangent. A real skyline has marks at different distances. Its pan is the sideways step over an average of those distances weighted one way, and its spread the forward step over an average weighted another, by each mark’s distance from the frame’s middle, and the two averages differ. The prediction then leaves a residue, which is unmeasured here.

The track is straight and the cameras aim at the scene. A track that turns between pictures makes the pairs different shapes rather than one shape at different sizes, and the pans’ ratio then does depend on something; a scale chain leans rather than wanders is the sequence that would pick it up. Along a straight track the plain reading’s error is the same at every pair and always toward the scene, the steady lean that closing a loop mends its ends and a chain and an adjustment can take out afterwards with one number; the predicted pan removes it pair by pair instead, which a track that never closes needs.

The lens and its calibration are known. The spread is read as a scale about the camera’s axis, which needs the axis’s place in the picture. A principal point read wrong by a few pixels turns part of the spread into a shift, which the turn absorbs, and the prediction would lose that part.

The scene’s own marks are the earlier essay’s. The read direction’s sideways and forward parts come from thirty marks on a slanted plane, which the spread a point gets would say are pinned best in the middle; a scene with more depth would read the lean better and the prediction with it.

Where the confusion goes

A given turn spends the long lens’s parallax found that a long lens confuses a small pan with a small sideways step, and a longer lens buys parallax and not the direction that no lens escapes it. The skyline essays found that a band’s error lies along that confusion, harmless for a sideways step and turning a leaning one. This one finds that the band is not only the source of the error but a measurement of it: the same parallax that leaks into the turn as a pan shows in the band’s marks as a spread, and the step’s own lean converts one into the other. A far band is never quite one eye, which far enough away, a pair is one eye took as its limit; the amount by which it is not is readable, and readable in the pictures it was failing in.

Still open: whether a skyline at many distances can still predict its own pan

Everything here put the band’s twelve marks at one distance, so its pan and its spread were the same parallax read two ways. A real skyline is a church tower at 300 m, a ridge at 2 km and a mast at 600 m, and each mark’s parallax is different.

The measurement that settles it spreads the band’s marks over a range of distances, from a factor of two to a factor of twenty between nearest and furthest, and asks how far the pan predicted from the spread then misses the pan the band actually hands on, since the spread weights the marks far from the middle and the pan weights them all; whether a reader who fits each mark its own parallax, which the turn and the step’s lean then fix, recovers the prediction; and whether the marks’ differences are themselves the measurement of the band’s depth that the third picture was meant to make, read from a single pair.

A band of far marks read as infinitely far hands a leaning step a pan of its sideways parallax, and the pan turns the step’s direction. A third picture on the same track cannot read the band’s distance from the ratio of two pans: a 0.3 m and a 0.9 m step’s pans stay at 3.05 to one from 96 m to 2.4 km, because a straight track’s pairs are one pair at two sizes. The distance is already in the pair. The band’s marks spread apart by its forward parallax, and the ratio of pan to spread is the step’s own lean, which the scene reads; predicted from the spread and taken out, the pan’s cost goes entirely with exact marks, and at 0.3 px falls from 4.2° to 2.1° at a 45° lean. The prediction pays above a lean of about twenty degrees and for skylines nearer than about a kilometre. A further picture helps by lengthening the step: with 1.5 m between the pictures compared the predicted pan leaves 0.37° where reading the band as infinite leaves 3.1°.

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 propagationParallaxStereo pair