Through water and glass

A straight stick tests the index only across the sight

Told that each stick is straight, three eyes fitting a water surface's height and its index still slide down the valley between them — when the stick leans away from them. A wrong index carries such a stick into another straight stick, off its line by 0.016 mm and 116 mm short. Turned to lean across the line of sight, the same wrong index bows it by 2.2 mm, and the straight-line fit's slide falls from 0.058 to nothing. A tape on the stick, read only to ±50 mm, stops the slide outright.

Worth reading first: What a ray does at a surface · Two rays that do not meet.

A water surface’s height trades against its index gave three eyes a stick half under water and asked them for two things at once: the height of the surface the stick goes through, and the index of the water below it. The eyes found both, in principle, and badly in practice. The two trade along a valley — a surface assumed higher bends every ray sooner, and an index assumed weaker makes up for it — and fits from readings good to a quarter of a pixel do not scatter about the truth. They slide down the valley, so that the index comes back 0.076 low on average against water’s 1.333, the surface 69 millimetres high, and the metre-long stick 881 millimetres long.

That essay triangulated each of the stick’s eight points on its own. Every point carried three coordinates of its own for the fit to adjust, against two numbers — the index and the height — that all of them shared, and that is the shape of problem in which a few shared numbers are known to be pulled off by many private ones. It ended by naming the test: fit the same readings with every stick held to a straight line, which takes the private numbers from twenty-four down to twelve, and see whether the slide goes. If it does, any rig whose objects have known shapes should fit the shapes. If it stays, it belongs to the refraction.

It stays — for the stick that essay used. And the reason it stays says exactly when it would not.

A wrong index draws a straight stick straight

Before running any noisy fit, there is a question that settles most of it: what does a wrong index do to a straight stick? A constraint can only help a fit if the wrong answers break it. If a straight stick read with the wrong index still comes back straight, then “the stick is straight” is something the wrong answers already satisfy, and adding it to the fit tells the fit nothing it can use.

The rig is the earlier essay’s, built on the one a third eye sees the water the pair cannot introduced. A level pair of eyes 65 millimetres apart, 1.6 metres above the water, with a third eye raised a hundred millimetres above their middle; a metre-long stick leaning thirty degrees under the surface two metres out, leaning straight away from them; eight points along it. Read without error, every direction each eye reports is exact. Then the eyes are told a wrong index and asked for the surface’s height that best suits it, and the points they place are compared with the stick.

Read with an index of 1.250, the straight stick comes back straight — off its own line by 0.016 mm — and 884 mm longA metre-long stick leaning 30° under water 2 m from three eyes 1.6 m up, eight points on it, read without error by eyes that assume the water's index is 1.250 and fit the surface's height to suit it (32.2 mm). The eight points they place lie on a straight line to within 0.016 mm, and the line is 883.7 mm long against the stick's 1000, tilted 32.2° from the vertical against its 30. Across indices from 1.2 to 1.45 the points stay on a line to within 0.024 mm while the length runs from 811 to 1156 mm: a wrong index carries a straight stick into a straight stick, and only its length and lean say which index was used. The slider changes the assumed index.-1-0.500022.202.402.60distance out from the eyes (m)height (m), the water's surface at 0the stick, 1000 mmread: 884 mmfitted surfaceexact readings, one stick 2 m outoff its line: 0.016 mm
Fig. 1 The stick in side view, read without error by eyes told an index of 1.25 and left to fit the surface’s height. The fitted surface sits 32.2 mm high; the eight points it puts back lie on a line to within 0.016 mm, and the line is 884 mm long and leans 32.2° against the stick’s 1000 mm and 30°. The slider runs the assumed index from 1.2 to 1.45.

The answer is the whole of the essay in one picture. Told 1.25, the eyes put the surface 32 millimetres above where it is, and they put the stick back shorter, shallower and leaning a little further over — 884 millimetres long at 32.2 degrees from the vertical. They also put it back straight. Its eight points lie on one line to within sixteen thousandths of a millimetre, which is a thousandth of the width of the line drawing it. Told 1.40 instead, they lower the surface sixteen millimetres and return a stick 1,090 millimetres long, leaning a little less steeply, and straight again to fourteen thousandths. Across every index from 1.2 to 1.45 the stick’s straightness never moves by more than a few hundredths of a millimetre, while its length runs from 811 to 1,156.

That is a different statement from the one a straight stick in water is a kink and a curve made about the stick’s image. The image, seen by one eye, is kinked at the surface and curved below it; what three eyes rebuild from their images, at the wrong index, is straight. So a wrong index does not break the stick. It moves it, shrinks it or stretches it, and tilts it, and leaves it exactly the kind of object a straight-line fit expects to find. A fit that holds every stick to a line is asking the wrong answers to pass a test they all pass.

The line constraint buys nothing here, and costs a little

That makes a firm prediction for the noisy fits, and the prediction holds. With exact readings, the disagreement among the three eyes at a wrong index is the same whether each point is free or held to the stick’s line — the same to a part in ten thousand at 1.25 — because the free points were already on a line. Linearised at the truth, the fit’s own curvature promises the index to ±0.143 either way, to three decimal places. The line constraint takes twelve private numbers away from the fit and removes nothing it was using.

Leaning away, the stick held to a line slides as far as with its points free — 0.099 low at a quarter pixel against 0.076 — while a tape to ±5 mm leaves 0.004 highOne stick 2 m out leaning 30° straight away from the eyes, three eyes, the index and the surface's height fitted together from 40 rigs at each reading error of 0.05, 0.1, 0.15, 0.2, 0.25 px. How far below water's 1.333 the fitted index averages. Every point free: 0.0107, 0.0243, 0.0404, 0.0583, 0.0759. The stick held to a straight line: 0.0112, 0.0263, 0.0448, 0.0654, 0.0990, with rigs running off to an index of thousands left out (1 at 0.25 px). Points free and the stick's length read off a tape to ±5 mm: -0.0001, -0.0006, -0.0014, -0.0026, -0.0041. The spreads at a quarter pixel: 0.127, 0.115 and 0.049; the fits' curvature promises ±0.143 with the points free and ±0.143 held to a line. The slider turns the lean between away and across.00.0500.1000.0500.1000.1500.2000.250reading error, pxhow far low the index comes back, on averageheld to a lineevery point freea tape, ±5 mmleaning away, 40 rigs a pointzero: no slide
Fig. 2 One stick leaning away, 40 rigs at each reading error: how far low the fitted index averages. Every point free: 0.011 at 0.05 px rising to 0.076 at 0.25. Held to a line: 0.011 to 0.099, one rig at 0.25 px left out after it ran off to an index of thousands. With the stick’s length read off a tape to ±5 mm: zero to within 0.004. The slider turns the stick to lean across the sight.

The slide survives the constraint at every reading error, and it grows a little. At a twentieth of a pixel the line-held fits come back 0.011 low, just as the free ones do; at a quarter of a pixel they come back 0.099 low, against 0.076 for the free points, and one of the forty rigs runs off down the valley altogether to an index in the thousands — the same runaway the earlier essay met at 0.3 pixels with the points free, arriving sooner. The spread barely changes, 0.115 against 0.127.

Taking freedom away from a fit is supposed to help, and the reason it does not is the previous section: the private numbers were never what was pulling the shared ones off. The earlier essay’s own diagnosis is the one that stands. The valley the index and the height lie in is curved, noise pushes each fit a random distance off the truth, and the fit then settles on the valley’s floor on the side where the floor is gentler. That is a property of what a flat refracting surface does to rays from one stick seen from nearly one direction, and no description of the stick’s shape that a wrong index already satisfies can reach it.

The lower curve on the same figure shows what does reach it, and the rest of the essay is about that curve. Before turning to it, though, the stick has to be turned round.

Leaning across, the same index bows the stick

The stick in the earlier essay leant straight away from the eyes. That is a special lean. A stick leaning away lies in the vertical plane through the eyes, and every ray from it to an eye bends within its own plane of incidence, the vertical plane containing the ray — which for this stick is nearly the same plane for every ray. The whole reading is close to a flat problem drawn on one sheet. A stick leaning across the line of sight leaves that sheet: the rays to its upper and lower ends cross the surface in different directions from the eyes and bend in different planes.

Read with an index of 1.25, a stick leaning straight away from the eyes comes back bowed by 0.016 mm and 884 mm longA metre-long stick leaning 30° under water 2 m from three eyes, eight points on it, read without error by eyes that assume an index of 1.25 and fit the surface's height to suit it. Each curve is how far the read points stand off the straight line through them, along the read stick. The lean turned round from straight away from the eyes: 0°, 0.016 mm, the stick 884 mm; 30°, 0.437 mm, the stick 886 mm; 60°, 1.138 mm, the stick 894 mm; 90°, 2.216 mm, the stick 905 mm. Leaning away, the stick lies in the vertical plane through the eyes, the plane each of its rays bends within; leaning across, it leaves that plane, and only then does a wrong index bow it by more than a few hundredths of a millimetre. The slider turns the lean; the faint curves are the other leans.-202-400-2000200400along the read stick from its middle (mm)off its own straight line (mm)lean 0°stick 884 mmexact readings, an index of 1.25the bow: 0.016 mm
Fig. 3 How far the eight read points stand off their own straight line, along the stick, read without error at an index of 1.25. Leaning straight away (the slider at 0°): 0.016 mm. Turned 30° round: 0.437 mm; 60°: 1.138; across the sight, 90°: 2.216 mm. The read stick is 884, 886, 894 and 905 mm long.

The difference is not subtle once it is looked for. At the same wrong index of 1.25 the stick leaning away comes back bowed by 0.016 millimetres, as before. Turned thirty degrees round it bows by 0.44 millimetres, at sixty degrees by 1.14, and leaning straight across the line of sight by 2.22 — a hundred and forty times as much, and in a smooth arc along its length, flat at the ends and furthest out in the middle. The length, meanwhile, is short by nearly the same amount at every lean: 116 millimetres leaning away and 95 leaning across.

At an index of 1.25 the stick comes back 95 to 116 mm short at every lean, and bowed by 0.016 mm leaning away against 2.22 mm leaning acrossOne stick 2 m out, leaning 30° in a direction turned from straight away from the eyes to straight across their line of sight, read without error at an assumed index of 1.25 with the surface's height fitted. Upper curve: how far its read length falls short of its metre — 0° 116.3, 10° 116.0, 20° 115.1, 30° 113.6, 40° 111.6, 50° 109.0, 60° 106.0, 70° 102.6, 80° 98.9, 90° 95.0 mm. Lower curve: how far its points bow off a straight line — 0.016, 0.132, 0.274, 0.437, 0.631, 0.863, 1.138, 1.457, 1.819, 2.216 mm. The length moves 7395 times more than the straightness leaning away and 43 times more leaning across. The shortening is nearly the same at every lean; the bow grows 141-fold.0.010.1110100020406080which way the stick leans, degrees round from awaymillimetres (log scale)short bybowed byexact readings, an index of 1.25what a wrong index changes
Fig. 4 Read without error at an index of 1.25, the stick turned from leaning away (0°) to leaning across (90°): how far short of its metre it comes back (upper) and how far it bows off a line (lower), on a log scale. Short by 116.3 mm leaning away and 95.0 across; bowed 0.016 mm leaning away and 2.216 across. The length moves 7,395 times more than the straightness at 0° and 43 times more at 90°.

So the measure of how much a straight-line constraint can tell a fit is the ratio between what a wrong index does to the stick’s shape and what it does to everything else. Leaning away, the wrong index changes the length seven thousand times more than it changes the straightness; leaning across, forty-three times more. That still makes the length the louder signal by far. But two millimetres is a bow a fit can see, where sixteen thousandths of one is not, and the question is what the fit does with it.

Why the bow appears in that direction and grows the way it does was not derived here. It was measured, and what matters for the fit is that it is there.

Across the sight, the line constraint works

Turning the slider on the noisy fits to the stick leaning across gives a different figure, not a different shade of the same one. With every point free, the fits slide much as before: 0.010 low at a twentieth of a pixel and 0.058 low at a quarter, with a spread of 0.130. Held to a straight line, the slide is gone — 0.0004 low at a twentieth of a pixel and 0.004 high at a quarter, which is well inside the forty rigs’ own standard error — and the spread falls to 0.060. The fit’s curvature agrees: it promises the index to ±0.142 with the points free and ±0.052 with the stick held straight. No rig runs off.

This is the outcome the earlier essay’s question was hoping for, and it arrives only on the stick that was not used. Held to a line, a stick leaning across the sight is an object a wrong index cannot reproduce: every wrong answer bows it, the constraint refuses every bowed answer, and what is left is the truth. The private numbers were never the cause of the slide, but the shape is a cure for it — exactly where the shape is something a wrong index changes.

That gives a rule that is easy to apply and easy to get wrong. A known shape helps a refraction fit in proportion to how much the wrong refraction distorts that shape. Straightness in the plane the rays bend in is not distorted, and is worth nothing; straightness across it is distorted by millimetres, and is worth a factor of two in the index’s spread and the whole of its bias. A rig that wants to use the straightness of what it sees through water should look at objects leaning across its line of sight, and should expect nothing from objects leaning away.

What the length does

The bow is a weak signal and the shortening a strong one. Leaning either way, a wrong index changes the stick’s length by about a hundred millimetres for a tenth of index, and a length is the easiest thing in the scene to know. It is one number a tape measure gives.

The tape enters the fit as one more reading beside the twenty-four rays: the stick’s length as the fit places it, compared with the length the tape says, weighed by how well the tape is read. The stick’s length is taken from all eight points rather than its two ends — their places along the stick, regressed on their number — so that no one point’s depth error carries straight into it; how each point is placed from its three bent rays is the angular choice the midpoint is a choice of ruler examined.

With the stick's length read off a tape to ±5 mm the forty fits gather on the truth: index 1.337 ± 0.049 and the surface 8 ± 27 mm, against 1.257 ± 0.127 and 69 ± 87 without itForty rigs, one stick 2 m out, three eyes each reading every direction to a Gaussian quarter pixel, the index and the surface's height fitted together. Without the tape (dark): index 1.2571 ± 0.1267, height 68.5 ± 86.9 mm, the cloud strung along the valley and slid down it. With one more reading — the stick's length, a metre, measured to ±5 mm — (light): 1.3371 ± 0.0495, 8.1 ± 27.1 mm. The mean index is within 0.5 of its own standard errors of water's, the spread 2.6 times smaller. The tape crosses the valley: a fit sliding down it shortens the stick, and the length refuses the slide.00.2000.4001.201.401.60the fitted indexthe fitted surface height (m)the truthno tape (dark)a tape, ±5 mm (light)40 rigs a cloud, a quarter pixelone stick, 2 m out
Fig. 5 Forty rigs, the stick leaning away, read to a quarter pixel, the index and the surface fitted together. Without a tape (dark): index 1.257 ± 0.127, surface 69 ± 87 mm, strung along the valley. With the stick’s metre read off a tape to ±5 mm (light): 1.337 ± 0.049, surface 8 ± 27 mm — within half a standard error of water, and a spread 2.6 times smaller.

On the stick leaning away, where the line constraint did nothing, the tape does everything. The forty fits that slid down the valley without it gather on the truth with it: the index averages 1.337 against water’s 1.333, half a standard error away, with a spread of 0.049 rather than 0.127; the surface averages 8 millimetres high, ±27, rather than 69 ± 87. The valley is still there, and the tape crosses it. A fit sliding down the valley towards a weaker index shortens the stick, the tape says the stick is a metre, and the slide is refused at its first step. On the stick leaning across, the tape does as well as the line constraint did and a little better — a slide of 0.006 high and a spread of 0.039.

Exact readings with the tape come back to water’s index from a start at 1.25 to seven decimal places, and a tape that reads wrong is followed: told a stick is an eighth longer than it is, a fit moves the index strong to make the stick that long. The tape is trusted, which is what makes it useful and what makes it a thing that must be right.

A rough tape is nearly as good as a fine one

How well does the tape have to be read? The natural expectation is that a length good to a millimetre would fix the index far better than one good to five centimetres. It does not, and a scale bar is worth its ends, not its tape found the same thing for a measured bar on a ring of cameras: the bar’s information is limited by how well the pictures place its two ends, not by how well the tape was read.

A tape good to ±50 mm still takes the slide to 0.0026; the slide comes back only past ±100 mm, and a ruler whose every mark is known leaves ±0.0012One stick 2 m out, 40 rigs at a quarter pixel, the index and the surface fitted together with the stick's length read off a tape to ±5, 20, 50, 100, 200 mm. The mean amount the index comes back low: -0.0041, -0.0031, 0.0026, 0.0198, 0.0526 (solid); its spread 0.0495, 0.0495, 0.0502, 0.0563, 0.0802 (dashed). Without the tape: 0.0759 low, ± 0.1267 (the upper guides). With every one of the eight points' true places known, as a ruler's marks are: -0.00017, ± 0.0012. The tape's own precision hardly matters below ±50 mm, because the eyes read the stick's length, even at the true index and surface, to only ±66 mm themselves; a coarse length is enough to say which end of the valley the fit is at.5205010020000.0500.1000.150how well the tape is read, ± mm (log scale)the index's errorspread, no tapeslide, no tapespread, tapedslide, tapedone stick, 40 rigs a point, a quarter pixelruler: ±0.0012
Fig. 6 The stick leaning away, 40 rigs at a quarter pixel, its length read off a tape to ±5, 20, 50, 100 and 200 mm. The index comes back 0.004 high, 0.003 high, 0.003 low, 0.020 low and 0.053 low (solid), with spreads of 0.050, 0.050, 0.050, 0.056 and 0.080 (dashed); without a tape, 0.076 low ±0.127. With every point’s true place known, as a ruler’s marks are: ±0.0012.

A tape read to ±5 millimetres and one read to ±50 give the same spread of 0.050 and slides of less than 0.004 either way. The slide begins to come back only past ±100 millimetres, where the index is 0.020 low, and at ±200 millimetres it is 0.053 low with a spread of 0.080 — still better on both counts than no tape at all. The reason is how well the three eyes themselves read the stick’s length when nothing is wrong. At the true index and the true surface, a quarter of a pixel of reading error leaves the read length scattered by ±66 millimetres from rig to rig, because each point’s depth is the least well measured of its three coordinates — the same weakness a point under water has two depths found in a single point’s image before any surface was fitted. A tape better than that adds nothing the eyes can use. A tape near that tells the fit which end of the valley it is at, and that is all the slide needed.

The other end of the scale is a ruler: a stick whose every mark is known, so that the fit can compare each point with where it truly is. With all eight points’ places known, the index comes back to ±0.0012, a hundred times tighter than without and forty times tighter than with a tape. That is a calibration target lowered into the water, and it removes the problem rather than reducing it. Between the ruler and nothing lies a single length, read roughly, which takes away the bias entirely and two-thirds of the spread.

A tape on one stick measures the others

The use of all this is not the stick that was taped. It is everything else in the water, which the rig could not reach with a tape: a second stick further out, a stone on the bed, a fish. The earlier essay found that a second stick four metres out, added to break the valley, came back badly short when the index and the surface were both fitted, because its shallow rays pulled the fit to a weaker index still.

A tape on the near stick takes the slide off the far one: 1016 ± 236 mm, beside 1007 ± 184 with water's index held, where fitting both gave 687Two sticks, one 2 m out and one 4 m out and 0.6 m to the side, a metre of each under water, 40 rigs at a quarter pixel. The far stick's rebuilt length, its error from a metre plus its spread in each bar. both fitted: 687 ± 199 mm, index 1.1913 ± 0.0690, surface 50.2 mm; water's index held: 1007 ± 184 mm, index 1.3330 ± 0.0000, surface 7.2 mm; the near stick taped: 1016 ± 236 mm, index 1.3368 ± 0.0498, surface 7.7 mm. The near stick's measured metre fixes where on the valley the water is, and the far stick, never touched, is then rebuilt without the slide.far stick, both fitted687 mmfar stick, water's index held1007 mmfar stick, the near stick taped1016 mm40 rigs a row, a quarter pixelbar: error from a metre plus spread
Fig. 7 Two sticks, one 2 m out and one 4 m out, 40 rigs at a quarter pixel: the far stick’s rebuilt length. Index and surface both fitted: 687 ± 199 mm. Water’s index held: 1,007 ± 184. Only the near stick taped, to ±5 mm, and the index fitted: 1,016 ± 236, with the index 1.337 ± 0.050.

The tape on the near stick fixes the far one. With both the index and the surface fitted and nothing taped, the far stick comes back 687 millimetres long, a third short. With the near stick’s metre read off a tape and nothing else known, the far stick comes back 1,016 ± 236 millimetres, beside 1,007 ± 184 when the index is simply held at water’s value. It is the same move a length fixes the scale where it lies made for a ring of cameras in air, where one measured metre pinned a whole walk’s scale. The tape cannot do better than knowing the index — it is a way of learning the index, and it learns it to ±0.050 — but it does as well as knowing it on average, and it works for a liquid whose index nobody knows. The far stick’s spread is wide because it is four metres out and seen through the surface at a shallow angle; its bias is gone.

That is the practical form of the result. The stick a stereo pair puts back found a pair alone 285 millimetres short with nothing in its pictures to say so. A rig looking into a liquid it cannot identify, through a surface it cannot see, needs one object of known size in the near water. A stick with two marks a metre apart, a float of known length, a tile of known width on the bottom: any of them does what holding the index did, without the index.

What was assumed

The stick is straight. The line constraint across the sight works because a wrong index bows the stick by about two millimetres, and it can only work if the stick itself is straighter than that. A real pole, a branch or a length of pipe may well bow by more.

The tape is right. The tape is weighed as a reading of known precision and is followed when it is wrong, as the test with a tape an eighth too long showed. A length mismeasured by more than the eyes’ own ±66 millimetres moves the index with it, without the fit saying so; the residuals cannot warn of a wrong tape any more than the residual does not warn found them warning of a wrong model in the pair.

The surface is flat and level, and the eyes know where they are. Both assumptions are the earlier essay’s and both are as strong here; a rig that does not know its own cameras carries their uncertainty into everything it measures, which is what an uncertainty is quoted from something found for a height read from a rig. A tape fixes where on the valley the fit lies; it does nothing for a surface that ripples or a rig that has to find its own cameras.

Each lean was tried at one distance. Every measurement of the lean was made at two metres out with a thirty-degree tilt. On other rigs tried for the same check — sticks further out, steeper and shallower — the bow under a wrong index ranged from a few hundredths of a millimetre to two millimetres and the length’s change always dwarfed it, but how the line constraint’s value varies across all of them was not mapped.

Still open: whether a stick that is not quite straight fools the line constraint

The line constraint across the sight works on a signal of two millimetres. That is the bow a wrong index of 1.25 puts into a metre-long stick leaning across the line of sight two metres out, and it is the only thing the constraint has to work with. A real stick is never perfectly straight: a wooden pole sags, a branch curves, a steel rod is straight to a fraction of a millimetre over a metre but a plastic one is not. A stick that is itself bowed by a millimetre or two in the right direction would be read as a straight stick seen through the wrong index, and the fit would move the index to straighten it.

The measurement that settles it bends the stick on purpose — an arc with a stated sag, across the sight and along it — and fits it held to a straight line, to find the sag at which the constraint’s bias exceeds the slide it was removing. If that sag is well above what ordinary poles carry, the line constraint is a usable tool for a stick leaning across; if it is within a millimetre, a fit should hold a stick to a line only when the stick is known to be machined straight, and otherwise trust a tape.

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.

BiasCalibrationCollinearityleast squaresPlane of incidenceRefractionRefractive indexTriangulation