The real instrument

One focus stopped down is as sharp as six in a deep room

Refocusing a room panorama frame by frame costs a seam of 12.9 arcminutes on a fixed head. One focus stopped down costs none of that, and at f/40 holds half a metre to four metres to 5.27 arcminutes — sharper than the fixed head's seam, blunter than a tracking head's 2.82. But the comparison flatters refocusing: the frame on the table also holds the wall behind it, so it cannot be held sharper than 5.27 however it is focused. Counted properly, one focus on a plain head comes within 2.4 per cent of the geared one, and pays for it in light.

Worth reading first: The eye is a place, not a point · What a 360-degree photograph actually is.

A refocused panorama is six lenses shot a room as six frames sixty degrees apart, focusing each on what was in front of it — a table at half a metre, a chair, a doorway, the far wall twice, a shelf. Every frame then had its entrance pupil in its own place, carried forward by its own focusing extension, and the best fixed panorama head left 12.9 arcminutes along the worst seam. A head geared to slide the camera back as the lens extends left 2.82, the floor set by the pupil’s walk with field angle. That essay ended with the comparison a photographer actually faces: whether to refocus at all.

The alternative is to focus once and stop the lens down until the table and the wall are both acceptably sharp. Every frame then has its pupil in the same place, and a plain head aligned on it leaves only the walk. What it costs is blur — defocus at the ends of the room’s depth, and past some aperture, diffraction everywhere — and light.

The measurement below finds the best that one focus can do, and then finds that the question it answers was set up unfairly to it. Refocusing each frame does not make each frame sharp, because the frames are not shallow.

The best one focus can do

The lens is the fifty-millimetre design of the earlier essays, and blur is measured the way seams were, as an angle in arcminutes, so that the two can be put side by side. At the scale those essays used, sixty pixels to the degree, an arcminute is a pixel.

One focus holds the room from half a metre to four to 5.27′ at best, at f/40 — sharper than the fixed head's 12.9′ seam, never as sharp as the tracking head's 2.82′The fifty-millimetre lens focused once, at 0.889 m — the harmonic mean of the room's nearest and farthest subjects, which blurs the two ends equally — and stopped down. The blur at the table and at the far wall, in arcminutes: defocus falls in proportion to the pupil, diffraction (the Airy disc to its first dark ring, at 550 nm) rises as the pupil shrinks, and together, root-summed, they are least at f/40.4, where they are 5.27′. At f/4 the ends blur by 36′; at f/16, 9.5′; at f/128, 11.9′. The refocused panorama's worst seam on the best fixed head is 12.9′, reached by one focus at about f/12; on a head that moves with the focus it is 2.82′, which no aperture reaches.2481632641280.5125102050100f-number (log scale)worst blur between 0.5 m and 4 m (arcminutes, log scale)refocused, fixed head: 12.9′ seamrefocused, tracking head: 2.82′defocus at the endsdiffractionboth togetherone focus at 0.89 m, 550 nm lightleast at f/40
Fig. 1 The lens focused once, at 0.889 m, and stopped down: the blur at the table and the wall. Defocus falls with the pupil and diffraction rises; together they are least at f/40, 5.27′. At f/4 the ends blur by 36′, at f/16 by 9.5′. The fixed head’s 12.9′ seam is matched near f/12; the tracking head’s 2.82′ by no aperture.

Two blurs set the answer. A point that is not at the focused distance images as a disc, and seen from the lens the disc subtends an angle equal to the diameter of the entrance pupil times the difference between the reciprocals of the two distances. That is the whole of defocus for small angles, and it needs no focal length once the pupil is fixed: a lens whose pupil is a centimetre across blurs a point at half a metre, focused at one metre, by a centimetre times one per metre, a hundredth of a radian, whatever lens it is. Diffraction goes the other way. A pupil of diameter AA spreads every point into an Airy disc whose first dark ring subtends 2.44λ/A2.44\lambda/A, which grows as the pupil shrinks. The figure takes green light, 550 nanometres, and adds the two blurs as a root sum of squares — an assumption about how two blurs of different shape combine, and the one the result is most sensitive to.

The focus that treats the room’s two ends alike is the one that puts them the same distance away in reciprocal terms: the harmonic mean of half a metre and four metres, 0.889 metres. At f/4 the table and the wall then blur by 36 arcminutes each. At f/16, by 9.5. The blur falls as the lens is stopped down until diffraction catches up, and together they are least at f/40, where both ends blur by 5.27 arcminutes. Beyond that, stopping down makes everything worse; at f/128 the room is 11.9 arcminutes soft everywhere.

That is the whole answer to the question as it was posed. One focus beats six focuses on a fixed head, whose worst seam is 12.9 arcminutes, from about f/12 onwards. It never reaches the tracking head, whose worst seam is 2.82. So the essay that proposed the comparison had the ordering right: a geared head and six focuses are the sharp way, a plain head and one focus the cheap way, a plain head and six focuses the worst of both.

Why the floor has no lens in it

The floor of 5.27 arcminutes has a closed form, and it is worth writing down because of what is missing from it. With Δ\Delta the difference of reciprocal distances the focus has to span, the worst defocus at the best focus is AΔ/2A\Delta/2 and the diffraction is 2.44λ/A2.44\lambda/A. Their root sum of squares is least when the pupil is A=4.88λ/ΔA = \sqrt{4.88\lambda/\Delta}, and there it equals

βmin⁡=2.44 λ Δ radians.\beta_{\min} = \sqrt{2.44\,\lambda\,\Delta}\ \text{radians}.

For the room, Δ\Delta is two per metre less a quarter per metre, and βmin⁡\beta_{\min} is 5.27 arcminutes. The focal length does not appear. Neither does the sensor, nor the pixel pitch. The sharpest angle a depth of room can be held to at one focus is a fact about the room and the colour of the light, and every lens reaches it at the f-number that gives it the right pupil: a pupil 1.24 millimetres across, which is f/40 on a fifty and f/19 on a twenty-four. The sharp band is a decision made the point that depth of field is set by how much blur a reader will ignore rather than by the optics alone; here the optics set a hard lower limit on that tolerance, and it is independent of which optics.

Focused at 0.89 m, the table at half a metre and the wall at four blur alike — 5.27′ each at f/40The blur of a point at each distance with the lens focused once at 0.889 m, at three apertures. Defocus is the pupil times the difference of reciprocal distances, so on a scale of reciprocal distance the blur is a V whose point is the focus; the harmonic-mean focus puts the table at 0.5 m and the wall at 4 m on its two arms at the same height. At f/8: 18.8′ at both ends and 23.1′ at 20 m. At f/16: 9.5′ and 11.6′. At f/40: 5.27′ at the ends, 3.73′ at the focus itself — diffraction alone — and 5.9′ at 20 m. The room's six subjects are marked on the axis.0.30.51241020125102050distance of the subject (m, log scale)its blur (arcminutes, log scale)f/8f/16f/40one focus at 0.89 m; ticks: the room's subjectsa V in reciprocal distance
Fig. 2 Focused at 0.889 m, the blur against the subject’s distance at f/8, f/16 and f/40: a V in reciprocal distance, the table and the wall on its two arms at one height. At f/40 the ends blur by 5.27′, the focused distance by 3.73′ — diffraction alone — and a point at 20 m by 5.9′.

Drawn against distance, the blur at a single focus is a V on a scale of reciprocal distance, with its point at the focus. The table at half a metre and the wall at four sit on its two arms at the same height, which is what the harmonic-mean focus is for. The V’s point is not zero once the lens is stopped far down: at f/40 the focused distance itself blurs by 3.73 arcminutes, all of it diffraction, so at the aperture that holds the room best, nothing in the room is sharper than that. Drag the focus off the harmonic mean and the V tips: set at 0.6 metres, the table sharpens to 3.99 arcminutes and the wall coarsens to 7.09; set at 1.5 metres, the table is the end that pays, at 6.79. Either way the room is only as sharp as its worse end, which is why the focus where the two ends are equal is the one worth having.

The pupil in the formula is the entrance pupil, not the stop. The hole a scene actually sees found that for a lens of this kind the opening the scene looks through is the stop’s image, larger than the stop and in a different place, and it is that image’s diameter the f-number divides into the focal length. So the floor is set by the size of the hole as seen from the room — the same hole whose position decides where the panorama must turn. A lens whose entrance pupil is far from its stop can reach f/40 with a stop that is physically smaller than 1.24 millimetres, which matters to the lens’s maker and not at all to the picture.

The formula also says what does not help. A longer lens reaches the floor at a larger f-number, and a shorter one at a smaller, but the floor is the same angle. A finer sensor records the same blur across more pixels; a coarser one across fewer. Nothing about the camera moves the sharpest angle a room of this depth can be held to at one focus, and the only way below it is to stop asking one focus to hold the room — which is what refocusing was supposed to do.

Each frame already holds the room’s depth

The comparison above set one focus’s worst blur against six focuses’ worst seam, as the question proposed, and in doing so assumed that a refocused frame is sharp. It is sharp on its subject. But a frame pointed at a table half a metre away does not hold only the table. The wall is behind it, four metres off, in the same frame.

Held alone, the table's frame can be no sharper than 5.27′ — and the whole room at one focus, 5.39′Each of the room's six frames holds more than its subject: the table frame from 0.5 to 4.0 m, a chair frame from 0.7 to 4.0 m, the doorway frame from 1.5 to 6.0 m, the far wall frame from 4.0 to 4.0 m, the far wall frame from 4.0 to 4.0 m, the shelf frame from 1.2 to 4.0 m. The sharpest a frame can be held, at its own best focus and its own best stop, is √(2.44 λ Δ) with Δ the difference of reciprocal distances it spans — no focal length in it: 5.27′ for the table, 4.32′ for a chair, 2.82′ for the doorway, 0.00′ for the far wall, 0.00′ for the far wall, 3.04′ for the shelf. The whole room at one focus, half a metre to six, can be held to 5.39′ at f/41. Refocusing frame by frame therefore buys 2.3% on the frame that decides the panorama's sharpness, because the table's frame already holds nearly all of the room's depth.0246the six frames, each held alone at its own best focus and stopsharpest the frame can be held (arcminutes)the whole room at one focus: 5.39′0.5–4 m0.7–4 m1.5–6 m4.0–4 m4.0–4 m1.2–4 meach frame at its own best focus and stop√(2.44 λ Δ)
Fig. 3 Each frame held alone at its own best focus and stop, the square root of 2.44 times the wavelength times the dioptre span of its depth: the table’s frame (0.5–4 m) 5.27′, the chair’s 4.32′, the doorway’s (1.5–6 m) 2.82′, the far wall’s 0, the shelf’s 3.04′. The whole room at one focus, 0.5–6 m, 5.39′.

The figure gives each frame the depth it actually holds: the table’s frame from half a metre to the wall at four; the chair’s from seventy centimetres to four; the doorway’s from a metre and a half through the door to a corridor at six; the two frames on the far wall nothing but the wall; the shelf’s from 1.2 metres to four. Each frame, refocused and stopped down on its own, can be held no sharper than the closed form allows for its own depth. The table’s frame is limited to 5.27 arcminutes, exactly what one focus managed for the room from half a metre to four, because the table’s frame is the room from half a metre to four. The whole room at one focus, now including the corridor at six metres, can be held to 5.39.

So refocusing frame by frame buys 2.3 per cent on the frame that decides the panorama’s sharpness. It buys a great deal on the frames of the far wall, which can be held perfectly sharp — but those were never the problem. The frame that sets the panorama’s worst blur is the one with the nearest subject, and the nearest subject almost always has the room behind it. Focusing is a zoom found that a refocused frame is a different lens; this is the other half of the same observation, that a refocused frame is still a frame with depth in it, and focusing moves the V without narrowing it.

Three ways to shoot the room, counted fairly

With each frame’s own depth counted, the three strategies can be compared on both of the things they cost: the worst seam and the worst blur.

Stopped down, the room's worst is 12.9′ on six focuses and a fixed head, 5.27′ with a tracking head, 5.39′ on one focus and a fixed headThe worst seam and the worst blur of the room shot three ways, each frame stopped to the sharpest its own depth allows. Six focuses on the best fixed head: seam 12.9′, blur 5.27′ (the table's frame). Six focuses on a head that moves with the focus: seam 2.82′, blur 5.27′. One focus at 0.92 m for every frame, stopped to f/41.3, on a fixed head at its best pivot (1.99 mm): seam 2.83′ — every frame's pupil in one place, so only the walk with field angle is left — and blur 5.39′. Once each frame's own depth is counted, the blur, not the seam, is what limits every way of shooting this room, and one focus comes within 2.4% of the tracking head with no moving parts.051015three ways to shoot the room, every frame stopped to its sharpestarcminutessix focuses, fixed headsix focuses, tracking headone focus at f/41, fixed headworst seamworst blureach frame stopped to its sharpestthe blur sets the floor
Fig. 4 Each frame stopped to its sharpest. Six focuses on the best fixed head: seam 12.9′, blur 5.27′. Six focuses on a tracking head: seam 2.82′, blur 5.27′. One focus at 0.92 m and f/41 on a fixed head at its best pivot: seam 2.83′, blur 5.39′.

Six focuses on a fixed head are the worst on both counts: the seam is 12.9 arcminutes, and the blur is still 5.27, because refocusing did not relieve the table’s frame of its depth. Six focuses on the geared head bring the seam down to 2.82 and leave the blur at 5.27. One focus for every frame, stopped to f/41, on a plain head aligned at the pivot that suits that focus, leaves a seam of 2.83 arcminutes — every frame’s pupil in one place, so only the walk with field angle remains, exactly as for the geared head — and a blur of 5.39.

In every column the taller bar is the blur. Once depth within a frame is counted, what limits a room panorama at its best is not where the camera turns but how much of the room each frame has to hold, and that limit is the same whether the frames are refocused or not. One focus on a plain head comes within 2.4 per cent of six focuses on a geared head, and needs no gearing, no unlinked stitcher and no per-frame focal lengths — the last of which the earlier essay found to be the largest error of all, 270 arcminutes, in a refocused panorama read by a stitcher that assumes one lens.

Where the answer depends on the room

The room here is a hard case: a table half a metre from the lens, a wall at four. The two quantities that compete scale differently with how near the nearest subject is, so the verdict moves with it.

The nearer the nearest subject, the more the blur wins: 5.3′ against a 2.8′ seam at half a metre, 2.0′ against 0.70′ at twoA frame holding everything from its nearest subject to a wall at four metres, and the seam at that subject. The sharpest blur any focusing can give it, √(2.44 λ Δ), grows only as the square root of the reciprocal distance: 6.99′, 5.97′, 5.27′, 4.32′, 3.45′, 2.57′, 1.99′, 1.15′ for nearest subjects at 0.3, 0.4, 0.5, 0.7, 1, 1.5, 2, 3 m. The seam a head with every pupil on its pivot leaves — the tracking head, or one focus — grows as the reciprocal itself: 4.70′, 3.52′, 2.82′, 2.01′, 1.41′, 0.94′, 0.70′, 0.47′. The seam when that frame is refocused on its subject and its neighbour is focused on the wall, on a head aligned at the lens's best pivot for distant focus, grows faster still: 80.3′, 42.7′, 26.2′, 13.0′, 7.0′, 3.6′, 2.3′, 1.3′. At every distance drawn the refocused seam stays above the blur.0.30.51230.20.5125102050the nearest subject, the far wall at 4 m (m, log scale)arcminutes (log scale)seam, refocused on a fixed headsharpest blur, any focusingseam, tracking head or one focusfar wall at 4 m, each frame stopped to its sharpestblur ∝ √(1/near), seam ∝ 1/near
Fig. 5 A frame holding its nearest subject to a wall at 4 m. The sharpest blur any focusing gives it grows as the square root of one over the near distance: 1.15′ at 3 m, 5.27′ at 0.5 m, 6.99′ at 0.3 m. The seam with every pupil on its pivot grows as 1/near: 0.47′ to 4.70′. Refocused beside a frame focused on the wall: 1.3′ to 80.3′.

The floor on blur, 2.44λΔ\sqrt{2.44\lambda\Delta}, grows as the square root of the reciprocal distance: from 1.15 arcminutes when the nearest subject is three metres away to 6.99 when it is thirty centimetres. The seam that a head leaves when every frame’s pupil is on its pivot — the tracking head, or one focus on a plain head — grows as the reciprocal itself, from 0.47 to 4.70 arcminutes, because it is a fixed offset seen from a distance. Across the whole range the blur is the larger, by a factor of about two at half a metre and two and a half at three metres. So wherever a frame holds a subject and a wall behind it, blur is the limit and the seam is not.

The seam a fixed head leaves when one frame is refocused on a near subject and its neighbour is not grows much faster, from 1.3 arcminutes at three metres to 80 at thirty centimetres, because the focusing extension itself grows as the square of the reciprocal distance. That is the cost that one focus avoids, and it is the cost that makes refocusing on a plain head the worst choice at every distance drawn. At every distance drawn the refocused seam is larger than the blur the room’s depth already imposes — by about a sixth at two metres, twice at one metre, five times at half a metre and eleven times at thirty centimetres.

What one focus costs in light

None of this is free. A lens at f/41 admits a hundredth of the light it admits at f/4, and the price rises steeply near the floor, because once diffraction is half the blur, a little more stopping down buys almost nothing.

Holding the whole room at one focus to 6′ costs 5.8 stops of light against f/4; to within 2% of its floor, 6.3The widest aperture that holds every distance from half a metre to six to a stated blur at the best single focus — the larger of the two pupils at which defocus and diffraction together reach that blur — and the light it costs against f/4, in stops: 5.50′ at f/35.9, 6.3 stops; 6.00′ at f/29.5, 5.8 stops; 8.00′ at f/20.3, 4.7 stops; 10.00′ at f/15.9, 4.0 stops; 12.90′ at f/12.3, 3.2 stops; 20.00′ at f/7.9, 2.0 stops. Close to the floor the price rises steeply, because a little more stopping down buys almost nothing once diffraction is half the blur. The fixed head's refocused seam, 12.9′, is matched at f/12.3, 3.2 stops down: 9 times the exposure, which a still room on a tripod can afford and a hand-held camera cannot.hold the room to 5.50′6.3 stopshold the room to 6.00′5.8 stopshold the room to 8.00′4.7 stopshold the room to 10.0′4.0 stopshold the room to 12.9′3.2 stopshold the room to 20.0′2.0 stopsone focus, half a metre to six, against f/4the price of a single focus
Fig. 6 The widest aperture that holds the room from half a metre to six to a stated blur at one focus, and its cost in stops against f/4. To 5.50′, within 2% of the floor: f/36, 6.3 stops. To 6′: f/29.5, 5.8. To 8′: f/20, 4.7. To 12.9′, the fixed head’s refocused seam: f/12.3, 3.2. To 20′: f/7.9, 2.0.

Holding the room to within 2 per cent of its floor takes f/36, 6.3 stops below f/4. Relaxing to six arcminutes saves half a stop, to eight saves one and a half more, and matching the fixed head’s refocused seam of 12.9 arcminutes takes only f/12.3, 3.2 stops, nine times the exposure. For a still room on a tripod — which is where a panorama head is used at all — six stops is a longer exposure and nothing more. For anything that moves, or for a hand-held panorama, it is the whole cost, and the geared head that lets each frame be shot wide open on its own subject is the only route to a sharp foreground.

Even then, as the section on each frame’s depth showed, wide open on its own subject is not sharp everywhere in the frame: the table’s frame shot at f/4 blurs the wall behind the table by far more than any seam. Refocusing buys light, not depth. The two strategies spend different currencies — one focus spends exposure time to buy depth, six focuses spend mechanical complexity and per-frame calibration to buy aperture — and in a still room with depth in every frame, only the first buys the thing the panorama needs.

What the stopped-down panorama keeps

The earlier essays in this sequence traced the centre of a panorama from a point, to a pupil, to a pupil that walks with field angle, to a pupil that moves with focus. The eye is a place, not a point started it, and focusing moves the pivot past its best place found that focus carries the pupil further than the walk does. A single focus undoes that last step. Every frame has the same lens, the same pupil and the same principal distance, so the panorama is once again one instrument turned about one place, with only the walk left along its seams — the walk the entrance pupil walks with the angle measured, 5.53 millimetres across the field for this front element — and the pivot that is not the eye already priced what such an offset costs. And the harmonic mean that sets the best single focus is the same harmonic midpoint that a rig is right on one surface found for the depth a multi-camera stitch should be computed at: in both, depth enters as its reciprocal, and the fair middle of a range of depths is the middle of their reciprocals.

What it gives up is sharpness at the focus itself. At f/40, nothing in the room is sharper than 3.73 arcminutes, because diffraction applies everywhere. A refocused frame at a wide aperture is much sharper than that on its subject and much softer everywhere else. A reader who cares most about one subject — a face at the table — should refocus for it; a reader who wants the room evenly held should not. The centre has an area showed that a pupil of finite size keeps every theorem of perspective for the centre of each blur disc; the stopped-down room is that fact used deliberately, trading the disc’s size for the certainty of its centre.

What was assumed

Defocus and diffraction add as a root sum of squares. Adding them outright would raise the floor by exactly 41 per cent, at the same best aperture, since at that aperture the two are equal; a detailed optical transfer function would put it somewhere between. The ordering of the strategies does not depend on it, since every strategy pays the same blur for the same depth.

The lens is perfect at every aperture. A real fifty-millimetre lens has aberrations that fall as it is stopped down, so wide open it is softer than drawn, and its sharpest aperture is usually a few stops down from wide open. That favours stopping down.

Each frame’s depth is its subject to the wall behind. A frame looking into a corner has less depth; a frame with its nearest subject in front of a window has more. The table’s frame decides the verdict, and a room with nothing near the camera has a far lower floor and a much smaller seam, which is the regime where refocusing is also unnecessary.

Blur and misregistration are the same kind of error. A seam blended over a width becomes a smear of about the misregistration’s size, which is why the two are drawn on one scale; a seam cut hard instead shows as a step, which a viewer notices more than a blur of the same size.

Still open: whether a stopped-down room is sharper stacked than at one focus

One more strategy sits between the two measured here, and it may beat both. A photographer can shoot each frame several times at different focuses and wide apertures, then merge the sharp parts of each — focus stacking. Each exposure has its pupil in its own place, so the stacked frame is not one camera; but the merge keeps the table from the exposure focused on the table and the wall from the one focused on the wall, and at a wide aperture neither suffers diffraction.

The measurement that settles it takes the table’s frame, from half a metre to four metres, splits its reciprocal depth into nn equal slices, and for each slice finds the aperture that holds the slice to its own floor. The stacked frame’s worst blur is then the slice’s floor, 2.44λΔ/n\sqrt{2.44\lambda\Delta/n}, which falls as the square root of the number of exposures. Against that, each exposure’s pupil sits at its own extension, so neighbouring slices disagree about where the table’s edge is by the refocused seam of the section above — and the question is how many slices make the stacked frame sharper than one stopped-down focus before the disagreement between slices, which a stacker must hide at every boundary, becomes the larger error.

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.

centre of projectiondepth of fieldEntrance pupilinstrument limitPanoramaParallaxStitchingThin lens