This exposition introduces some basic and well-known ideas on depth of field. The papers by J. Conrad [C], L. Even [E], D. Kerr [K], R. Wheeler [W], and the Wikipedia articles in the references were used. The excellent book by A. Adams [Ad] was also used.
For a typical camera lens (i.e., a ``thin convex lens in air''),
the focal length
is the distance from
the center of the lens to the ``principal focal point'' of the lens.
The principal focal point is that point behind the lens that an
object at infinity2 (on the axis of the lens) focuses to.
This is illustrated below.
Define the object plane to be the plane of the object you are photographing (parallel to the plane of the lens) and want to look sharp in your photo. (Again, the object is assumed to be on the axis of the lens.) The light from the object converges behind the lens to a small region called the image. The image plane is a plane (parallel to the lens) which intersects this image region. You want the plane of the digital sensor (or camera film) to be at or very near the image plane, or else the photo will not have the object in focus.
We assume that the camera has the property that if it focuses on a (stright) line or circle then it captures a line or circle on the film or digital sensor. (Of course, in reality, the lens imperfections and the light diffraction have an effect, but this hypothesis is nearly true in many cases.) In other words, we assume that the camera is a ``projective transformation'' [Pe] from the plane of the object to the plane of the film or sensor.
Suppose that the object is ``at infinity'' (say, some distant mountains)
and the plane of the digital sensor is the same as the image plane,
so that the mountains will be in focus in your photo.
The distance from the lens to the sensor plane is the
focal length
. The light from a small disk (also on the axis of the lens)
a distance
in front of the lens will meet the
sensor plane but it's image in the photo will not be in focus.
If the disk is very small in diameter then its blurred image
on the photo is sometimes called a circle of confusion.
By abuse of terminology, below the circle of confusion
will denote the maximum diameter
(usually measured in mm) on the
photo
for which there is an acceptable blur in the circle of
confusion. Suppose now that
the distance between the lens and sensor plane (say that the lens is fixed
and the sensor plane is moved back) is increased in such
a way that this small disk is in focus in the photo. Call this new
distance between the lens and the sensor plane
.
proof: This is proven using projective geometry in Evens [E]. It turns out to be remarkably simple, under the right hypotheses, so it is given here. Recall, we assumed that the camera is a projective transformation.
It is known that projective transformations preserve the cross-ratio (Theorem 35.4, [Pe]):
The depth of field (DOF) is the portion of a scene that
appears sharp in the image [DoF]. However, more precisely,
it is the area near the object plane in which the
circles of confusion are acceptably small (where
``acceptably small'' has some precise pre-defined meaning, e.g.,
0.2mm for a photo blown up to an
print).
Although a lens can precisely focus at
only one distance, the decrease in sharpness is gradual on either
side of the focused distance, so that within the DOF, the
unsharpness is imperceptible under normal viewing conditions.
See Figure 2 for an example of an image with a
``small'' (or ``short'') DOF.
The lens aperture is the circular opening in the
lens allowing light to pass through. The actual diameter of opening is
called the effective aperture. By convention, the aperture
is measured as a quotient relative to the focal length
. For example,
the aperture
is an opening which is half the focal
length, so if
then the effective aperture
would be a disc of diameter
. In general, if the aperture is
(where
) then
is called the f-number
or f-stop. The larger
is, the smaller the aperture.
Two apertures (or f-stops3)
are said to differ by a full stop
if they differ by a factor of
.
Usually the stop numbers fall into the sequence
Shutter speed: We use aperture and shutter speed settings to control the amount of light from the subject that reaches the film/sensor. The formula expressing this exposure relationship is
The hyperfocal distance
is the distance beyond
which all circles of confusion are acceptably small (where
``acceptably small'' has some precise meaning), for a lens focused at
``infinity''.
Let
be the lens focal length,
be the lens f-number, and
be the circle of confusion. The hyperfocal distance is given by
We end this paper with the proof of equations (1), (2), and (3) following Conrad [C]. In both [C] and [DoF], there appears the following
Using the similar triangles