Through water and glass

A pair over a ripple wobbles in depth, by the sea's curvature

Two eyes looking down through a rippled surface at one stone each see it wobble sideways by the bending factor, 1.3 mm for a stone 0.3 m down under a 1° sea. Close together they share that wobble almost exactly, and the pair puts the stone just as far aside as one eye does. What they do not share is a depth: a pair 65 mm apart puts the stone 43 mm too near or too far, rms, and closing the eyes up does not remove it. Each patch of surface is curved, a curved patch is a weak lens, and the lens moves the stone along the line of sight by D²κ(n − 1)/n.

Worth reading first: The sky inside a cone · Depth is a reciprocal.

A stone under a ripple wobbles by the bending factor looked down through a moving surface at a stone on the bottom of a stream. Each patch of surface the eye looks through is tilted, a tilted patch bends the line of sight, and the stone’s picture moves. Seen from above, a ray crosses the surface near its normal, where a tilt of ss turns it by s(n−1)/ns(n-1)/n, a quarter of the tilt for water. So a stone at depth DD under a sea of rms slope σ\sigma wobbles by D σ (n−1)/nD\,\sigma\,(n - 1)/n, which the tracing confirmed until the sea grew steep enough to show the stone more than once.

All of that was one eye. Two eyes, or a stereo pair of cameras above a stream, look at the same stone through two different patches of the surface. The stick a stereo pair puts back had used such a pair to recover a stick through calm water, and calm water gives every patch the same tilt. That essay’s open question was what a moving surface does to the pair. How does the wobble of the disparity between the two pictures compare with each eye’s own wobble? At what baseline, against the sea’s wavelengths, do the two eyes’ wobbles stop being correlated, and the depth read from the pair start to wobble more than the place read from either? And does a pair whose baseline is short against the sea’s crests see a stone that wobbles sideways and holds still in depth?

The last question expected the answer yes, and the measurement says the reverse. A pair with its eyes close together shares the sideways wobble almost perfectly and places the stone across the view no better and no worse than one eye. What it cannot share is a depth, and the stone’s depth wobbles thirty to forty times as much as its place, by an amount that does not fall as the eyes close in. The reason is the surface’s curvature, which a single eye’s sideways reading never saw.

Two eyes and one sea

The arrangement continues the single eye’s. A seeded sea is a sum of forty sinusoids with wavelengths from 2 cm to 50 cm, the same slope in each, scaled here to an rms slope of 1°, a gentle ripple on a stream. Moving along it is the same as letting time pass. A stone lies on a flat bottom 0.3 m below the mean surface. Two eyes stand 1.5 m above the surface, level, a stated distance apart, with the stone below their midpoint.

At each moment each eye does what the single eye did. Every point of the surface sends that eye’s line of sight down to some place on the bottom, bent at the slope it meets there; where a line reaches the stone the eye sees an image of it, and the stone’s apparent place is the brightness-weighted mean of its images. The pair then reads the stone the way a stereo pair calibrated on calm water would. Each eye’s line of sight is carried into the water as calm water would carry it, through the point of the surface it crossed and on towards the place on the bottom it reads, and the two lines are intersected. On calm water this returns the stone exactly.

Two eyes 30 cm apart look down at one stone through different patches of the same seaA vertical section through the water, stretched sideways about nine times and with the sea's height drawn twenty times true: two eyes 1.5 m above the mean surface and 30 cm apart (off the top of the frame) look down at a stone 0.3 m below the surface, through one moment of a sea whose rms slope is 1°. Each eye's line of sight reaches the stone through its own patch of surface, about 4 cm from the other's, and each patch is tilted and curved in its own way. This moment the left eye's reading is 1.79 mm off the stone's place and the right eye's 0.51 mm; their lines of sight, carried down as calm water would carry them, cross 0.6 mm to the side and 18 mm below the stone (open dot). The slider moves the sea on.from the left eyefrom the right eyestone, 0.3 m down1° sea, height ×20, width ×9this moment: -0.6 mm aside, 18 mm in depth
Fig. 1 A section through the water, stretched sideways, with the sea’s height drawn twenty times true: two eyes 30 cm apart look down at a stone 0.3 m deep through one moment of a 1° sea. The open dot is where the pair puts the stone that moment. The slider moves the sea on.

Each eye’s line of sight reaches the stone through its own patch of surface, about an eighth of the distance between the eyes away from the other’s, since the lines converge on the stone. Each patch has its own tilt and its own curvature. In the moment drawn, with the eyes 30 cm apart, the two eyes’ readings are 1.8 mm and 0.5 mm off the stone’s place, on opposite sides, and their lines of sight cross 0.6 mm to the side of the stone and 18 mm below it.

Close together, the eyes share the sideways wobble

Every quantity is measured over 160 moments of the sea and quoted as an rms.

Two eyes close together share the sideways wobble and are left with a wobble in depthA stone 0.3 m down under a 1° sea, seen by two eyes 1.5 m above the surface, rms over 160 moments, against the distance between the eyes. Each eye's picture wobbles by about 1.3 mm sideways whatever the distance. Their difference falls in proportion to the distance below about 3 cm, 0.11 mm at 5 mm, and levels at about 2.4 mm once the eyes look through unrelated patches. The pair's triangulated stone wobbles sideways by 1.2 mm at 65 mm, but in depth by 43 mm, and as the eyes close in the depth wobble does not vanish: it levels at 51 mm. Further apart it falls as one over the distance, 4.6 mm at 1.2 m.103010030010000.10.3131030distance between the eyes (mm)wobble, rms (mm)each eye, sidewaystheir differencethe pair, sidewaysthe pair, in depth1° sea, stone 0.3 m down65 mm: 43 mm in depth
Fig. 2 Against the distance between the eyes: each eye’s own sideways wobble, the wobble of their difference, and the triangulated stone’s wobble sideways and in depth, for a stone 0.3 m down under a 1° sea. Both axes are logarithmic.

Each eye’s own picture wobbles by 1.32 mm, whatever the distance between them. That is the single eye’s law, D σ (n−1)/nD\,\sigma\,(n-1)/n giving 1.31 mm for this stone and sea, and it is the first answer: each eye is still the eye of the earlier essay.

Their difference is another matter. With the eyes 5 mm apart it is 0.11 mm, a twelfth of either eye’s wobble, and it grows in proportion to the distance: 0.21 mm at 10 mm, 0.63 mm at 3 cm. Two eyes close together look through patches of surface a fraction of a millimetre apart, which tilt together, and both pictures move together. Further apart the difference stops growing and levels at about 2 mm, the size of two independent wobbles combined, 2\sqrt 2 times one. So the disparity’s wobble is small against each eye’s when the eyes are close, and larger than each eye’s once they are far enough apart to see unrelated patches.

How far apart is far enough depends on the sea’s shortest waves.

Two eyes stop sharing the wobble when their patches of sea are a short ripple apartHow alike the two eyes' sideways wobbles are, as a correlation, against the distance between the eyes, for a 1° sea whose shortest waves are 2 cm (solid), 5 cm (dashed) and 10 cm (dotted) long. At the surface the two lines of sight are about an eighth of the eyes' distance apart. With 2 cm ripples the correlation is 0.99 at 10 mm, 0.59 at 65 mm and near zero by 30 cm. Without ripples shorter than 10 cm it is still 0.95 at 65 mm.1030100300-0.50000.5001distance between the eyes (mm)correlation of the two eyes' wobblesshortest waves 2 cmshortest waves 5 cmshortest waves 10 cm1° sea, stone 0.3 m down65 mm: 0.59
Fig. 3 How alike the two eyes’ sideways wobbles are, as a correlation, against the distance between the eyes, for a 1° sea whose shortest waves are 2 cm, 5 cm and 10 cm long. The horizontal axis is logarithmic.

With ripples down to 2 cm the two eyes’ wobbles correlate 0.997 at 5 mm apart, 0.99 at 10 mm, 0.59 at 65 mm and nothing at all by 30 cm. Take the ripples shorter than 10 cm out of the sea and the correlation at 65 mm rises to 0.95. The rule is the obvious one, made quantitative: the eyes stop sharing the wobble when their two patches of surface, about an eighth of their distance apart at these heights, are separated by a sizeable fraction of the shortest wavelength that carries the slope. For a pair of human eyes over a stream with ripples a few centimetres long, that is about where they are.

The depth wobbles thirty times more, and does not go away

The sideways reading of the pair follows from the two eyes’. With the eyes close together both lines of sight are displaced alike, and the pair puts the stone just as far aside as either eye: 1.32 mm at 5 mm apart. Further apart the two displacements become independent and their intersection averages them, 0.95 mm at 30 cm, close to one eye’s wobble over 2\sqrt 2.

The depth reading does not follow from the sideways ones at all. With the eyes 65 mm apart the pair’s stone wobbles 1.17 mm sideways and 42.9 mm in depth, thirty-seven times as much.

A pair a hand apart puts the stone on a line through the eyes, spread a hundred times more in depthWhere a pair of eyes 65 mm apart puts the stone, at each of 160 moments of a 1° sea, the stone 0.3 m down and the eyes 1.5 m above the surface. Sideways the points spread by 1.2 mm rms; in depth by 43 mm. Drawn at equal scale the cloud would be a vertical line: the pair agrees closely where the stone is across the view and hardly at all how far away it is.-1000100200-4-2024triangulated stone, sideways (mm)in depth (mm, positive deeper)1° sea, 65 mm pair, 160 moments1.2 mm aside, 43 mm deep
Fig. 4 Where a pair of eyes 65 mm apart puts the stone at each of 160 moments of a 1° sea, the stone 0.3 m down: sideways on the horizontal axis and in depth on the vertical, at very different scales.

The cloud of triangulated stones is a line along the direction of sight. A pair a hand’s width apart, looking down at a stone through gently moving water, agrees closely about where the stone is across the view and hardly at all about how far down it is. That is the opposite of the hope in the question. A pair whose baseline is short against the sea’s crests does not see a stone that wobbles sideways and holds still in depth; it sees one that holds still sideways, nearly, and wobbles in depth.

The more surprising part is what happens as the eyes close in. A depth read from two pictures is the baseline divided by the disparity, roughly, which is why depth is a reciprocal and why its error grows as the disparity’s error over the disparity squared, and the disparity’s wobble falls in proportion to the baseline as the eyes close, so the two might be expected to cancel and leave the depth wobble constant. They do, but not at zero. At 5 mm apart the depth wobbles 51 mm, at 3 cm 49 mm, at 65 mm 43 mm. Only once the eyes are far enough apart that their patches decorrelate does it start to fall, as one over the distance: 14.8 mm at 30 cm, 4.6 mm at 1.2 m. The depth wobble at short baselines is not a pair’s error at all. It is something each patch of surface does to a single line of sight, which a pair is merely able to see.

A curved patch is a weak lens

A patch of surface that is tilted moves the stone’s image sideways; that is the single eye’s law, and it is the small-angle form of Snell’s law that what a ray does at a surface set out. A patch that is curved does something else. A curved surface between two media is a lens, of power (n−1)κ(n-1)\kappa for curvature κ\kappa, and a weak lens moves the image of a point along the line of sight. Under calm water a stone at depth DD appears at D/nD/n, the familiar shallowing that a point under water has two depths took apart. Under a curved patch its image is pushed nearer or further, by (D/n)2(n−1)κ(D/n)^2 (n-1)\kappa to first order, and a pair that reads depths back through the calm surface multiplies that by nn:

δZ=D2 κ n−1n,\delta Z = D^2\,\kappa\,\frac{n-1}{n},

which is the sideways law D σ (n−1)/nD\,\sigma\,(n-1)/n with the slope replaced by the depth times the curvature.

The wobble in depth is the sea's curvature acting as a lensThe pair's depth wobble with the eyes only 5 mm apart, rms over 160 moments of a 1° sea, against the stone's depth, with the sea's shortest waves 2 cm (heavy) and 5 cm (light) long, and the weak-lens law D²·κ·(n − 1)/n for each (dashed), κ the sea's rms curvature, 2.18 and 1.02 per metre. At 0.2 m the measured wobble is 22.0 mm against 21.8 mm from the law; at 0.3 m, 51.0 mm against 48.9 mm. Deeper, the strongest curvatures make lenses whose focus nears the stone, a few moments throw the reading far, and the rms outruns the law: 224 mm at 0.5 m against 136 mm, 978 mm at 1 m against 544 mm. Without the 2 cm ripples the law holds deeper.0.10.20.51310301003001000depth of the stone (m)depth wobble, eyes 5 mm apart (mm)2 cm ripples: measuredD²κ(n − 1)/n5 cm ripples: measuredD²κ(n − 1)/n1° sea, eyes 5 mm apartslope moves it aside, curvature in depth
Fig. 5 The pair’s depth wobble with the eyes only 5 mm apart, against the stone’s depth, for seas whose shortest waves are 2 cm and 5 cm long, with the weak-lens law D2κ(n−1)/nD^2\kappa(n-1)/n for each. Both axes are logarithmic.

The sea’s rms curvature, computed from its components, is 2.18 per metre. For the stone at 0.3 m the law gives 48.9 mm, and the pair measures 51.0 mm; at 0.2 m, 21.8 against 22.0 mm. A single line of sight’s depth error is invisible to a single eye, which reads only a direction. A pair with its eyes close together sees through very nearly one patch with two lines, so it reads that patch’s lens exactly, and what it reports as the stone’s depth is the lens’s image of the stone.

The curvature also explains why the short ripples matter so much more for depth than for place. The sea has the same slope at every wavelength, so its slope is shared evenly among them, but curvature is slope times wavenumber, so it is dominated by the shortest waves. Take out every ripple shorter than 5 cm and the sideways wobble at 65 mm barely changes, 1.19 mm, while the depth wobble halves, to 22.9 mm against the law’s 23.0. Without ripples shorter than 10 cm it is 14.1 mm; without those shorter than 20 cm, 9.1 mm. A pair looking down through a swell with no ripple on it sees the stone hold far stiller in depth than one looking through a breeze-ruffled surface of the same slope.

Deeper, the law runs out. At 0.5 m the depth wobble over 160 moments is 224 mm against the law’s 136; at a metre, 978 mm against 544. The rms is carried by a few moments in which a strongly curved patch makes a lens whose focus falls near the stone, so the image runs off along the line of sight. That is the onset of what the single-eye essay found at its focusing depth, where the stone is seen more than once. The bulk of the moments still follow the law at 0.5 m; it is the tail that grows.

Why the rim’s essay could not have found this

The slope and the curvature of a moving surface have been in every essay about it, and only now does the second one matter. A ripple moves the window’s rim by its own slope looked up from under water and found the edge of the sky’s cone moving by the whole tilt of each facet. The stone essay looked down and found its picture moving by a quarter of the tilt. Both measured a direction, and a direction depends on a patch’s tilt and not on its curvature, because a single ray meets the surface at one point and the curvature there does not turn it.

A depth is not a direction. It is the meeting of two rays, and two rays meet the surface at two points. Where those points are close together, the difference between the two tilts the rays meet is the curvature times their separation, and the separation is exactly what a short baseline makes small. So the depth error is the curvature’s, in the same way that the place error is the tilt’s, and the first instrument in this sequence that could see it is the first one that looks along two lines at once. The curvature was always moving the stone’s image along the line of sight; nothing that reads only directions could tell.

What a stereo pair over water should do

A pair measuring through a moving surface has two errors with two different laws. Its sideways error is the slope’s, D σ (n−1)/nD\,\sigma\,(n-1)/n, shared by close eyes and averaged by distant ones, and small. Its depth error is the curvature’s, D2κ(n−1)/nD^2\kappa(n-1)/n for close eyes, falling as one over the baseline once the eyes look through unrelated patches, and large. With a 1° sea over a stone 0.3 m down, a pair 1.2 m apart still wobbles in depth three and a half times as much as a single eye’s place, and only several metres of baseline bring the two to the same size.

That turns the usual design choice round. A short-baseline stereo rig is normally chosen for its tolerance of matching and occlusion, and accepted for its poor depth precision, which whole pixels cut space into shells priced on dry land. Over water the short baseline has a second cost the dry-land rig does not: whatever its pixel precision, its depth cannot be steadier than the surface’s lens allows. A wide baseline buys depth precision through water just as it does through air, and for an additional reason: it decorrelates the two eyes’ lenses so that their errors average.

The other remedy is time. The depth wobble is a wobble, not a bias: its mean over the 160 moments is a fraction of a millimetre at 0.3 m. Averaging pictures over moments of the sea averages it away, at the square root of the count, as the single eye’s sideways wobble was averaged. A pair at 65 mm needs about a thousand independent moments to read the stone’s depth to the single eye’s 1.3 mm. A pair 1.2 m apart needs about a dozen.

A section, a gentle sea and a calibrated pair

Everything is in one vertical section. A real sea is curved in two directions, and so a real patch is an astigmatic lens with two curvatures. Its depth error along the section’s line of sight is set by the curvature in the plane containing both eyes, which is the one traced; the other curvature moves the image too, by the same law, so a real sea’s depth wobble is somewhat larger than the section’s.

The pair is calibrated for calm water. It knows the surface’s mean height and the index, and carries each line of sight into the water as a calm surface would. A water surface’s height trades against its index found how such a calibration can go wrong; here it is exact, so every error is the ripple’s.

The stone is a point, and the pair reads its brightness-weighted place. A real matcher matching texture on the bottom sees a smeared patch rather than a weighted point, and its own errors are added to the ripple’s. The sea is gentle, 1° of rms slope, so the stone is seen once at nearly every moment; at 3° and 0.3 m the depth wobble at 65 mm is already 154 mm and the sideways 3.4 mm.

Still open: whether three eyes can read the lens

A pair close together sees one patch’s lens and cannot tell it from the stone’s depth. But the lens is a property of the patch, and a patch is seen by every eye whose line of sight crosses it, not only along the line to the stone. A third eye sees the water the pair cannot used a third camera to recover a flat surface’s height; a third eye could in principle recover a curved patch’s curvature.

The measurement that settles it adds a third eye beside the pair, looking at the same stone and at a second stone a short way off through overlapping patches, and asks whether the three lines of sight to each stone, read together, separate the patch’s curvature from the stones’ depths; how much of the 43 mm depth wobble at 65 mm a third eye removes, and at what spacing; and whether a pair looking at two stones instead of one, through patches that overlap, can do the same, since two stones under one lens are both moved by it and their difference in depth is not.

Two eyes over a ripple each see the stone wobble sideways by the slope’s law. Close together they share that wobble and the pair places the stone no better than one eye. What the pair adds is a depth, and the depth wobbles thirty to forty times as much, by an amount that does not vanish as the eyes close in: each curved patch is a weak lens, and it moves the stone along the line of sight by D2κ(n−1)/nD^2\kappa(n-1)/n. Short ripples carry the curvature, and a wide baseline averages 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.

Depth from disparityDepth uncertaintyDisparityRefractionSnell's lawStereo pairTriangulation