Optics

The plane of focus a tilted lens tilts

An ordinary camera focuses on a plane square to its axis, so a road receding from it, a table top or a field of flowers can be sharp only over the depth an aperture allows. Tilt the lens, or the sensor, and the plane of sharp focus tilts too, by a rule a surveying officer patented in 1904: the plane of the subject, the plane of the lens and the plane of the image always meet in a single line. Turn the focus and the plane of focus does not slide back and forth; it swings about a fixed hinge. The same geometry lets an eye camera see the whole front of the eye in one exposure and a lidar keep a laser beam kilometres long in focus.

Assumes: What a lens is doing, and why three rays are enough · The focus that is a slab, not a plane

What a lens is doing drew three rays through a thin lens and found every point of an object brought to a point of the image. The focus that is a slab, not a plane found that a lens focused at one distance renders a range of distances acceptably sharp, a slab of space whose thickness the aperture controls. The flat scene that comes back curved found that a real lens images a flat object onto a curved surface, and the four cosines at the edge of a photograph followed what happens to the light at the edges of the field.

All of those kept the lens square to its axis and the object plane square to it as well. This essay tilts them. A camera pointed down a road at a low angle, a copy camera photographing a page held at a slant, a surveyor’s camera in an aeroplane looking at the ground obliquely: in each, the plane of interest is not square to the lens, and an ordinary camera can make only a strip of it sharp. The remedy is a geometric fact about thin lenses so simple it is easily missed — a lens maps planes to planes — and a rule about how those planes are arranged, which an Austrian army officer, Theodor Scheimpflug, patented in 1904 for correcting aerial photographs.

Planes into planes

Three planes that meet in one line. A thin lens of focal length 50, drawn as a vertical line, and an object plane tilted at 45° to the axis, crossing it 150 units in front of the lens. Four points on the object plane are traced to their images through the lens's centre and along the axis-parallel ray. The images lie on a straight line too — a thin lens maps planes to planes — but one tilted far less steeply, and when the object plane, the lens plane and the image plane are extended they meet in a single line, here 150 units below the axis. That is the Scheimpflug rule. A sensor laid along the tilted image plane records the whole tilted object plane sharp, which no sensor square to the axis can do.
Fig. 1 A thin lens of focal length 50 and an object plane tilted 45° to the axis, crossing it 150 units in front. Four points traced through the lens image onto a straight line, and the object plane, the lens plane and the image plane meet in one line 150 units below the axis.

The thin-lens equation, 1/u+1/v=1/f1/u + 1/v = 1/f, says where a point at distance u in front of the lens is imaged, and the magnification v/u says how far from the axis. Take the points of a plane tilted to the axis: each sits at a different distance and is imaged at a different distance behind. It is not obvious that the images lie on a plane, but they do. The thin-lens map from object space to image space is a projective transformation, the kind of map that takes straight lines to straight lines and planes to planes; the four traced points in the figure fall exactly on one line.

The image plane is tilted, but by less than the object plane. And the two have a simple relation to each other and to the lens: extended, the object plane, the plane of the lens and the image plane all pass through one line. In the figure that line is 150 units below the axis, and all three planes meet there. That is the Scheimpflug rule.

The reason it must hold can be seen without algebra. Where the object plane crosses the lens plane, its points are at zero distance from the lens, and a point at zero distance is imaged at itself: a ray through the lens at that point has not yet been bent. So the line where the object plane meets the lens plane is part of its own image, which means the image plane must contain it too. The three planes share it because the lens leaves it alone.

A map that stretches depth twice as fast

The projective map that makes all this work has a feature that matters for what a tilted image looks like. Sideways, a thin lens scales the scene by the magnification m. Along the axis it scales distances by m2m^2, because the image distance changes faster than the object distance: move an object a millimetre closer and its image moves m2m^2 millimetres further away. Lateral and longitudinal magnifications agree only at unit magnification.

That is why the image plane leans less than the object plane when the magnification is small, and it is also why the image of a tilted subject, though sharp, is not a scaled copy of it. A square drawn on a tilted table top is imaged as a trapezium, foreshortened along the direction of the tilt and with its near edge larger than its far edge: the perspective an eye would see from the camera’s position, with no correction. Scheimpflug’s own purpose was to remove exactly that. Aerial photographs taken obliquely from balloons and aircraft show the ground in perspective, and to turn them into maps he projected each negative through an enlarging lens onto an easel tilted to undo the perspective. With the negative, the lens and the easel tilted to satisfy his rule, the whole rectified image was sharp on the easel at once.

The mismatch between mm and m2m^2 is also why no lens can image a volume perfectly at any magnification but one. Abbe’s sine condition, which the condition a lens must meet found sets what a lens must do off the axis, and the corresponding condition along the axis cannot both hold except at unit magnification. A real lens is corrected to image one plane well. The Scheimpflug rule follows that plane wherever the lens’s tilt sends it, as an idealisation good to the paraxial order a thin lens is good to.

How much to lean

How much the sensor must lean for a given scene. The angle by which the plane of sharp focus behind a lens leans away from square, against the angle by which the object plane leans, for magnifications of 0.05, 0.25, 1 and 2: tan θ′ = m tan θ, where m is the ratio of image to object distance. At a twentieth — a landscape or an architectural view — even a steeply tilted scene needs a small tilt of the image plane: a road leaning at 80° to square needs the sensor leaning 15.8°. At unit magnification the two lean equally, and close up, at twice life size, the image plane leans more than the object does: 49.1° for an object plane at 30°. Photographers rarely move the sensor; they tilt the lens instead, a few degrees for distant scenes, which is why view cameras and tilt lenses offer only small tilts.
Fig. 2 The lean of the image plane against the lean of the object plane, tan θ′ = m tan θ, for magnifications of 0.05, 0.25, 1 and 2. At a twentieth a road leaning 80° needs the image plane at 15.8°; at twice life size an object plane at 30° needs 49.1°.

The tilts are related through the magnification. If the object plane leans by θ from square and the image plane by θ′, then tan θ′ = m tan θ, with m the ratio of image distance to object distance at the axis. For a distant subject the magnification is small, and even a steeply tilted subject — a road receding almost along the line of sight — needs only a modest tilt of the image plane, sixteen degrees for a road leaning at eighty. At life size the two planes lean equally. Close up, at higher magnification, the image plane leans more than the subject does, and a small tilt of the subject needs a large one behind the lens.

In practice it is easier to tilt the lens than the sensor, and the same rule says what to do. With the sensor fixed square to the camera’s body, tilting the lens by a few degrees tilts the plane of sharp focus in front of it by a great deal, because for a distant subject the lean is magnified by 1/m. Large-format view cameras, with their lens and film held on separate standards joined by bellows, let a photographer tilt either; tilt lenses for smaller cameras offer a few degrees of lens tilt, which is all a landscape needs.

Shifting instead of tilting

There is a companion movement on the same cameras that uses the rule in reverse. Photographing a tall building from the street, a camera tilted upward to take in the top puts its sensor at an angle to the building’s face, and the building’s vertical edges converge in the picture as they rise: the face is a tilted plane, imaged in perspective. Keeping the sensor parallel to the face removes the convergence, because a plane parallel to the sensor is imaged without perspective distortion, at a single magnification. But then the building’s top falls off the edge of the frame.

The remedy is to slide the lens upward without tilting it, a shift, so that the part of the lens’s image circle that falls on the sensor includes the top of the building while the sensor stays parallel to the face. The subject plane, the lens plane and the sensor plane are then all parallel, meeting in the line at infinity, and the Scheimpflug rule is satisfied trivially: no tilt is needed because nothing is tilted. Architectural photographers combine the two movements — a shift to keep verticals straight, a small tilt to swing the plane of focus along a pavement or a courtyard — and the lenses that allow both need image circles much larger than the sensor they cover.

A hinge for every focus

Planes of focus that swing about a hinge. A lens of focal length 50 tilted 5° against a vertical sensor, and the plane of sharp focus for four positions of the sensor, 51, 52.5, 55, 60 units behind the lens. Changing the focus does not move the plane of focus parallel to itself; it swings it about a fixed line, the hinge, 574 units below the lens — J = f/sin α — in the plane through the lens parallel to the sensor. Along the axis the plane crosses at 3164, 1141, 574, 307. So with a tilted lens, the tilt chooses where the hinge is and the focus chooses the angle. Photographers working with view cameras learned to set the two in that order; the hinge rule that explains it was written down by Harold Merklinger in the 1990s.
Fig. 3 A lens of focal length 50 tilted 5° against the sensor, and the plane of focus for four sensor positions. Every one passes through a hinge 574 units below the lens, J = f/sin α, and refocusing swings the plane about it, crossing the axis at 3,164, 1,141, 574 and 307 units.

The Scheimpflug rule says that the three planes meet in a line, but with a tilted lens, refocusing moves the sensor relative to the lens and so moves the line. Photographers working with view cameras found that the result was confusing: the plane of focus did not move back and forth when they focused, as it does in an ordinary camera, but tipped. The rule that untangles it was written down in the 1990s by Harold Merklinger, a Canadian engineer who photographed with view cameras. With the lens tilted by α, every plane of focus, for every position of the sensor, passes through a second fixed line, the hinge: in the plane through the lens parallel to the sensor, at a distance J=f/sin⁡αJ = f/\sin\alpha from the lens.

The figure checks it for four focus settings. Each plane of focus is computed by mapping the sensor’s plane back through the tilted lens, and all four pass through the hinge 574 units below the lens. Focusing does not move the plane of focus; it rotates it about the hinge, from nearly horizontal, crossing the axis far away, to steep, crossing it near the lens. The practical order of work follows. The tilt sets the hinge: a five-degree tilt on a lens of ninety millimetres puts it about a metre below the lens, at ground level for a camera on a tripod. The focus then sets the angle of the plane about that line, until it lies along the ground.

Depth of field as a wedge

Depth of field that is a wedge. The plane of sharp focus of a lens of focal length 50 tilted 3° (centre line) and the near and far limits of acceptable sharpness at an aperture of f/8, each the plane conjugate to a sensor displaced by the aperture number times the allowed blur. All three swing about the same hinge, 955 units below the lens, so the zone of sharpness is not a slab between two parallel planes but a wedge with its edge at the hinge: thin near the hinge and widening with distance from it. Along the axis it runs from 1264 to 1444 units. A tilted lens therefore does not add depth of field. It points the depth there is along the subject — a field of flowers receding from the camera, a table top — instead of across it.
Fig. 4 The plane of focus of a lens of focal length 50 tilted 3°, and the near and far limits of sharpness at f/8. All three pass through the hinge 955 units below the lens, so the sharp zone is a wedge with its edge at the hinge, running from 1,264 to 1,444 units along the axis.

An untilted lens’s depth of field, as the focus that is a slab drew it, is the region between two planes parallel to the plane of focus: the nearest and farthest planes whose images are blurred by no more than an acceptable amount. With a tilted lens the near and far limits are the planes of focus that correspond to the sensor moved slightly forward and slightly back, and by the hinge rule they pass through the same hinge. The zone of acceptable sharpness is no longer a slab but a wedge with its thin edge at the hinge, opening with distance from it.

That corrects a common belief, that tilting a lens increases depth of field. It does not; the aperture still sets how thick the zone is at a given distance. What the tilt does is lay the zone along the subject. A field of flowers running from a metre to infinity, which no aperture could make sharp with an untilted lens, lies within a thin wedge whose edge is at the photographer’s feet. A tall tree standing on that field, poking up out of the wedge, will be blurred at the top however the lens is stopped down. The tilt chooses which plane the depth is measured from, and the subject has to suit it.

A miniature made by tilting the wrong way

The same wedge used the other way produces a well-known illusion. Tilt the lens against the scene instead of along it, so that the plane of focus cuts steeply across a view of a city or a railway yard taken from a height, and only a narrow band of the scene is sharp. Everything above and below the band blurs quickly. A photograph like that looks like a picture of a model, because a very shallow depth of field across a large scene is what a camera shows when photographing something small from close up: the blur gradient a viewer associates with a tabletop model at a magnification of a tenth. The brain reads the scene’s size from the depth of field and gets it wrong by a factor of a hundred.

The illusion is a reminder that depth of field carries information about scale, and that a tilted lens can supply a false value of it. It is also a reminder of what the Scheimpflug rule does not change: a lens cannot make sharp more than the wedge its aperture allows, and can only choose where the wedge points.

An eye photographed in section

The rule’s most valuable uses are in measurement, where a tilted plane of interest is fixed by the instrument. An ophthalmologist examining the front of the eye shines a thin sheet of light into it from in front, which lights a cross-section through the cornea, the space behind it and the lens of the eye. To record the whole lit section sharp, from the front of the cornea to the back of the lens, the camera looks at the sheet from the side at an angle and its sensor is tilted according to the Scheimpflug rule, so that the oblique sheet is entirely in focus. Rotating the sheet and camera round the eye’s axis builds up the shape of the cornea and the depth of the chamber behind it, measurements used to plan cataract and refractive surgery and to detect diseases of the cornea before they affect sight.

Laser triangulation scanners that measure the shapes of objects use the same arrangement: a laser line projected onto the object and viewed at an angle by a camera whose sensor is tilted so the whole plane of the laser line is in focus. Light-sheet microscopes that image a tilted sheet inside a sample do too, sometimes correcting the tilt with a second tilted stage of optics, as the mirror that lights a tenth of a micrometre described for a sheet of light made by total reflection instead.

A laser beam as a ruler

A laser beam kilometres long, all in focus. A Scheimpflug lidar: a laser beam sent out parallel to a telescope's axis, 0.8 m to one side, and imaged by a 800 mm lens onto a sensor tilted so that the whole beam, from metres to kilometres away, is in focus at once. Light scattered from range r lands at a height Bf/(r − f) on the sensor, so position along the sensor is range. The range spanned by one 14 μm pixel grows as (r − f)²/Bf: 0.2 cm at 10 m, 0.22 m at 100 m, 21.8 m at a kilometre. No pulse timing is needed, so the laser can be a continuous diode and the measurement can resolve insects, aerosol layers and plumes along a path, with a range resolution that is fine near and coarse far — the geometry of a tilted image plane read as a ruler.
Fig. 5 A Scheimpflug lidar: a laser beam parallel to a telescope’s axis, 0.8 m to the side, imaged by an 800 mm lens onto a tilted sensor so the whole beam is in focus. Position on the sensor is range, and one 14 μm pixel spans 0.2 cm at 10 m, 0.22 m at 100 m and 21.8 m at a kilometre.

The most extreme use puts the tilted plane of interest kilometres long. A laser beam sent out into the air is a line, and the light it scatters from dust, aerosols or insects along its length comes back from every range at once. A telescope beside the laser, looking along the beam, sees the beam as a line receding into the distance, a plane of interest containing both the beam and the telescope’s axis. With the sensor tilted according to the Scheimpflug rule, every point on the beam is in focus at once, from a few metres to infinity, and each range lands at a different position along the sensor.

That turns the tilted image plane into a ruler. A point on the beam at range r is imaged at a height Bf/(r − f) on the sensor, with B the distance between the beam and the telescope’s axis, so the range that one pixel covers grows as the square of the range: two millimetres at ten metres, twenty-two centimetres at a hundred, twenty-two metres at a kilometre. Conventional lidar measures range by timing a short pulse’s echo, which needs a pulsed laser and fast electronics. A Scheimpflug lidar needs neither — a continuous diode laser and an ordinary camera — and has been used since the 2010s to count and identify flying insects by the flicker of their wingbeats along a beam over fields and forests, at ranges where its resolution is still fine.

Where the thin-lens geometry stops

Every figure here uses an ideal thin lens, which maps planes to planes exactly. Real lenses are thick, with principal planes in place of a single lens plane, and the Scheimpflug and hinge rules hold with the lens plane replaced by the principal planes, which changes the details and not the shape. Real lenses also have the field curvature that the flat scene that comes back curved traced, so the image of a plane is slightly curved and a tilted plane slightly more so. A tilted lens is also used off its axis, where its image quality is worst, and lenses designed for tilting have larger image circles to allow for it. The depth-of-field wedge is drawn with the blur criterion of a sensor displaced by the aperture number times the allowed blur, which is the standard first approximation and not exact for wide apertures. The lidar figure ignores the lens’s aberrations and the finite width of the laser beam, which set the resolution at short range.

Still open: how far the tilted plane can be pushed in microscopy

Imaging a tilted plane inside a thick specimen, without moving the specimen, is attractive for fast three-dimensional microscopy: a sheet of light swept through a sample can be followed by the detection optics if the image of the oblique sheet can be brought onto a sensor sharp. Oblique-plane microscopes do this by relaying the tilted image through a second and third objective lens, one of them tilted, and the arrangement loses light and resolution at large tilts. How steep a tilted plane can be imaged at the full resolution the first lens offers, and how much of the loss is fundamental to the geometry rather than to the particular lenses used, is being worked out with new designs for the tilted relay.

The habit worth carrying away is to ask what a map preserves before asking what it distorts. A thin lens takes planes to planes, so a tilted subject plane, the lens plane and its image plane always meet in one line, with tan θ′ = m tan θ; and tilting the lens by α makes every plane of focus swing about a hinge f/sin α away — 574 units for a 50 lens tilted 5° — carrying the depth of field with it as a wedge. A lens cannot make more of a scene sharp, but it can choose which plane through the scene is.

Part 10 of 10

This essay is one argument about Imaging. The others:

The objects named here

The third axis, after the field and the reading path: the things themselves, and every essay that touches each one.

Depth of fieldHinge ruleLidarMagnificationPlane of focusScheimpflug principleThin lensTilt shift