Through water and glass

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.

Worth reading first: The port that is not there · What a ray does at a surface.

The dome knows its offset in units of itself found that a dome port photographing underwater bends rays by an amount that depends on how far the camera’s entrance pupil sits from the dome’s centre, divided by the dome’s radius, and on nothing else. A ten-centimetre dome six millimetres off centre and a twenty-centimetre dome twelve millimetres off centre take the same picture, bit for bit. The essay drew the general rule from it: an arrangement made only of reflection, refraction and a pinhole has nothing in its physics that carries a length, so every picture it takes reports ratios.

It also said, near its end, that one thing about a dome does carry a length. A dome forms a virtual image of the underwater world close in front of the glass, the lens has to focus on that image, and where it sits depends on the radius in millimetres. The picture reports the departure from a pinhole and so the ratio; the focus reports the optics’ own geometry and so the size. That remark was not measured. This essay measures it: where the virtual image is, what the focus ring can read from it, what it does to a flat subject’s corners, and whether the offset the picture reports only as a ratio comes back in millimetres too.

The dome as a lens

The dome is a thin spherical shell of glass of radius R between water of index 1.333 and the air inside the housing. Its thickness and the glass’s own index are set aside: a thin concentric shell has almost no power of its own, and what matters is the water’s curved boundary with the air.

A centred dome puts the whole underwater world between its own shell and four radii out, along the ray it was seen onA dome port of radius 100 mm centred on a camera's entrance pupil, in water of index 1.333, and one ray from the pupil at 20°. A fish on that ray 150, 300 and 600 mm from the pupil, and one far off, is seen in the same direction, since the ray meets the glass square on, but the camera has to focus on the dome's virtual image of it: at 133, 200, 267 mm and 400 mm, the last nR/(n − 1), four radii. Every distant object's image lies on a sphere of that radius about the pupil (dashed).pupildome, R = 100 mm150 mm133300 mm200600 mm267far: 400 mmfilled: the fish · ringed: where the camera focusesdistances from the pupil, mm
Fig. 1 A dome of radius 100 mm centred on a camera’s entrance pupil, one ray from the pupil, a fish on that ray at 150, 300 and 600 mm and one far off, and where the dome puts the image the camera must focus on.

Centred on the pupil, every ray the camera sees meets the dome square on, along a radius, and passes through it undeviated. That is why the port that is not there found a centred dome costs a picture nothing at all: every direction is kept, so the picture is the pinhole picture of the water as though the glass were absent. But a ray is a line and a lens acts on pencils. The narrow cone of light from one point of a fish to the whole width of the pupil meets the curved surface at slightly different places, at slightly oblique incidence, and the water-to-air boundary bends the edges of that cone outward. The pencil leaves the dome diverging more steeply than it arrived, as though it came from a point nearer the camera. The camera, which must bring that pencil to a point on its sensor, has to focus on the nearer point.

Along each ray, then, a fish 150 mm from the pupil is focused at 133 mm, one at 300 mm at 200 mm, one at 600 mm at 267 mm, and a fish at any great distance at 400 mm. All of them are seen in exactly the direction they lie in, and all of them must be focused at a distance between the dome’s own surface and four radii out. A distant object’s virtual image lies at nR/(n−1)nR/(n-1) from the pupil, 4.003 radii for water, and since the dome is the same along every ray, the far images of the whole underwater world lie on a sphere of that radius about the pupil.

Followed along a ray by Coddington’s equations for a narrow pencil refracted at a sphere, the two directions of the pencil, along the ray’s plane and across it, come to the same point when the incidence is square, so the centred dome forms these images without astigmatism, exactly.

In dioptres, the dome is a constant

The relation between the fish’s distance and the focus distance looks awkward written in millimetres. Written in dioptres, the reciprocal of distance in metres, it becomes a straight line.

In dioptres a centred dome adds a constant to the water's own reduced nearness: 1/V = 1/(nd) + (n − 1)/(nR)For a fish d from the pupil, the nearness the camera must focus at, 1/V, against the fish's own nearness 1/d, both in dioptres. A flat port (dot-dash) only divides the nearness by the water's index, the familiar reduced distance. A centred dome adds the same straight line a constant, (n − 1)/(nR): 5.00 D for a 50 mm dome, 2.50 D for 100 mm and 1.25 D for 200 mm. The constant is a power, and a power has a length in it: the radius.05100246the fish's nearness, 1/d (dioptres)where the camera focuses, 1/V (dioptres)flat portdome, R = 50 mmdome, R = 100 mmdome, R = 200 mmcentred domes, water n = 1.333slope 1/n, intercept (n − 1)/(nR)
Fig. 2 The nearness the camera must focus at against the fish’s own nearness, both in dioptres, through a flat port and through centred domes of radius 50, 100 and 200 mm.

For a fish a distance dd from the pupil, the camera focuses at VV where

1V=1n d+n−1n R.\frac{1}{V} = \frac{1}{n\,d} + \frac{n-1}{n\,R}.

The first term is what a flat port does. A flat window does not image a fish where it is but at its reduced distance, the real distance divided by the water’s index, which is the familiar way underwater objects look a quarter nearer than they are; a point under water has two depths met the same division in another form. The dome keeps that term and adds a constant: 5.00 dioptres behind a 50 mm dome, 2.50 behind 100 mm, 1.25 behind 200 mm. The constant is the dome’s power as a lens, and a power is the reciprocal of a length. That is the length the earlier essay said the dome’s optics carry and its pictures do not.

Two things follow at once. A fish at any distance at all, from the glass to infinity, is focused between the dome’s surface and 4.003 radii, so the whole underwater world is compressed into a few tens of centimetres of focus. And the constant is the same for every fish, every direction and every distance, which is what the rest of this essay turns on.

Reading the radius off the focus scale

The plainest consequence is that a camera focused on a distant scene through a centred dome is focused at four radii, so its focus distance is a measurement of the radius.

Focused on a distant scene, the lens reads the dome's radius as four radii, to a few per cent behind a small dome and coarsely behind a large oneA lens focused on a distant scene through a centred dome is focused at nR/(n − 1), so its focus distance is the radius times 4.003. A focus is found to about half the depth of field, N·c/f² dioptres with a 0.015 mm circle of confusion: 0.164 D for a 16 mm lens at f/2.8. As a share of the radius that is the dioptres times the focus distance, so it grows with the dome: 3.3%, 6.6% and 13.1% for 50, 100 and 200 mm domes at f/2.8; 18.8% at f/8; 4.2% with a 24 mm lens at f/4.0204050100150200250dome radius (mm)radius read from the focus, ± (%)24 mm at f/416 mm at f/2.816 mm at f/8half the depth of field, c = 0.015 mmfocus distance = 4.003 R
Fig. 3 The uncertainty of the dome’s radius read from a focus on a distant scene, against the radius, for a 16 mm lens at f/2.8 and f/8 and a 24 mm lens at f/4, the focus found to half a depth of field.

How finely the radius is read depends on how finely the focus is found. A lens cannot be focused more finely than its depth of field allows the eye or the autofocus to judge, and half the depth of field in dioptres is the f-number times the circle of confusion over the focal length squared. For a 16 mm lens at f/2.8 with a 0.015 mm circle that is 0.164 dioptres. As a share of the radius, the uncertainty is those dioptres times the focus distance, so it grows with the dome: 3.3% behind a 50 mm dome, 6.6% behind 100 mm, 13.1% behind 200 mm. Stopped down to f/8 the depth of field triples and the reading is 18.8% behind 100 mm; a 24 mm lens at f/4 does better than either, 4.2% behind 100 mm, because a longer lens has a shallower depth of field at the same distance.

This is a genuine measurement of a length from a camera and a dome alone, with no target of known size. It is the same move a close picture carries its own distance made in air, where a lens’s focusing extension recorded how far it was focused and a picture’s vanishing points recovered the extension. Behind a dome the focus is not on the subject at all but on the dome’s image of the far scene, so what it records is not the subject’s distance but the dome’s radius.

The general rule the earlier essay stated is exactly right about this, and it is worth saying how. Reflection, refraction and a pinhole carry no length. A lens’s focus does: a lens of focal length f focused at a distance moves its glass by a definite number of millimetres, and that mechanism is the length that breaks the similarity. The picture through a dome is scale-free; the focus ring is not, because the focus ring is a ruler.

Corners: a constant power curves a flat subject

A camera behind a dome photographing a flat subject, a wreck’s hull or a reef wall seen square on, meets the dome’s most familiar fault: the middle sharp and the corners soft. The dioptric law says exactly how soft.

A flat wall's virtual image curves away from a flat focus by (n − 1)(1 − cos θ)/(nR), at every distance, so a larger dome is a flatter fieldA flat wall square to the camera, through a centred dome, and a flat focus set on the wall's middle: the miss at angle θ from the middle, in dioptres. It is (n − 1)(1 − cos θ)/(nR) exactly, the same for a wall at 300 mm or at infinity, because the dome's power is a constant added to the water's: at 45°, 1.46 D behind a 50 mm dome, 0.73 D behind 100 mm and 0.37 D behind 200 mm. The dotted line is half the depth of field of a 16 mm lens at f/8, 0.47 D.0120204060angle from the middle of the picture (degrees)corner's miss of a flat focus (dioptres)16 mm at f/8R = 50 mmR = 100 mmR = 200 mmany wall distance gives these curvesflat focus set on the middle
Fig. 4 A flat wall square to the camera through a centred dome, the focus set flat on the wall’s middle, and the miss at each angle from the middle, in dioptres, for domes of radius 50, 100 and 200 mm. The slider moves the angle read off all three curves.

The wall’s point at angle θ from the middle is d/cos⁡θd/\cos\theta from the pupil, and the camera’s flat focus, set on the middle, is at V/cos⁡θV/\cos\theta along the same ray. With the law, the dioptric difference between where the corner’s image is and where the flat focus is comes out as

(n−1)(1−cos⁡θ)n R,\frac{(n-1)(1-\cos\theta)}{n\,R},

and the wall’s distance has cancelled. A wall at 300 mm and a wall at infinity have exactly the same corner miss, because the water’s term is the same fraction of the distance at every angle and only the dome’s constant is left over. At 45 degrees that is 1.46 dioptres behind a 50 mm dome, 0.73 behind 100 mm and 0.37 behind 200 mm. Doubling the dome halves the miss.

The miss is a curvature of the image, not of the picture. The corner is still seen in exactly the right direction, since the centred dome bends no ray; it is only focused at the wrong distance. The virtual images of a flat wall lie on a curved surface, and a flat sensor behind a lens focused on a plane cuts that surface only in the middle.

The same picture at a different aperture

What a photographer does about soft corners is stop down until the depth of field covers them, and the law turns that into arithmetic.

The f-number that holds a corner sharp falls in proportion to the dome's radius and rises as the square of the focal lengthThe f-number at which half the depth of field covers a 45° corner's miss, N = miss·f²/c with c = 0.015 mm. For a 16 mm lens: f/25.0 behind a 50 mm dome, f/12.5 behind 100 mm and f/6.2 behind 200 mm. For a 12 mm lens, f/7.0 behind 100 mm; for 24 mm, f/28.1. The picture is the same through every dome of the same offset ratio; the aperture it can be taken at is not.f/2f/2.8f/4f/5.6f/8f/11f/16f/22f/32f/45f/6450100150200250dome radius (mm)f-number to hold a 45° corner12 mm lens16 mm lens24 mm lenshalf the depth of field covers the miss45° from the middle
Fig. 5 The f-number at which half the depth of field covers a 45° corner’s miss, against the dome’s radius, for 12, 16 and 24 mm lenses.

The f-number that holds a 45-degree corner within half the depth of field is the miss times the focal length squared over the circle of confusion. For a 16 mm lens that is f/25 behind a 50 mm dome, f/12.5 behind 100 mm and f/6.2 behind 200 mm. A 12 mm lens needs f/7.0 behind a 100 mm dome; a 24 mm lens would need f/28, if its field reached 45 degrees at all. The aperture is proportional to the miss, so it falls as the radius grows, and it rises as the square of the focal length.

That gives the earlier essay’s observation its practical half. Two domes with the same offset ratio take the same picture, bit for bit, in where every ray goes. They do not take it at the same aperture. The larger dome’s image is flatter in dioptres, so it can be shot two stops wider open for the same corner sharpness, with less diffraction, less noise and a faster shutter. Underwater photographers prefer large domes for wide lenses for exactly this reason; the measurement says the preference is a statement about dioptres and has nothing to do with the picture’s geometry, which the dome’s size cannot change.

The offset, in millimetres

The earlier essay’s central quantity was the pupil’s offset from the dome’s centre, which the picture reports only as a fraction of the radius. The focus might report it in millimetres.

A pupil off to one side moves the focus apart across the field by twice the offset times the sine of the angle, in millimetres, for any domeA distant scene through a dome whose entrance pupil sits a few millimetres to one side of its centre, and the distance the camera must focus at 40° to either side of the middle, by Coddington's equations. The difference is 2e·sin 40°, 1.286 millimetres per millimetre of offset, for a 50, 100 or 200 mm dome alike: 5.14 mm at 4 mm of offset. The two foci part by at most 0.0068 D at 6 mm. Reading a millimetre of focus difference at 400 mm needs the focus to 0.0062 D, about 26 times finer than the depth of field of a 16 mm lens at f/2.8.0510150246810pupil's offset to one side of the dome's centre (mm)focus at −40° less focus at +40° (mm)R = 50 mmR = 100 mmR = 200 mma distant scene, ±40° from the middleslope 2 sin 40° = 1.286
Fig. 6 A distant scene through a dome whose entrance pupil sits a few millimetres to one side of its centre: the difference between the distance the camera must focus at 40° to one side and 40° to the other, for domes of radius 50, 100 and 200 mm.

With the pupil to one side, the sphere of far images is still centred on the dome, but the camera now looks at it from off centre, so the distance to it differs across the field. Followed by Coddington’s equations, the focus needed at 40 degrees to one side and 40 degrees to the other differs by 2esin⁡40∘2e\sin 40^\circ, 1.286 millimetres for every millimetre of offset: 5.14 mm at 4 mm off centre, for a 50, 100 or 200 mm dome alike. The radius has dropped out, because the offset moves the pupil relative to a sphere whose size does not matter to first order. The pencils’ two foci part when the incidence is no longer square, but by at most 0.0068 dioptres at 6 mm of offset, far too little to see.

So the focus does carry the offset in millimetres, and it carries it independently of the radius, which is exactly the length the picture could not supply. Whether it can be read is another matter. A millimetre of focus difference at 400 mm is 0.0062 dioptres, twenty-six times finer than the depth of field of a 16 mm lens at f/2.8. No focus scale and no ordinary autofocus resolves it. The offset is in the focus, but too finely written to read.

What can be read is the product of two coarser things. The picture reports the offset as a fraction of the radius, which the earlier essay found precise, and the far focus reports the radius to a few per cent. Multiplied, they give the offset in millimetres to the focus’s few per cent, which is enough to say whether a port extension needs another few millimetres, and that is the use a photographer has for it.

Every instrument in the row, with its length found

The earlier essay ended on a test for any optical instrument: before asking what it measures, ask what in the arrangement has a length in it. A shadow is a second projection has one because the floor is somewhere. The caustic is the mirror’s own ruler has one because the table is. A floor anamorph is three numbers has one because the marks are laid down in the room. A dome, it now turns out, has one too, and it is behind the glass rather than in front of it: the lens’s own focusing travel, which measures vergence, and vergence is the reciprocal of a length.

That reading also says why the length is so much less precise than the ratio. The picture’s departure from a pinhole is read from the positions of many points across a frame, each to a fraction of a pixel, and the earlier essay could measure the ratio finely. The focus is read from one quantity, the sharpness of a whole picture against the focusing travel, and sharpness is a broad maximum whose width is the depth of field. A length enters through the coarsest channel the camera has.

The dome and the lens, as modelled

The shell is thin. A real dome is several millimetres of glass or acrylic, a concentric meniscus whose own power is small and negative and adds slightly to the water’s; the law keeps its form with a slightly different constant.

The pupil is a point. A real entrance pupil has a size, which is what makes a pencil, and the entrance pupil walks with the angle found it also moves with the field angle; a wide lens’s pupil cannot be centred on the dome at every angle at once, so every real dome has some of the offset measured here at the edges of its field.

Focus is found to half a depth of field. A contrast-detecting autofocus that fits a curve to sharpness can find the peak several times more finely; a scale read by eye, no better.

The lens focuses on a plane. Real wide-angle lenses have field curvature of their own, which can be designed to partly match a dome’s; the miss here is the dome’s alone.

Still open: whether a dome can be focused in one pass for a curved subject

The corner miss is a property of a flat subject. A curved subject, the inside of a cave or the round flank of a fish photographed close, is at different distances in different directions, and its virtual images lie on a different surface again: by the law, a subject surface given in dioptres maps to an image surface shifted by the dome’s constant and scaled by the water’s index.

The measurement that settles it takes subjects of stated curvature, convex toward the camera and concave, and asks whether there is a curvature of subject for which a dome’s virtual image is flat, so that a flat focus is sharp to the corners at full aperture; how that curvature depends on the radius, which by the law it must; and whether a photographer choosing a dome for a habitual subject, a cave wall or a reef dome, could choose its radius to flatten that subject’s image rather than to maximise the aperture.

A dome flattens one shape, and it is not a ball takes that measurement: the subject imaged flat is a hyperboloid with its focus at the pupil, a ball three dome radii across near the axis, and past an angle set by its distance over the radius no subject is imaged flat at all.

A centred dome bends no ray, so its picture carries no length, but it is a lens of constant power, (n−1)/(nR)(n-1)/(nR): the camera focuses at 1/V=1/(nd)+(n−1)/(nR)1/V = 1/(nd) + (n-1)/(nR), and a distant scene at 4.003 radii. The focus on a far scene reads the radius, to a few per cent with a wide aperture behind a small dome. The same constant curves a flat wall’s image away from a flat focus by (n−1)(1−cos⁡θ)/(nR)(n-1)(1-\cos\theta)/(nR) at any distance, so a larger dome takes the same picture at a wider aperture. A pupil off centre moves the focus 2esin⁡θ2e\sin\theta apart across the field, in millimetres and whatever the radius, but far more finely than a depth of field can read.

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 of fieldDome portEntrance pupilRefractive indexscale ambiguityVirtual image