Concept

Refractive index — where it appears

The ratio governing how much a ray bends at a boundary, and the reason a picture through water is a projection of nothing. Its ratio across a boundary is what Snell's law turns an incoming angle into an outgoing one with, and it is the whole of what a picture through water depends on.

Named by 19 essays across one field — each of them below, with the objects they name alongside it.

water, n = 1.333eyetruly 1.50 m downappears 0.818 m downh/n would be 1.125 mno single viewpoint — the rays miss by 17.1° of bend at the surfaceapparent depth 54.5% of the true one, not 75.0%

What a ray does at a surface

A pool looks three-quarters as deep as it is — but only if you look straight down. At sixty degrees the same bottom appears at half its depth, and at eighty at a fifth, which is why the far end of a pool looks shallow enough to walk in.

refraction · Refraction
no single viewpoint — the rays miss by 4.5 px, depth-dependentf recovered from it: 396.88 px

What survives a pane of glass

A slab of glass moves every point of a picture and moves no direction at all. So the camera recovered from a photograph taken through a display case is exactly the camera that took it — out of a picture in which nothing is where it was.

refraction · Slab
00.2000.4002468how far off the perpendicular the sightline is (°)how far the pane moves the point (mm)13.2 mm, n = 1.3510.0 mm, n = 1.528.0 mm, n = 1.756.5 mm, n = 2.1t(1 − 1/n) = 3.421 mm for all four1.8 µm apart over 8°

A pane gives a product before it gives two numbers

A flat pane of glass displaces every point it is seen through, and the displacement at small angles is the thickness times one minus the reciprocal of the index. So the two numbers arrive multiplied together. Four panes from 6.5 to 13.2 millimetres thick, with indices from 1.35 to 2.1, agree to under two microns over an eight-degree fan and separate by more than a millimetre over sixty — and a fit over the narrow fan returns whichever pair it started near.

refraction · Slab
water, n = 1.333eyethe point, 1.50 m downsagittal: 0.740 mtangential: 0.320 mno single viewpoint — the rays miss by 0.840 mbetween the pencil's two images

A point under water has two depths

The apparent depth of a submerged point is not one number even along one line of sight. The rays it sends to an eye pass through two focal lines, and at 60° from the vertical a point 1.50 m down has an image 0.740 m down and another 0.320 m down. Two eyes side by side read the first, a head moving up and down reads the second, and a pair of eyes tilted between them reads neither — their two rays miss each other by as much as 6.39 mm.

refraction · Refraction
eyethe sticktwo eyes side by sidea nodding headcorrect from 18 cm, at 160 mm widekink 14.96° · turn 4.29°

A straight stick in water is a kink and a curve

The bent stick is described as one kink at the surface. Traced point by point, the image two level eyes see leaves the surface 14.96° off a stick leaning 30° — the same whichever way it leans — and then keeps turning, by 1.11° when it leans away from the eye and 7.62° when it leans toward it. A photograph from the eye shows the kink and almost none of the curve, 1.63 px over 166 px, and when the stick leans straight toward or away from the eye it shows neither: the picture is one straight line.

refraction · Refraction
x axis, 54.7° off1.58°y axis, 63.5° off3.39°z axis, 46.9° off1.45°the frame's best rotation1.14°the recovered camera's turn3.37°wedge 2° · focal 1.33% short · principal point 16.6 pxframe mispredicted by 14.7 px

A wedge of glass turns the camera behind it

A pane with parallel faces moves every point and no direction, so the camera recovered through a window is the camera that took the picture. Tilt one face 2° and every direction turns, by 1.04° on the axis and 1.67° forty degrees off it. The best rotation of the frame, 1.14°, still leaves 0.94 px, and no homography does much better, so the picture is no longer a projection from the camera's centre. The camera recovered from three vanishing points through the same glass is turned 3.37° — three times as far — because vanishing points lie where the glass bends most.

refraction · Slab
012204060how far off the axis the read directions reach, in degreeshow far the recovered wedge angle is out, in degreesthe wedge's own angle — nothing recovered60 trials at each spread, half a pixel of reading error0.068° at 55°

The wedge recovered with the camera

Admit the glass into the model and the fit finally has something left over. A two-degree wedge is invisible to a reading confined inside eighteen degrees of the axis — the fit calls the whole displacement a rotation of the camera and is right to — and by fifty-five degrees it comes back to 0.07 of a degree. What the picture does not separate is the ordinary glasses — assuming an index of 1.50 for a true 1.52 costs one per cent in the angle and 0.07 pixels of residual.

refraction · Slab
residual × 40 · rms 1.62 px at the readings · principal point moved 7.7 pxno single viewpoint — the rays miss by a wedge's worth, varying with incidencethe glass-blind calibration at 40°

A wedge moves the centre, not the lens

A wedge of glass in front of a lens deflects every ray by a little more the further off the axis it goes, which looks like the shape a radial distortion coefficient describes. Fitted together, the two are nearly independent — correlated at 0.16 at most — and a calibration that knows nothing of the glass does not invent a lens: it reports a coefficient of about 0.002, moves its principal point by 4.5 to 14 pixels, and leaves a swirling residual that no radial model takes. The blame goes to the camera's centre, and the residual says so from twenty-two degrees off the axis.

refraction · Slab
024020406080how deep the point is, cmthird ray's miss of the pair's point (px)one pixelraised 25 mmraised 50 mmraised 100 mmraised 200 mma one-metre stick, 30° into waterzero at the surface, every offset

A third eye sees the water the pair cannot

A level stereo pair looking at a stick in water gets two rays that meet exactly and a stick 285 mm too short, with nothing to warn it. A third eye raised ten centimetres above the pair sees a disagreement of 2.6 pixels at the stick's tip. Asked to agree with the other two as if there were no water, it hides nearly all of that and makes the stick shorter still. Told only that there is a flat surface, the same three eyes find its refractive index and put the metre back.

refraction · Refraction
with decentring terms · residual × 40 · rms 0.54 px over the discno single viewpoint — the rays miss by a wedge's worth, varying with incidencedecentring 1.3e-2 and -5.4e-3

A calibration through glass reports a prism

Give a calibration that knows nothing of a 2° wedge in front of the lens the two decentring terms every standard model carries, and it takes three-quarters of the swirl the wedge leaves, moves the principal point further rather than less, and reports a lens decentred by about 0.013 — a lens that does not exist. Give it thin-prism terms instead and it takes more — nine-tenths at twenty-five degrees off the axis, almost all of it nearer — and reports what the glass is: a prism. Either way the residual that announced the glass goes quiet, out to 41° and 46° off the axis instead of 22°.

refraction · Slab
-0.10000.1001.201.301.401.50the index the rays are read withthe surface's height they are read with (m)the valley floorwater, at the surface±1σ: 0.143, 48 mmthree eyes, 8 points a stick, a quarter pixeldarker: the rays agree better

A water surface's height trades against its index

Three eyes that must find the water's surface as well as its index find the two along a valley: a surface assumed higher bends every ray sooner, and an index assumed weaker makes up for it. From one stick at a quarter pixel the index is known to ±0.14 and the surface to ±48 mm, and the fits do worse than that promises — they slide down the valley, and the metre-long stick comes back 881 mm. A second stick eight metres out narrows the valley to ±7.6 mm. Holding water's own index at 1.333 closes it: the surface to ±23 mm, the stick to 994.

refraction · Refraction
the lens's ownno turnhalf a turndecentring (t₁, t₂) reported at every 15° of turn, exact readingsthe lens sits inside the loop

Turning the glass tells the window from the lens

A calibration done through a two-degree wedge of glass reports a lens decentred by about 1e-2 that does not exist, and hides the glass inside it. Calibrate twice with the glass turned between, and the glass's part turns while the lens's stays: a half turn finds a real lens decentring of 2.2e-3 to 5.2e-4 with readings to 0.4 px, where one calibration was 1.0e-2 out. Three calibrations spread evenly round the turn do better, because the loop the glass traces is not a circle. What never separates is the radial coefficient, which has no direction for a turn to carry.

refraction · Slab
-202-400-2000200400along the read stick from its middle (mm)off its own straight line (mm)lean 90°stick 905 mmexact readings, an index of 1.25the bow: 2.216 mm

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.

refraction · Refraction
00.0500.1000.1501.251.301.331.401.451.50the index the eyes assume, the surface's height fitted to ithow badly the rays miss one straight line, rms pxa straight stickbowed 1 mmwaterexact readings, leaning across the sightbest fit 1.407

A bowed stick is read as a wrong index

Holding a stick to a straight line cured the slide in a refraction fit — but only for a stick leaning across the sight, where a wrong index bows the read stick by two millimetres. A stick that is itself bowed by a millimetre in the same plane is, to that constraint, a straight stick seen through the wrong index: read without error, it moves the fitted index by 0.074 one way or 0.062 the other, and at a quarter pixel the constraint's bias overtakes the slide it was removing at about three-quarters of a millimetre of bow. Its misfit is a fiftieth of a pixel, so nothing in the residuals says so. A tape, which measures length, does not notice the bow at all.

refraction · Refraction
-0.05000.050fitted index less water's, each dot one set of bow directions1 stick2 sticks4 sticks8 sticksexact readings, bows of 1 mmbar: ± the root mean square

Crooked sticks cancel each other's bows slowly, and eight of them match a tape

A stick bowed by a millimetre fools a refraction fit that holds it to a straight line: the fit reads the bow as a wrong index. Several sticks each bowed in its own random direction pull the index both ways, and the pulls cancel — but not as one over the square root of the count, because the sticks do not pull equally: a near stick pulls two and a half times harder than a far one, and a stick leaning just off the line of sight tens of times harder than one leaning straight along it. Eight crooked sticks leave the index ±0.016 out where one leaves it ±0.037, and with a quarter pixel of reading error they read it to ±0.037 — exactly what one straight stick with its length taped does. The earlier guess was that matching a tape would take a large number.

refraction · Refraction
0.0050.010.020.050.10.0010.0030.010.030.10.25how far the bow alone pulls the index (log)the bowed stick's miss, px rms (log)a quarter pixeldark: 1.8 m outlight: 2.8 m outone stick, 1 mm of bow, exact readingseach dot one direction of bow

A crooked stick hides in a quarter pixel, and its residual finds it only below a tenth

Eight sticks stand in still water, one of them bowed three millimetres and the rest one, and a refraction fit holds every stick to a straight line. Read exactly, the bad stick carries the largest share of the fit's residual in about seven sets of ten. Read to a quarter pixel, as a careful photograph is, it carries it in one set of five, barely more than chance: a millimetre of bow moves the index more than the reading error does and leaves its rays missing by a twelfth of a quarter pixel. The residual stays blind until the bad stick is bowed five or ten millimetres, and dropping the stick it ranks worst does nothing measurable for the index.

refraction · Refraction
pupildome, R = 100 mm150 mm133300 mm200600 mm267far: 400 mmfilled: the fish · ringed: where the camera focusesdistances from the pupil, mm

The focus ring reads what the dome hides

A dome port centred on a camera's entrance pupil bends no ray, so its picture carries no length; but it is a lens, and the camera focuses on the virtual image it forms. In dioptres that image is the water's own reduced nearness plus a constant, 1/V = 1/(nd) + (n − 1)/(nR), so a distant scene sits at 4.003 radii, and the focus distance reads the radius: to 6.6% behind a 100 mm dome with a 16 mm lens at f/2.8. The same constant curves a flat wall's image away from a flat focus by (n − 1)(1 − cos θ)/(nR) at every distance, so a larger dome buys a wider aperture rather than a different picture. A pupil off to one side moves the focus 2e·sin θ apart across the field, in millimetres, but twenty-six times more finely than a depth of field can read.

refraction · Port
dome, 100 mm300 mm700 mm2000 mmplan view, mm; water n = 1.333solid: imaged flat · dashed: sphere of radius 3R

A dome flattens one shape, and it is not a ball

A centred dome port is a lens of constant power, so a flat wall's corners miss a flat focus, and a photographer would like a subject whose image is flat. There is exactly one at each distance: a hyperboloid with its focus at the camera's pupil, convex toward it, whose curvature at its middle is that of a ball three times the dome's radius whatever its distance. Near the axis a ball of that size will do. But the hyperboloid recedes toward an asymptote, 45.6° off axis for a subject 700 mm behind a 100 mm dome, and past that angle no subject at all is imaged flat; a ball of the matching size has turned its outline long before. So a dome can be chosen to flatten a small convex subject over a modest field — a 35 mm dome holds a fish flank at f/0.4 where a 100 mm dome needs f/3 — and for a wall or a cave seen wide only a larger dome ever helps.

refraction · Port
dome, 100 mmimage of a wall at 0.4 mimage of a wall at 2 mflat focusfocus curved to the domeplan view, mm; water n = 1.333the camera looks right

A focus curved to the dome holds the wall and loses the fish

Behind a centred dome port a flat wall's virtual image curves toward the camera, and at its middle the curvature is the dome's own, (n − 1)/(nR), whatever the wall's distance. So a lens whose focus surface is a sphere of that curvature, about four dome radii across, holds a flat wall sharp at every distance at once: to its 45° corners at f/0.49 when the wall is 300 mm away and f/0.17 at 700 mm, where a flat focus needs f/12.5. The match is to one dome. A lens curved for a 100 mm dome is no better than a flat one behind a 200 mm dome, and a lens curved for a small dome has no focus at the corners of a large one. And the curve is spent once: the fish flank and the coral head that a matched dome held sharp with a flat focus lose a stop or more. Each subject wants the dome's curvature less its own over n, and a flat focus suits exactly one.

refraction · Port

Named alongside it

The objects these essays reach for when they reach for this one.

Model errorleast squaresSnell's lawTriangulationCamera calibrationRefractionResidualCollinearityIdentifiabilityPlane of incidenceVanishing pointApparent-depth

All concepts