
The depth of field (DOF) is the distance between the nearest and the farthest objects that are in acceptably sharp
focus
Focus (: foci or focuses) may refer to:
Arts
* Focus or Focus Festival, former name of the Adelaide Fringe arts festival in East Australia Film
*Focus (2001 film), ''Focus'' (2001 film), a 2001 film based on the Arthur Miller novel
*Focus (2015 ...
in an image captured with a
camera
A camera is an instrument used to capture and store images and videos, either digitally via an electronic image sensor, or chemically via a light-sensitive material such as photographic film. As a pivotal technology in the fields of photograp ...
. See also the closely related
depth of focus.
Factors affecting depth of field
For cameras that can only focus on one object distance at a time, depth of field is the distance between the nearest and the farthest objects that are in acceptably sharp focus in the image. "Acceptably sharp focus" is defined using a property called the "
circle of confusion
In optics, a circle of confusion (CoC) is an optical spot caused by a cone of light ray (optics), rays from a lens (optics), lens not coming to a perfect focus (optics), focus when imaging a Point source#Light, point source. It is also known ...
".
The depth of field can be determined by
focal length
The focal length of an Optics, optical system is a measure of how strongly the system converges or diverges light; it is the Multiplicative inverse, inverse of the system's optical power. A positive focal length indicates that a system Converge ...
, distance to subject (object to be imaged), the acceptable circle of confusion size, and aperture.
Limitations of depth of field can sometimes be overcome with various techniques and equipment. The approximate depth of field can be given by:
for a given maximum acceptable circle of confusion , focal length ,
f-number
An f-number is a measure of the light-gathering ability of an optical system such as a camera lens. It is calculated by dividing the system's focal length by the diameter of the entrance pupil ("clear aperture").Smith, Warren ''Modern Optical ...
, and distance to subject .
As distance or the size of the acceptable circle of confusion increases, the depth of field increases; however, increasing the size of the aperture (i.e., reducing ) or increasing the focal length reduces the depth of field. Depth of field changes linearly with and circle of confusion, but changes in proportion to the square of the distance to the subject and inversely in proportion to the square of the focal length. As a result, photos taken at extremely close range (i.e., so small ) have a proportionally much smaller depth of field.
Rearranging the equation shows that it is the ratio between distance and focal length that affects ;
Note that
is the
transverse magnification which is the ratio of the lateral image size to the lateral subject size.
Image sensor size affects in counterintuitive ways. Because the circle of confusion is directly tied to the sensor size, decreasing the size of the sensor while holding focal length and aperture constant will the depth of field (by the crop factor). The resulting image however will have a different field of view. If the focal length is altered to maintain the field of view, while holding the , the change in focal length will counter the decrease of from the smaller sensor and the depth of field (also by the crop factor). However, if the focal length is altered to maintain the field of view, while holding the , the will remain constant.
Effect of lens aperture
For a given subject framing and camera position, the is controlled by the lens aperture diameter, which is usually specified as the
f-number
An f-number is a measure of the light-gathering ability of an optical system such as a camera lens. It is calculated by dividing the system's focal length by the diameter of the entrance pupil ("clear aperture").Smith, Warren ''Modern Optical ...
(the ratio of lens focal length to aperture diameter). Reducing the aperture diameter (increasing the ) increases the because only the light travelling at shallower angles passes through the aperture so only cones of rays with shallower angles reach the image plane. In other words, the
circles of confusion are reduced or increasing the .
For a given size of the subject's image in the focal plane, the same on any focal length lens will give the same depth of field. This is evident from the above equation by noting that the ratio is constant for constant image size. For example, if the focal length is doubled, the subject distance is also doubled to keep the subject image size the same. This observation contrasts with the common notion that "focal length is twice as important to defocus as f/stop", which applies to a constant subject distance, as opposed to constant image size.
Motion pictures make limited use of aperture control; to produce a consistent image quality from shot to shot, cinematographers usually choose a single aperture setting for interiors (e.g., scenes inside a building) and another for exteriors (e.g., scenes in an area outside a building), and adjust exposure through the use of camera filters or light levels. Aperture settings are adjusted more frequently in still photography, where variations in depth of field are used to produce a variety of special effects.
Effect of circle of confusion
Precise focus is only possible at an exact distance from a lens; at that distance, a point object will produce a small spot image. Otherwise, a point object will produce a larger or blur spot image that is typically and approximately a circle. When this circular spot is sufficiently small, it is visually indistinguishable from a point, and appears to be in focus. The diameter of the largest circle that is indistinguishable from a point is known as the
acceptable circle of confusion, or informally, simply as the circle of confusion.
The acceptable circle of confusion depends on how the final image will be used. The circle of confusion as 0.25 mm for an image viewed from 25 cm away is generally accepted.
For
35mm motion pictures, the image area on the film is roughly 22 mm by 16 mm. The limit of tolerable error was traditionally set at diameter, while for
16 mm film, where the size is about half as large, the tolerance is stricter, . More modern practice for 35 mm productions set the circle of confusion limit at .
Camera movements
The term "camera movements" refers to swivel (swing and tilt, in modern terminology) and shift adjustments of the lens holder and the film holder. These features have been in use since the 1800s and are still in use today on view cameras, technical cameras, cameras with tilt/shift or perspective control lenses, etc. Swiveling the lens or sensor causes the plane of focus (POF) to swivel, and also causes the field of acceptable focus to swivel with the ; and depending on the criteria, to also change the shape of the field of acceptable focus. While calculations for of cameras with swivel set to zero have been discussed, formulated, and documented since before the 1940s, documenting calculations for cameras with non-zero swivel seem to have begun in 1990.
More so than in the case of the zero swivel camera, there are various methods to form criteria and set up calculations for when swivel is non-zero. There is a gradual reduction of clarity in objects as they move away from the , and at some virtual flat or curved surface the reduced clarity becomes unacceptable. Some photographers do calculations or use tables, some use markings on their equipment, some judge by previewing the image.
When the is rotated, the near and far limits of may be thought of as wedge-shaped, with the apex of the wedge nearest the camera; or they may be thought of as parallel to the .
Object-field calculation methods
Traditional depth-of-field formulas can be hard to use in practice. As an alternative, the same effective calculation can be done without regard to the focal length and .
Moritz von Rohr and later Merklinger observe that the effective absolute aperture diameter can be used for similar formula in certain circumstances.
Moreover, traditional depth-of-field formulas assume equal acceptable circles of confusion for near and far objects. Merklinger suggested that distant objects often need to be much sharper to be clearly recognizable, whereas closer objects, being larger on the film, do not need to be so sharp. The loss of detail in distant objects may be particularly noticeable with extreme enlargements. Achieving this additional sharpness in distant objects usually requires focusing beyond the
hyperfocal distance
In optics and photography, hyperfocal distance is a distance from a lens beyond which all objects can be brought into an "acceptable" focus. As the hyperfocal distance is the focus distance giving the maximum depth of field, it is the most desi ...
, sometimes almost at infinity. For example, if photographing a cityscape with a
traffic bollard in the foreground, this approach, termed the ''object field method'' by Merklinger, would recommend focusing very close to infinity, and stopping down to make the bollard sharp enough. With this approach, foreground objects cannot always be made perfectly sharp, but the loss of sharpness in near objects may be acceptable if recognizability of distant objects is paramount.
Other authors such as
Ansel Adams
Ansel Easton Adams (February 20, 1902 – April 22, 1984) was an American landscape photographer and environmentalist known for his Monochrome photography, black-and-white images of the American West. He helped found Group f/64, an association ...
have taken the opposite position, maintaining that slight unsharpness in foreground objects is usually more disturbing than slight unsharpness in distant parts of a scene.
Overcoming DOF limitations
Some methods and equipment allow altering the apparent , and some even allow the to be determined after the image is made. These are based or supported by computational imaging processes. For example,
focus stacking
Focus stackingalso called focal plane merging, z-stacking, focus bracketing or focus blendingis a digital image processing technique which combines multiple images taken at different Focus (optics), focus distances to give a resulting image with ...
combines multiple images focused on different planes, resulting in an image with a greater (or less, if so desired) apparent depth of field than any of the individual source images. Similarly, in order to
reconstruct
Reconstruction may refer to:
Politics, history, and sociology
*Reconstruction (law), the transfer of a company's (or several companies') business to a new company
*''Perestroika'' (Russian for "reconstruction"), a late 20th century Soviet Union ...
the 3-dimensional shape of an object, a
depth map
In 3D computer graphics and computer vision, a depth map is an Digital image, image or Channel (digital image), image channel that contains information relating to the distance of the Computer representation of surfaces, surfaces of scene objec ...
can be generated from multiple photographs with different depths of field. Xiong and Shafer concluded, in part, "...the improvements on precisions of focus ranging and defocus ranging can lead to efficient shape recovery methods."
Another approach is focus sweep. The focal plane is swept across the entire relevant range during a single exposure. This creates a blurred image, but with a convolution kernel that is nearly independent of object depth, so that the blur is almost entirely removed after computational deconvolution. This has the added benefit of dramatically reducing motion blur.
Light Scanning Photomacrography
Light Scanning Photomacrography (LSP), also known as Scanning Light Photomacrography (SLP) or Deep-Field Photomacrography, is a photographic film technique that allows for high magnification light imaging with exceptional depth of field (DOF). This ...
(LSP) is another technique used to overcome depth of field limitations in macro and micro photography. This method allows for high-magnification imaging with exceptional depth of field. LSP involves scanning a thin light plane across the subject that is mounted on a moving stage perpendicular to the light plane. This ensures the entire subject remains in sharp focus from the nearest to the farthest details, providing comprehensive depth of field in a single image. Initially developed in the 1960s and further refined in the 1980s and 1990s, LSP was particularly valuable in scientific and biomedical photography before digital focus stacking became prevalent.
[Clarke, T.]
Constructing a Scanning Light Photomacrography System
" The McCrone Group (accessed July 7, 2024).
Other technologies use a combination of lens design and post-processing:
Wavefront coding
In optics and signal processing, wavefront coding refers to the use of a phase modulating element in conjunction with deconvolution to extend the depth of field of a digital imaging system such as a video camera.
Wavefront coding falls under the ...
is a method by which controlled aberrations are added to the optical system so that the focus and depth of field can be improved later in the process.
The lens design can be changed even more: in colour
apodization
In signal processing, apodization (from Greek "removing the foot") is the modification of the shape of a mathematical function. The function may represent an electrical signal, an optical transmission, or a mechanical structure. In optics, it is ...
the lens is modified such that each colour channel has a different lens aperture. For example, the red channel may be , green may be , whilst the blue channel may be . Therefore, the blue channel will have a greater depth of field than the other colours. The image processing identifies blurred regions in the red and green channels and in these regions copies the sharper edge data from the blue channel. The result is an image that combines the best features from the different .
At the extreme, a
plenoptic camera
A light field camera, also known as a plenoptic camera, is a camera that captures information about the ''light field'' emanating from a scene; that is, the intensity of light in a scene, and also the precise direction that the light rays are tr ...
captures
4D light field
A light field, or lightfield, is a vector function that describes the amount of light flowing in every direction through every point in a space. The space of all possible '' light rays'' is given by the five-dimensional plenoptic function, and th ...
information about a scene, so the focus and depth of field can be altered after the photo is taken.
Diffraction and DOF
Diffraction
Diffraction is the deviation of waves from straight-line propagation without any change in their energy due to an obstacle or through an aperture. The diffracting object or aperture effectively becomes a secondary source of the Wave propagation ...
causes images to lose sharpness at high (i.e., narrow aperture stop opening sizes), and hence limits the potential depth of field. (This effect is not considered in the above formula giving approximate values.) In general photography this is rarely an issue; because large typically require long exposure times to acquire acceptable image brightness,
motion blur
Motion blur is the apparent streaking of moving objects in a photograph or a sequence of frames, such as a film or animation. It results when the image being recorded changes during the recording of a single exposure, due to rapid movement or l ...
may cause greater loss of sharpness than the loss from diffraction. However, diffraction is a greater issue in close-up photography, and the overall image sharpness can be degraded as photographers are trying to maximize depth of field with very small apertures.
Hansma and Peterson have discussed determining the combined effects of defocus and diffraction using a root-square combination of the individual blur spots. Hansma's approach determines the that will give the maximum possible sharpness; Peterson's approach determines the minimum that will give the desired sharpness in the final image and yields a maximum depth of field for which the desired sharpness can be achieved. In combination, the two methods can be regarded as giving a maximum and minimum for a given situation, with the photographer free to choose any value within the range, as conditions (e.g., potential motion blur) permit. Gibson gives a similar discussion, additionally considering blurring effects of camera lens aberrations, enlarging lens diffraction and aberrations, the negative emulsion, and the printing paper. Couzin gave a formula essentially the same as Hansma's for optimal , but did not discuss its derivation.
Hopkins, Stokseth, and Williams and Becklund have discussed the combined effects using the
modulation transfer function
The optical transfer function (OTF) of an optical system such as a camera, microscope, human eye, or image projector, projector is a scale-dependent description of their imaging contrast. Its magnitude is the image contrast of the Sine and cosine ...
.
DOF scales
Many lenses include scales that indicate the for a given focus distance and ; the 35 mm lens in the image is typical. That lens includes distance scales in feet and meters; when a marked distance is set opposite the large white index mark, the focus is set to that distance. The scale below the distance scales includes markings on either side of the index that correspond to . When the lens is set to a given , the extends between the distances that align with the markings.
Photographers can use the lens scales to work backwards from the desired depth of field to find the necessary focus distance and aperture. For the 35 mm lens shown, if it were desired for the to extend from 1 m to 2 m, focus would be set so that index mark was centered between the marks for those distances, and the aperture would be set to .
On a view camera, the focus and can be obtained by measuring the depth of field and performing simple calculations. Some view cameras include calculators that indicate focus and without the need for any calculations by the photographer.
File:DOF scale detail.png, Detail from a lens set to . The point half-way between the 1 m and 2 m marks, the limits at , represents the focus distance of approximately 1.33 m (the reciprocal of the mean of the reciprocals of 1 and 2 being 4/3).
File:TessinaDOF.jpg, scale on Tessina focusing dial
Hyperfocal distance
Near:far distribution
The beyond the subject is always greater than the in front of the subject. When the subject is at the hyperfocal distance or beyond, the far is infinite, so the ratio is 1:∞; as the subject distance decreases, near:far ratio increases, approaching unity at high magnification. For large apertures at typical portrait distances, the ratio is still close to 1:1.
DOF formulae
This section covers some additional formula for evaluating depth of field; however they are all subject to significant simplifying assumptions: for example, they assume the
paraxial approximation
In geometric optics, the paraxial approximation is a small-angle approximation used in Gaussian optics and ray tracing of light through an optical system (such as a lens).
A paraxial ray is a ray that makes a small angle (''θ'') to the optica ...
of
Gaussian optics
Gaussian optics is a technique in geometrical optics that describes the behaviour of light rays in optical systems by using the paraxial approximation, in which only rays which make small angles with the optical axis of the system are considered. ...
. They are suitable for practical photography, lens designers would use significantly more complex ones.
Focus and f-number from DOF limits
For given near and far limits and , the required
f-number
An f-number is a measure of the light-gathering ability of an optical system such as a camera lens. It is calculated by dividing the system's focal length by the diameter of the entrance pupil ("clear aperture").Smith, Warren ''Modern Optical ...
is smallest when focus is set to
the
harmonic mean
In mathematics, the harmonic mean is a kind of average, one of the Pythagorean means.
It is the most appropriate average for ratios and rate (mathematics), rates such as speeds, and is normally only used for positive arguments.
The harmonic mean ...
of the near and far distances. In practice, this is equivalent to the
arithmetic mean
In mathematics and statistics, the arithmetic mean ( ), arithmetic average, or just the ''mean'' or ''average'' is the sum of a collection of numbers divided by the count of numbers in the collection. The collection is often a set of results fr ...
for shallow depths of field.
Sometimes, view camera users refer to the difference as the ''focus spread''.
Foreground and background blur
If a subject is at distance and the foreground or background is at distance , let the distance between the subject and the foreground or background be indicated by
The blur disk diameter of a detail at distance from the subject can be expressed as a function of the subject magnification , focal length ,
f-number
An f-number is a measure of the light-gathering ability of an optical system such as a camera lens. It is calculated by dividing the system's focal length by the diameter of the entrance pupil ("clear aperture").Smith, Warren ''Modern Optical ...
, or alternatively the
aperture
In optics, the aperture of an optical system (including a system consisting of a single lens) is the hole or opening that primarily limits light propagated through the system. More specifically, the entrance pupil as the front side image o ...
, according to
The minus sign applies to a foreground object, and the plus sign applies to a background object.
The blur increases with the distance from the subject; when is less than the circle of confusion, the detail is within the depth of field.
See also
*
Angle of view
In photography, angle of view (AOV) describes the angular extent of a given scene that is imaged by a camera. It is used interchangeably with the more general term '' field of view''.
It is important to distinguish the angle of view from the ...
*
Bokeh
In photography, bokeh ( or ; ) is the aesthetic quality of the blur produced in out-of-focus parts of an image, whether foreground or background or both. It is created by using a wide aperture lens.
Some photographers incorrectly restr ...
*
Camera angle
The camera angle marks the specific location at which the movie camera or video camera is placed to take a shot. A scene may be shot from several camera angles simultaneously. This will give a different experience and sometimes emotion. The diff ...
*
Depth of focus
*
Depth-of-field adapter
*
Frazier lens (very deep depth of field)
*
Light-field camera
A light field camera, also known as a plenoptic camera, is a camera that captures information about the ''light field'' emanating from a scene; that is, the intensity of light in a scene, and also the precise direction that the light rays are tr ...
*
Miniature faking
*
Numerical aperture
In optics, the numerical aperture (NA) of an optical system is a dimensionless number that characterizes the range of angles over which the system can accept or emit light. By incorporating index of refraction in its definition, has the property ...
*
Perspective distortion
Explanatory notes
References
Citations
General and cited references
*
* Available in PD
online
*
* "Available as GIF images on th
Large Format page.
*
*
*
* Version 1.03e available i
PDFat http://www.trenholm.org/hmmerk/ .
* Version 1.6.1 available i
PDFat http://www.trenholm.org/hmmerk/.
* Available as GIF images on th
Large Format page
*
*
*
*
*
*
*
*
*
*
* Reprinted 2002, Bellingham, WA: SPIE Press, .
*
Further reading
*
External links
Depth of Field in Photography—Beginner's GuideSimple depth of field and hyperfocal distance calculator
��Interactive depth of field
Bokeh simulator and depth of field calculator��Interactive depth of field calculator with background blur simulation feature
��Demonstration of varying apertures on depth of field
Depth of Field for Beginners��A quick explainer video for DOF
{{DEFAULTSORT:Depth Of Field
Geometrical optics
Photographic techniques
Science of photography