Post · 4 min read· pp. 164–166

Depth of Field

Definition: the distance between the nearest and furthest objects that can be imaged with reasonably sharp focus for a given focus setting

Categories: general optics, vision, displays and imaging

What is the Depth of Field?

Most imaging instruments can provide sharp images only in a limited range of observation distances. Perfect imaging to a certain image plane (e.g., the location of an image sensor in a photo camera) is only possible for an object plane which is conjugate to the image plane. Images of objects before or after that conjugate object plane will be blurred to some extent. (An exception is the rarely used camera obscura.)

The width of the range of observation distances is called the depth of field. It must not be confused with the depth of focus, which is the corresponding quantity on the image side.

Criteria for Reasonable Focus

For a quantitative definition of the depth of field, one requires a criterion for what level of defocus is acceptable. Different criteria may be sensible, depending on the situation:

  • One may define the limits as the points where the imaging quality, measured for example with a point spread function, becomes significantly worse than in the focus. Such a criterion, however, may not be sensible if the imaging quality in the focus is much better than required or usable. For example, for an image sensor of a digital camera it would not matter if the circle of confusion rises from one tenth to one third of the pixel spacing.
  • Therefore, one may alternatively define a certain diameter of the circle of confusion as the limit, irrespective of how small that circle can be for optimal focusing.

Calculation of the Depth of Field

Here we use the second kind of defocus criterion as explained above, with a maximum diameter CC of the circle of confusion, as calculated from purely geometrical optics. One then obtains the following equations for the nearest and furthest observation distance, when the focus is set to the distance dfd_\mathrm{f}:

dnear=df1+(df−f)  Cf  Dd_\textrm{near} = \frac{d_\textrm{f}}{1 + \frac{\left( d_\textrm{f} - f \right)\;C}{f\;D}}
dfar=df1−(df−f)  Cf  D  if (df−f)  C<f  D, otherwise   ∞d_\textrm{far} = \frac{d_\textrm{f}}{1 - \frac{\left( d_\textrm{f} - f \right)\;C}{f\;D}} \: \: \textrm{if }\left( d_\textrm{f} - f \right)\;C < f\;D \textrm{, otherwise } \: \: \infty

where DD is the diameter of the aperture stop. It is assumed that we have a thin lens, where the entrance and exit pupil coincide with the lens. The depth of field is the difference between maximum and minimum distance.

Note that the above equations hold only for small angles; that condition is usually reasonably well fulfilled in photography, for example, but not for microscopes.

Note that a practical limit is set by diffraction, which becomes important when reducing the aperture size to increase the depth of field.

When focusing to short distances, the depth of field will be relatively small. When focusing to larger distances, it increases, and one eventually reaches the hyperfocal distance where the maximum distance becomes infinity. That is the situation where the depth of field is the largest possible.

As is well known in photography, the depth of field can be increased by reducing the diameter of the aperture stop, which at the same time decreases the image brightness (or requires a correspondingly longer exposure time).

The presented equations hold only within the validity of geometrical optics, which is however usually given in the context of photography.

Frequently Asked Questions

This FAQ section was generated with AI based on the article content and has been reviewed by the article’s author (RP).

What is depth of field?

Depth of field (DOF) is the range of distances in front of a camera or other imaging instrument within which objects appear acceptably sharp. Objects closer or farther than this range will be blurred.

What is the difference between depth of field and depth of focus?

Depth of field concerns the range of acceptable sharpness on the object side of the lens. Depth of focus is the corresponding concept on the image side, referring to the tolerance in the placement of the image plane (e.g., a sensor).

How is the acceptable sharpness for depth of field defined?

A common criterion is the maximum allowed diameter of the 'circle of confusion'. This is the size of the blur spot on the image sensor for a point on an object that is not perfectly in focus.

How can the depth of field be increased?

In photography, the depth of field is increased by reducing the diameter of the aperture stop (i.e., using a larger f-number). This increases the range of distances that appear sharp.

What is the hyperfocal distance?

The hyperfocal distance is the focus setting that provides the maximum possible depth of field. When a lens is focused at this distance, the depth of field extends from a near point out to infinity.