A lens that focuses behind its stop needs no rail
Worth reading first: The eye is a place, not a point · The centre has an area.
A stack shot from one pupil is one picture scaled took a room from half a metre to four metres, photographed in twelve exposures through a 50 mm lens, each focused on its own slice of the room’s depth, and looked at an occlusion edge, a near object in front of a far wall. A lens that focuses by moving as a whole carries its entrance pupil forward by each exposure’s focusing extension, 4.5 mm across the twelve, so the edge’s two sides are seen from places that far apart and are 9.8′ out of register at the frame’s edge. A rail that moves the camera back by each extension puts every pupil at one place: every exposure is then the same central projection at a different image distance, the misregistration is gone, and focus breathing becomes one magnification per exposure. The rail must place each pupil to about 0.7 mm, which leaves 1.5′ at the edge, inside the stack’s own sharpness.
The essay closed on the lenses most stacking is actually done with. Many lenses focus by moving a group of elements inside the barrel: their length does not change, their focal length changes with focus, and their entrance pupil moves by an amount that is not the focusing extension. The entrance pupil walks with the angle had found besides that a pupil is not one point: the chief ray at each field angle crosses the axis in its own place. The question was whether a rail can place such a lens’s pupil for every exposure, how much misregistration the walk then leaves, since the walk now changes between exposures and no single rail position can match it at every angle, and whether that residual stays under a stack’s own blur.
The answer turns on a fact about where an entrance pupil comes from, and it divides internally focusing lenses into two kinds that need opposite things.
The pupil is the stop seen through the front
An entrance pupil is not a part of the lens. It is the image of the aperture stop formed by every element in front of the stop: the hole a scene actually sees, as the hole a scene actually sees put it. Elements behind the stop take no part in forming it. They change where the light goes after the stop, the focal length and the focus, but the scene sees the stop through the front group alone, and the front group decides where that image is and how it walks with the field angle.
So an internally focusing lens is one of two kinds. If its moving group is behind the stop, nothing in front of the stop moves when it focuses, and its entrance pupil, together with its whole walk, stays exactly where it was. Every exposure of a stack is taken from one centre of projection, field angle by field angle, with the camera standing still. If its moving group is in front of the stop, focusing changes the optics the stop is seen through, and the pupil moves, by an amount set by the moving element’s power and travel rather than by the focusing extension.
For the first kind the essay’s question answers itself. A lens that focuses behind its stop needs no rail: its stack is already one central projection, the occlusion edge is in register at every field angle, and its focus breathing, which it has like every lens, is a change of focal length with the centre fixed, one scale per exposure that a stacker takes out exactly. A rail would only move the pupil away from the place it already shares.
A lens that focuses in front of its stop
The second kind needs a lens to measure. The front group is the one focusing moves the pivot past its best place and the pupil-walk essay traced: a strongly curved meniscus, convex toward the scene, with the aperture stop 22 mm behind its front vertex. Between them sits a weak biconvex focusing element, radii 60 mm, that travels to focus: 6 mm behind the vertex for the stack’s nearest exposure, at half a metre, and 15 mm for its farthest, at four, moving in proportion to each exposure’s reciprocal focus in between. Every chief ray is traced back from the centre of the stop through all four surfaces by Snell’s law, and its object-side line is extended to the axis.
With the element forward, the chief ray to the frame’s edge, 19.8° off the axis, crosses the axis 16.67 mm behind the front vertex; with the element back, 14.64 mm. The paraxial pupil, where rays very near the axis cross, moves from 16.51 to 14.82 mm, 1.68 mm. A positive element in front of the stop makes the stop’s image move as the element moves, in the same way that a magnifying glass moved over a coin moves the coin’s image.
The walk changes too. With the element forward the edge’s pupil sits 0.16 mm behind the paraxial pupil, with it back 0.18 mm in front of it, so the gap between the two exposures’ pupils is 1.68 mm on the axis and 2.02 mm at the frame’s edge, growing steadily across the field. That is the part no rail can remove: a rail moves the whole camera, and so moves every field angle’s pupil by the same amount, while the two exposures’ pupils differ by different amounts at different angles.
What a rail takes back
The misregistration of an edge seen from two pupils a distance apart along the axis, at field angle , is
the earlier essay’s law, with now different at every field angle. For this room it is 2.17′ for every millimetre of at the frame’s edge.
Without a rail the front-focusing lens is 4.38′ out of register at worst, less than half the whole-lens figure of 9.77′, because its pupil moves 1.7 mm against the whole lens’s 4.5. With a rail that moves the camera so that each exposure’s paraxial pupil sits at one place, it is 0.73′ out: the rail takes back five sixths, and what is left is the walk’s change, 0.34 mm at the edge times the edge’s 2.17′ a millimetre. That is under the 1.5′ a rail held to 0.7 mm leaves, so for this lens the rail does its job.
The answer to the question as asked is therefore yes, for this lens, with a residue. A rail can place a front-focusing lens’s pupil for every exposure, the walk’s change then leaves a sixth of the misregistration, and the sixth is inside a stack’s own sharpness.
Aiming the rail at the edge
The rail does not have to place the paraxial pupil. It moves the camera by some amount for each exposure, and that amount can be chosen to bring any one field angle’s pupil to a common place: the edge’s, or the middle’s, or one between.
Aimed at the axis, the rail leaves its 0.73′ at the frame’s edge, where the walk’s change is largest and the tangent weighting it is largest too. Aimed at the edge itself, it leaves nothing there and a residue in the middle of the frame, where the walk differs from the edge’s by most but the tangent is small. The best compromise is a little inside the edge: aimed at the pupil for 17.3°, the rail leaves 0.19′ anywhere across the frame, a quarter of the paraxial aim and a twentieth of no rail at all.
That is a practical recipe for anyone railing such a lens. The rail’s positions should be found from a target near the frame’s edge, not from the middle: set each exposure’s rail position by bringing an occlusion edge seen a little inside the corner into register, since that is where the stack’s misregistration lives, and the middle will follow closely enough. Aligning on the middle, which is what a nodal-point slider set by eye tends to do, aligns the one place where it matters least.
A stronger focusing element
How much a front-focusing lens’s pupil moves depends on the moving element’s power. With radii of 150 mm the element is weak and the pupil moves 0.60 mm over the travel; with 100 mm, 0.93; 60 mm, 1.68; 40 mm, 2.83. The misregistration without a rail follows, 1.49′, 2.35′, 4.38′ and 7.80′. The walk’s change grows with it, 0.09, 0.16, 0.34 and 0.77 mm at the edge, and the rail on the paraxial pupil leaves 0.20′, 0.34′, 0.73′ and 1.66′.
The rail’s share stays near five sixths throughout, falling to four fifths for the strongest element, because the walk’s change is a sixth to a quarter of the pupil’s move for every element measured, a fact about the meniscus in front: the walk is the meniscus’s pupil aberration, and the focusing element changes how the stop is magnified into it. With the strongest element the paraxial rail leaves 1.66′, just over what a rail held to 0.7 mm leaves; aimed near the edge, 0.45′. So the strongest front-focusing lens is the one case where the aim matters for the result and not just for the margin.
Two more things follow from the arithmetic. The misregistration here does not depend on how many exposures the stack has, because the element’s travel between the nearest and farthest exposures is the same however finely it is divided, where a whole-lens stack’s span of extensions grew with the count; two exposures and twenty both leave 4.38′ unrailed and 0.73′ railed. And the stack’s ends set everything: only the nearest and farthest exposures’ pupils matter for the worst edge, so a rail need be set accurately only at the ends of its travel and interpolated between.
Telling the two kinds apart
A photographer seldom knows where a lens’s focusing group sits relative to its stop, and the measurement says how to find out without opening it. The entrance pupil is the stop as the scene sees it, so it is also what a person sees looking into the front of the lens: the bright disc of the aperture, apparently floating somewhere inside the barrel. Stopped down a little and turned through its focus range while watched from in front, a lens that focuses behind its stop shows that disc at the same apparent depth and the same apparent size throughout, because nothing it is seen through has moved. A lens that focuses in front of its stop shows the disc drifting in depth and changing size as the focusing element slides past it, a millimetre or two on a lens like the one traced here.
The test that settles it for stacking is the panorama photographer’s. Focusing moves the pivot past its best place found a lens’s no-parallax point by sliding the camera until a near post and a far one stay in line as the camera turns; doing that at the nearest and the farthest focus of a planned stack, with the posts near the frame’s corner rather than its middle, measures the two pupils the stack’s worst edge will be seen from. If the two settings agree, the lens needs no rail. If they differ, their difference is the rail’s travel, and setting it with the posts near the corner aims the rail where the measurement above found it does most good.
The same test exposes the third kind, the lens that focuses as a whole, as the one whose two settings differ by the full focusing extension, the earlier essay’s 4.5 mm across this room, and whose rail must make up all of it.
What this rests on
The front group is a toy, traced exactly. The meniscus and stop are the pupil-walk essay’s, and the focusing element is a single weak lens. A real lens has several elements in front of its stop, and its focusing group may be a cemented pair or several elements moving at different rates. The rule that a group behind the stop moves no pupil holds for any design; the fifth that the walk changes by, and the 0.73′, are this design’s.
The element travels in proportion to the reciprocal focus. A real lens’s focusing cam is designed for its own optics. The nearest and farthest positions are what matter, and the measurement depends on them alone.
The stop does not move. Some lenses move the stop with the focusing group, or focus by moving the front group and the stop together. A group that carries the stop with it is, for the pupil, a lens focusing as a whole, and the earlier essay’s rail by extension applies to it.
Breathing is a scale only where the centre is fixed. With the pupil fixed by the design or by the rail, each exposure’s magnification is one number at every depth, as focusing is a zoom found for a lens that focuses close. Behind a front-focusing lens with a paraxial rail, the walk’s change makes the magnification differ slightly between the middle of the frame and the edge, which is the misregistration measured here seen as a scale that is not quite uniform. A lens’s distortion can also change with focus, which no rail touches and which is not modelled.
The room and the edge are the earlier essays’: half a metre to four metres, a 50 mm lens, the edge’s two sides at the room’s two ends, and the stack’s own sharpness from a focus stack is sharp everywhere but its edges and one focus stopped down is as sharp as six.
Which lens to stack with
The whole-lens essay ended with a rail as the remedy for a lens that moves its pupil. The remedy turns out to be a choice of lens. A lens that focuses behind its stop stacks without a rail, because its pupil and its walk never move; a refocused panorama is six lenses found the panorama’s version of the same distinction, a lens whose pupil wanders with focus making every refocused frame a different camera. A lens that focuses in front of its stop moves its pupil by less than a whole lens moves its own, and a rail takes back five sixths of what that costs, more if it is aimed at the edge. A lens that focuses as a whole moves its pupil furthest and needs the rail most, and it is the only one of the three whose rail is exact, because its walk travels with it unchanged.
Still open: whether a lens’s own distortion, changing with focus, undoes the rail
Everything here treats each exposure’s picture as a central projection from its pupil, so that a fixed centre makes the exposures agree point for point. A real lens also distorts, and its distortion changes with focus: a lens that is a little barrel-shaped at infinity is usually less so close up, and a focusing group behind the stop changes the distortion even though it leaves the pupil alone.
The measurement that settles it gives each exposure its own radial distortion, a stated change in the coefficient between the nearest and farthest exposures, and asks how far apart the two sides of an occlusion edge then land after the stacker’s best scale, since a change of distortion moves points radially by an amount that grows with the cube of their distance from the middle and no single scale can follow it; whether that residue is larger at the frame’s edge than the walk’s 0.73′; and whether a stacker that fits a distortion term per exposure as well as a scale, as the plumb-line method fits one to a single photograph, takes it back out.
The entrance pupil is the aperture stop seen through everything in front of it, so how a stack behaves depends on where a lens’s focusing group is. A lens that focuses behind its stop moves neither its pupil nor its walk: its exposures share one centre at every field angle and need no rail. A lens that focuses with an element in front of its stop moves its pupil, 1.7 mm across a stack here, 4.4′ out of register at the frame’s edge, and changes its walk by a fifth as much; a rail that places each exposure’s paraxial pupil leaves 0.73′, a sixth, and aimed at the pupil for 17° instead it leaves 0.19′. Only a lens that focuses as a whole is railed exactly, because its walk travels with it.
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.
- A pupil sees around an edge — both name depth of field, entrance pupil, occlusion
- One depth per sample is not enough — both name entrance pupil, instrument limit, occlusion
- The camera that is a cylinder — both name entrance pupil, instrument limit, parallax
- The disc and the streak — both name depth of field, entrance pupil, instrument limit
- The hole a rig cannot fill — both name entrance pupil, occlusion, parallax
- The parallax you cannot shoot away — both name entrance pupil, instrument limit, parallax
Named objects
A flat tag is an object no other essay names yet.
depth of fieldEntrance pupilinstrument limitOcclusionParallax