The real instrument

A refocused panorama is six lenses

Refocus between the frames of a room panorama and each frame is its own camera: its pupil carried forward by its own extension, its picture made at its own principal distance. The best fixed pivot then leaves 12.9 arcminutes along the worst seam, and a head that slides the camera back as the lens extends leaves 2.82 — the lens's walk alone. The pivot's share is first order and worth a tracking head indoors. But a stitcher that reads all six frames with one focal length misregisters by up to 270 arcminutes, which is the larger mistake by ninety times.

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

Focusing moves the pivot past its best place found that a fifty-millimetre lens focused at a metre carries its entrance pupil 2.63 millimetres forward of the camera body, and at half a metre 5.56 — more than the whole distance the pupil walks with field angle. A panorama head aligned at one focus and used at another pays for that along every seam. That essay treated the panorama as shot at one focus, and ended by asking about the case that is not: a scene deep enough that the photographer refocuses between frames, a table’s edge at half a metre in one direction and a wall at four in another.

Every frame then has its pupil in its own place, and a head that moves the camera back as the lens extends — a rail geared to the focus ring — would keep every one of them on the pivot. The question was whether that is worth building: whether it removes an error of the first order or only a correction to one.

It removes a first-order error, and indoors it is worth a factor of four or more. But the same measurement turns up a larger error, which no head repairs, in the way the frames are read.

Six frames, six pupils

The room below is shot as six frames sixty degrees apart, through the same lens as before — a fifty-millimetre design with a strongly curved front element, whose pupil walks with field angle — and each frame is focused on what is in front of it: a table at half a metre, a chair at seventy centimetres, a doorway at a metre and a half, the far wall at four metres in two frames, and a shelf at 1.2 metres. Each seam is judged at the nearer of its two frames’ subjects, since that is where a wrong centre shows most.

Refocused frame by frame, a room's worst seam is 12.9′ on the best fixed head and 2.82′ on a head that moves with the focusA room shot as six frames sixty degrees apart through a fifty-millimetre lens with a strongly curved front element, each frame focused on its own subject — the table at 0.5 m, a chair at 0.7 m, the doorway at 1.5 m, the far wall at 4.0 m, the far wall at 4.0 m, the shelf at 1.2 m — and each seam judged at the nearer of its two subjects. On a head that does not move with the focus ring, each frame's pupil has been carried forward by its own extension, so no single pivot suits them all; the best one, 2.57 mm from the lens's paraxial pupil at infinity, leaves 11.4′, 7.8′, 6.3′, 2.8′, 7.4′, 12.9′ along the six seams. A head that moves the camera back by the extension holds every frame at the lens's own best pivot and leaves 2.82′, 2.01′, 0.94′, 0.35′, 1.17′, 2.82′ — the walk with field angle alone, which no pivot removes.0510the six seams of the room, each at the nearer of its two frames' subjectsworst disagreement along the seam (arcminutes)0.5 m0.7 m1.5 m4.0 m1.2 m0.5 mfixed head, best pivothead that tracks the focussix frames, each focused on its own subjectworst 12.9′ against 2.82′
Fig. 1 The six seams of the room, each at the nearer of its two subjects. On the best fixed head: 11.4′, 7.8′, 6.3′, 2.8′, 7.4′ and 12.9′. On a head that moves the camera back by the extension: 2.82′, 2.01′, 0.94′, 0.35′, 1.17′ and 2.82′ — the pupil’s walk with field angle alone.

On a head that does not move with the focus ring, the frame focused on the table has its pupil 5.56 millimetres forward of where the frame focused on the wall has its pupil, and the pivot can be in only one place. The best single place — found by trying every one — leaves 12.9 arcminutes along the worst seam, which at sixty pixels to the degree is thirteen pixels of misregistration on the table’s edge. A head that slides the camera back by each frame’s extension holds every pupil at the lens’s own best pivot, and leaves 2.82 arcminutes along the same seam.

That 2.82 is not zero, and it could not be. The entrance pupil walks with the angle established that the place a wide lens’s picture is a projection from is not a point: the chief rays near the axis cross it at one place and those at the edge of the field at another, 5.53 millimetres apart for this front element, and no pivot sits on both. The tracking head reaches that floor at every seam — 2.82 arcminutes at half a metre, 0.35 at four — and goes no further. Everything above the floor on the fixed head is what refocusing added.

Which seams carry the cost

The six bars are not six samples of one error, and reading them seam by seam says where the cost of refocusing sits. On the fixed head the two worst seams, 12.9 and 11.4 arcminutes, are the two beside the table: the table’s frame is focused at half a metre and its neighbours at seventy centimetres and 1.2 metres, so the extensions either side of the two seams differ by 1.7 and 3.4 millimetres, and the seams’ subject is the nearest thing in the room. The seam between the two frames on the far wall, focused alike at four metres, carries 2.8 — and the tracking head carries 0.35 there. Two frames focused at the same distance have their pupils in the same place, so the fixed head’s error on that seam is not a difference of foci at all. It is the compromise pivot sitting 2.8 millimetres from where those two frames wanted it, because it was placed to serve the table.

That is the general shape. A fixed head’s error on a seam has two parts: how differently the two frames were focused, and how far the compromise pivot sits from the place the pair would have chosen for themselves. The first is zero where neighbours share a focus; the second is never zero anywhere except at the one seam the compromise happens to favour. The eye is a place, not a point described a wrong pivot as a single offset that the sky forgives and the foreground does not. A refocused panorama on a fixed head has a different offset at every frame, and the room’s near objects find every one of them.

The tracking head’s bars follow the room’s distances and nothing else — 2.82 arcminutes at half a metre, 0.94 at a metre and a half, 0.35 at four — because its one remaining offset, the walk, is the same for every frame. The pivot that is not the eye draws that offset for a rotating camera with no lens model in it, and a rig is right on one surface finds the depth at which such a rig’s parallax vanishes. With the frames refocused and the head tracking, every frame shares that surface again, which is what makes the six frames stitch as one instrument once more — the camera that is a cylinder, rebuilt from six lenses.

The pivot’s share is first order

Whether a tracking head removes a first-order error or a second-order one is a question about how the seam error grows as two neighbouring frames are focused further apart. The figure below isolates it: one seam at half a metre, the first frame focused on it, the second refocused anywhere from half a metre to infinity, and a fixed head aligned perfectly for the first frame.

On a fixed head the seam grows almost in a straight line with the difference of the two frames' extensions — 5.03′ a millimetre at half a metre — and a tracking head leaves none of itTwo frames sharing a seam at half a metre: the first focused on it, the second refocused anywhere from half a metre to infinity. The fixed head is aligned perfectly for the first frame — the lens's best pivot at its focus — so every arcminute it adds is the second frame's pupil having moved by a different extension: 2.82′ with both at half a metre, 17.13′ with the second at a metre, 30.78′ at infinity, where the extensions differ by 5.56 mm. The error is first order in that difference: nearly a straight line, 5.03 arcminutes a millimetre from end to end. On a head that moves with the focus it stays at 2.82′ throughout.0102030024how much less the second frame's lens is extended (mm)worst disagreement along the seam, subject at 0.5 m (arcminutes)fixed headtracking headfirst frame focused at 0.5 m, second refocused5.03′ a mm
Fig. 2 One seam at 0.5 m, the first frame focused on it, the second refocused from 0.5 m to infinity; the fixed head is aligned perfectly for the first frame. Its seam grows from 2.82′ to 17.13′ with the second frame at a metre and 30.78′ at infinity — nearly straight in the difference of extensions, 5.03′ a millimetre. The tracking head stays at 2.82′.

The fixed head’s seam grows from 2.82 arcminutes, when both frames are focused at half a metre, to 17.13 with the second frame at a metre and 30.78 at infinity, where the two extensions differ by 5.56 millimetres. Against the difference of extensions it is nearly a straight line, about five arcminutes a millimetre at half a metre. That is what first order means here: the error is proportional to how differently the two frames are focused, with no threshold below which it vanishes and no cancellation that makes a small refocus free. The tracking head leaves 2.82 arcminutes wherever the second frame is focused.

The arithmetic the earlier essay gave explains the slope. A centre a distance δ\delta from where it should be, on frames whose axes are 2h2h apart, misregisters a subject at distance DD by about 2δsin⁡h/D2\delta\sin h/D. On a fixed head, two frames focused differently have centres whose offsets differ by the difference of their extensions, so δ\delta is that difference. At half a metre and sixty degrees between frames, a millimetre of δ\delta is two milliradians, 6.9 arcminutes; the measured slope, 5.03, is less because the walk with field angle already offsets the centres a little in the same direction and the two do not simply add.

The best a fixed head can do

A fixed head is not helpless: its pivot can be put where it suits the room best, not where it suits one frame. The figure below slides it through every position.

No fixed pivot serves a refocused room better than 12.9′; a tracking head reaches 2.82′The worst of the room's six seams against where a fixed head's pivot sits, the frames refocused on their own subjects. The best pivot is 2.57 mm forward of the lens's paraxial pupil at infinity — between where the near frames' pupils have gone and where the far frames' have stayed — and it leaves 12.9′, set by the two seams beside the table, whose frames are focused furthest from each other. The level line is a head that moves the camera back by the extension, which holds every frame at the lens's best pivot: 2.82′, set only by the pupil's walk with field angle.020406005where the fixed head's pivot sits, mm forward of the lens's paraxial pupil at infinitythe room's worst seam (arcminutes)tracking headbest fixed pivot, 12.9′six frames refocused on their own subjects4.6 times the tracking head
Fig. 3 The room’s worst seam against where the fixed head’s pivot sits, the frames refocused on their own subjects. The best pivot, 2.57 mm forward of the lens’s paraxial pupil at infinity, leaves 12.9′. A tracking head holds every frame at the lens’s best pivot: 2.82′.

The worst seam is a V with a rounded floor. Put the pivot where the far frames’ pupils are and the near frames misregister badly; put it where the near frames’ pupils have gone and the far frames do. The best compromise, 2.57 millimetres forward of the lens’s paraxial pupil at infinity, sits between the two and leaves 12.9 arcminutes. It is set by the two seams beside the table, whose frames are focused at half a metre and at 1.2 metres or seventy centimetres, and whose seam is also the nearest to the lens. No choice of fixed pivot gets below it, and the tracking head’s 2.82 is 4.6 times better.

That is the answer to whether a tracking pivot is worth building, for this room and this lens. It is — but only because the frames were refocused. A panorama shot at one focus throughout, on a fixed head aligned at that focus’s best pivot, is exactly the tracking head: every frame’s pupil is in the same place and the head has put the pivot there. The check on that is exact, to a billionth of an arcminute. What refocusing buys is sharpness, and the question a photographer is really choosing between is a sharp near edge with thirteen pixels of seam, a soft near edge with three, or a geared head with a sharp edge and three.

A refocused frame is a different lens

The measurements so far assumed that the stitcher reads each frame at its own principal distance. A refocused frame’s picture is made further from the sensor than a frame focused at infinity: 55.56 millimetres at half a metre, 52.63 at a metre. Focusing is a zoom measured that as a narrowing of the angle of view, and it matters here much more than the pupil does.

Read with one focal length, the refocused room misregisters by 37′ to 270′ — 96 times anything the pivot doesThe same room on a tracking head, so the centres are as good as a fixed lens allows, stitched two ways. Read with one principal distance — the lens's fifty millimetres, as a stitcher that links every frame to one lens does — the frames focused near are read as if their pictures were made further from the sensor than they were, and every direction off the axis is turned by the wrong angle: 270′, 161′, 69′, 37′, 82′, 222′ along the six seams. Read each with its own principal distance, the focal length times the subject distance over the subject distance less the focal length, and what is left is the centres' 2.82′, 2.01′, 0.94′, 0.35′, 1.17′, 2.82′. Focusing is a zoom, and a refocused panorama is shot through six different lenses.110100024the six seams of the roomworst disagreement along the seam (arcminutes, log scale)0.5 m0.7 m1.5 m4.0 m1.2 m0.5 mevery frame read at 50 mmeach at its own principal distancetracking head; only the reading changesfocusing is a zoom
Fig. 4 The room on a tracking head, stitched two ways. Every frame read with the lens’s fifty millimetres: 270′, 161′, 69′, 37′, 82′ and 222′ along the six seams. Each read with its own principal distance: the centres’ 2.82′ to 0.35′.

A stitcher that links every frame to one lens reads all six with one principal distance — the fifty millimetres on the barrel. A frame focused at half a metre, read that way, has every direction off its axis turned by the wrong angle: a point thirty degrees off the axis, which the frame drew at vtan⁡30°v\tan 30° with v=55.56v = 55.56 millimetres, is read back at 32.7 degrees. Along the seam beside the table that is 270 arcminutes of misregistration, four and a half degrees, on a head whose centres are as good as this lens allows. The far wall’s seam, between two frames focused at four metres, still carries 37.

That is ninety times the largest error the pivot makes, and it has nothing to do with the pivot. A refocused panorama is not one camera turned six times; it is six cameras with six focal lengths, which happen to share a lens barrel. Read each frame with its own principal distance — the focal length times the subject distance over the subject distance less the focal length, or better, fitted from the overlap as a stitcher can when it is allowed to — and the whole of that error goes, leaving only the centres’.

So the order of business for a refocused panorama is not the one the question implied. The first thing to repair is the reading: unlink the frames’ focal lengths, or give the stitcher each frame’s focus. The pivot comes second, and matters only once the first is done.

Near rooms pay twice

How much a tracking head is worth depends on the room’s size, and it depends on it more steeply than the pivot error alone would suggest.

The fixed head's worst seam falls as the 1.9 power of the room's size and the tracking head's as the 1.0: the focus error is a near-room problem twice overThe room's six subjects scaled together, so the nearest runs from 0.25 to 2.5 m, each frame refocused on its own subject. The best fixed head leaves 60.9′, 28.3′, 12.9′, 5.5′, 3.2′, 1.6′, 0.8′; the tracking head 5.64′, 4.03′, 2.82′, 1.88′, 1.41′, 0.94′, 0.56′. A pivot's error at a seam is its offset over the subject's distance, so the tracking head, whose offset is fixed by the walk, falls as one over the distance. The fixed head's offsets are the frames' differences of extension, and the extension itself falls as one over the distance, so its error falls about as the square: halve the room and the tracking head's seams double while the fixed head's quadruple, 10.8 times the tracking head at 0.25 m and 1.3 times at 2.5 m.0.250.350.50.7511.52.5131030the room's nearest subject (m, log scale); every subject scaled with itthe room's worst seam (arcminutes, log scale)best fixed headtracking headthe room scaled; each frame refocusedoffset over distance
Fig. 5 The room’s subjects scaled together, the nearest from 0.25 to 2.5 m, each frame refocused. The best fixed head: 60.9′ down to 0.8′; the tracking head: 5.64′ down to 0.56′. The fixed head’s seam falls as about the square of the room’s size, the tracking head’s as its first power.

Scale the room — every subject nearer or further by the same factor — and the tracking head’s worst seam falls in proportion to the distance, from 5.64 arcminutes when the table is a quarter of a metre away to 0.56 at two and a half metres. That is the δ/D\delta/D law with δ\delta fixed: the walk with field angle does not depend on the focus.

The fixed head’s seam falls about as the square, from 60.9 arcminutes to 0.8. Its δ\delta is the difference of the frames’ extensions, and the extension is itself the focal length squared over the subject distance less the focal length — it falls as one over the distance too. So the fixed head’s error is one inverse distance for the geometry of the seam and another for how far the focus moved the pupil. At a quarter of a metre the tracking head is eleven times better; at two and a half metres, 1.3 times, which is to say not worth the gearing.

That is the practical rule. A geared head earns its complexity in small rooms, close to furniture, with a wide lens refocused on near subjects — exactly the interiors a panoramic photographer is most often asked to shoot. In a hall, a courtyard or a landscape it buys a fraction of an arcminute.

What the extension is, and what it is not

The figure below is the quantity all of this is built on, carried over from the earlier essay: how far the lens stands beyond its focal length at each focus.

Focusing carries the pupil 2.63 mm at a metre and 5.53 mm is the whole walk with angleA 50 mm lens focused by moving as one piece, so the pupil travels with the glass and its displacement relative to anything bolted to the camera body is exactly the extension. That is the focal length squared over the subject distance less the focal length — a quarter of a millimetre at ten metres, 2.63 at one, and 5.56 at half. The level line is the whole distance the pupil walks with field angle in the same lens's front group, 5.53 millimetres, and the two are equal at a subject 0.50 metres away. So for anything further than that the field angle decides where the pupil is, and for anything nearer the focus does.0.313100510how far away the subject is, in metreshow far the pupil moves forward, in millimetres0.50 mthe whole walk with field anglea 50 mm lens, focused as one pieceequal at 0.50 m
Fig. 6 The extension of a fifty-millimetre lens focused as one piece, against the subject distance: a quarter of a millimetre at ten metres, 2.63 at one, 5.56 at half. The level line is the whole walk of the pupil with field angle in the same lens’s front group.

The extension is a closed form only for a lens that focuses by moving as one piece, so that its pupil travels with the glass. Most modern lenses focus internally, moving one group while the front element stays put, and their pupils move by an amount that is neither the extension nor zero and is not published. The tracking head described here, geared to move the camera back by the extension, is then the wrong gearing: it would need the lens’s own pupil-against-focus curve, which the hole a scene actually sees shows how to trace for a given design, and which a photographer can measure with two marks and a focus ring.

The principal distance has the same caveat and a better escape. An internally focused lens changes its focal length as it focuses — often shortening it, which is the reverse of unit focusing — and the principal distance a frame was made at is again not the barrel’s number. But the principal distance is readable from the picture: a close picture carries its own distance recovers it from vanishing points, and a stitcher recovers it from the overlap whenever it is allowed to treat each frame’s focal length as free. The pivot has no such escape. A wrong centre leaves parallax, and the parallax a rig cannot shoot away is what that essay’s title says it is.

What was assumed

The lens focuses as one piece. Its pupil moves by exactly the extension and its principal distance is exactly the thin-lens image distance. An internally focusing lens breaks both, and changes the numbers without changing the order of the two errors: the reading’s error is set by how much the principal distance changes, the pivot’s by how much the pupil moves, and in most lenses the first is the larger.

Each seam is judged at the nearer subject. A real seam crosses whatever is there, and a seam over the table’s edge at half a metre and the wall at four behind it carries both errors at once. Taking the nearer is the worst case, and what a stitcher’s control points most often sit on.

The frames are sixty degrees apart. More overlap brings the frames’ axes closer, shrinks sin⁡h\sin h, and shrinks every pivot error with it; the reading’s error shrinks too, because the seam then sits nearer each frame’s axis. Tighter spacing is a remedy for both, and the only one that needs no equipment.

The subject is still. Refocusing takes time, and in that time a room with people in it changes, which is a larger seam than any of these.

Still open: whether one focus and a stopped-down lens beat six focuses

The comparison this leaves undone is the one a photographer actually faces. Refocusing buys sharpness at the cost of a seam that needs a geared head and an unlinked stitcher. Not refocusing — one focus for all six frames, set so that the table’s edge and the wall both fall inside the depth of field — buys a perfect seam on a fixed head at the cost of stopping the lens down, which costs light, and past a point costs sharpness everywhere to diffraction.

The measurement that settles it takes the room above, a sensor with a stated pixel pitch, and the lens’s aperture as the free variable. For each aperture it finds the single focus that best covers half a metre to four metres, the blur circle that leaves at the table and at the wall, and the diffraction blur the aperture adds, and compares the worst blur with the thirteen-pixel seam of the refocused, fixed-head panorama and the three-pixel seam of the tracking head. If some aperture keeps every frame’s worst blur under three pixels, one focus and a fixed head beat any amount of refocusing; if none does, the geared head and the unlinked stitcher are the only way to a sharp, seamless room, and the question becomes how many pixels of blur a photographer will trade for how many of seam.

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 projectionEntrance pupilFocal lengthinstrument limitPanoramaParallaxStitchingThin lens