Depth of field
8367
224589489
2008-07-09T15:30:15Z
Dicklyon
869314
Reverted 1 edit by [[Special:Contributions/93.100.65.71|93.100.65.71]]; Unsourced original research, not understandable. ([[WP:TW|TW]])
{{Portal|Photography|Large format camera lens.jpg}}
In [[optics]], particularly as it relates to [[film]] and [[photography]], the '''depth of field''' (DOF) is the portion of a scene that appears sharp in the image. Although a [[lens (optics)|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.
For some images, such as landscapes, a large DOF may be appropriate, while for others, such as portraits, a small DOF may be more effective.
The DOF is determined by the subject distance (that is, the distance to the plane that is perfectly in focus), the lens [[focal length]], and the lens [[f-number|<var>f</var>-number]]
(relative [[aperture]]). Except at close-up distances, DOF is approximately determined by the subject [[magnification]] and the lens <var>f</var>-number. For a given <var>f</var>-number, increasing the magnification, either by moving closer to the subject or using a lens of greater focal length, decreases the DOF; decreasing magnification increases DOF. For a given subject magnification, increasing the <var>f</var>-number (decreasing the aperture diameter) increases the DOF; decreasing <var>f</var>-number decreases DOF.
When focus is set to the [[hyperfocal distance]], the DOF extends from half the hyperfocal distance to infinity, and is the largest DOF possible for a given <var>f</var>-number.
The advent of digital technology in photography has provided additional means of controlling the extent of image sharpness; some methods allow DOF that would be impossible with traditional techniques, and some allow the DOF to be determined after the image is made.
[[Image:DOF-ShallowDepthofField.jpg|thumb|350px|A [[Macro photography|macro photograph]] with very shallow depth of field.]]
[[Image:Diaphragm.svg|thumb|350px|Effect of aperture on blur and DOF. The points in focus ('''2''') project points onto the image plane ('''5'''), but points at different distances ('''1''' and '''3''') project blurred images, or [[circle of confusion|circles of confusion]]. Decreasing the aperture size ('''4''') reduces the size of the blur circles for points not in the focused plane, so that the blurring is imperceptible, and all points are within the DOF.]]
== Apparent sharpness ==
Precise focus is possible at only one distance; at that distance, a point object will produce a point image.<ref>
Strictly, because of lens [[Aberration in optical systems|aberrations]] and [[diffraction]], a point object in precise focus is imaged not as a point but rather as a small spot, often called the ''least circle of confusion''. For most treatments of DOF, including this article, the assumption of a point is sufficient.
</ref>
At any other distance, a point object is ''[[defocus]]ed'', and will produce a blur spot shaped like the [[aperture]], which for the purpose of analysis is usually assumed to be circular. When this circular spot is sufficiently small, it is indistinguishable from a point, and appears to be in focus; it is rendered as “acceptably sharp”. The diameter of the circle increases with distance from the point of focus; 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 is influenced by visual acuity, viewing conditions, and the amount by which the image is enlarged. The increase of the circle diameter with defocus is gradual, so the limits of depth of field are not hard boundaries between sharp and unsharp.
Several other factors, such as subject matter, movement, and the distance of the subject from the camera, also influence when a given defocus becomes noticeable.
[[Image:Depth of field diagram.png|thumb|518px|The area within the depth of field appears sharp while the areas in front of and beyond the depth of field appear blurry.]]
For a [[35 mm film|35 mm]] motion picture, the image area on the negative is roughly 22 mm by 16 mm (0.87 in by 0.63 in). The limit of tolerable error is usually set at 0.05 mm (0.002 in) diameter. For [[16 mm film|16 mm film]], where the image area is smaller, the tolerance is stricter, 0.025 mm (0.001 in). Standard depth-of-field tables are constructed on this basis, although generally 35 mm productions set it at 0.025 mm (0.001 in). Note that the acceptable circle of confusion values for these formats are different because of the relative amount of magnification each format will need in order to be projected on a full-sized movie screen.
(A table for 35 mm still photography would be somewhat different since more of the film is used for each image and the amount of enlargement is usually much less.)
[[Image:lens aperture side.jpg|240px|thumb|left|A 35 mm lens set to [[f-number|<var>f</var>/11]]. The depth-of-field scale (top) indicates that a subject which is anywhere between 1 and 2 meters in front of the camera will be rendered acceptably sharp. If the aperture were set to {{f/}}22 instead, everything from 0.7 meters to infinity would appear to be in focus.]]
The [[film format|image format]] size also will affect the depth of field. The larger the format size, the longer a lens will need to be to capture the same framing as a smaller format. In motion pictures, for example, a frame with a 12 degree horizontal field of view will require a 50 mm lens on 16 mm film, a 100 mm lens on 35 mm film, and a 250 mm lens on 65 mm film. Conversely, using the same focal length lens with each of these formats will yield a progressively wider image as the film format gets larger: a 50 mm lens has a horizontal field of view of 12 degrees on 16 mm film, 23.6 degrees on 35 mm film, and 55.6 degrees on 65 mm film. What this all means is that because the larger formats require longer lenses than the smaller ones, they will accordingly have a smaller depth of field. Therefore, compensations in exposure, framing, or subject distance need to be made in order to make one format look like it was filmed in another format.
{| align="right"
| [[Image:aperture f22.jpg|thumb|230px|{{f/}}22]]
|-
| [[Image:aperture f8.jpg|thumb|230px|{{f/}}8]]
|-
| [[Image:aperture f4.jpg|thumb|230px|{{f/}}4]]
|-
| [[Image:aperture f2.8.jpg|thumb|230px|{{f/}}2.8]]
|-
| style="text-align: right;" | Above: DOF at various apertures
|-
| style="text-align: center" | ——————————
|-
| [[Image:Jonquil flowers at f32.jpg|margin 0|thumb|230px|At {{f/}}32, the background is distracting.]]
|-
|[[Image:Jonquil flowers at f5.jpg|thumb|230px|At {{f/}}5.6, the flowers are isolated from the background.]]
|-
|[[Image:Kittyplya03042006.JPG|thumb|230px|At {{f/}}2.8, the cat is isolated from the background.]]
|-
| style="text-align: center; padding-bottom: 1ex;" | Above: Selective focus
|}
==Effect of lens aperture==
For a given subject framing and camera position, the DOF is controlled by the lens [[aperture]] diameter, which is usually specified as the [[f-number]], the ratio of lens [[focal length]] to aperture diameter. Reducing the aperture diameter (increasing the <var>f</var>-number) increases the DOF; however, it also reduces the amount of light transmitted, and increases [[diffraction]], placing a practical limit on the extent to which DOF can be increased by reducing the aperture diameter.
Motion pictures make only limited use of this control; to produce a consistent image quality from shot to shot, cinematographers usually choose a single aperture setting for interiors and another for exteriors, 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.
==Camera movements and DOF==
When the lens axis is perpendicular to the image plane, as is normally the
case, the plane of focus (POF) is parallel to the image plane, and the DOF
extends between parallel planes on either side of the POF. When the lens
axis is not perpendicular to the image plane, the POF is no longer parallel
to the image plane; the ability to rotate the POF is
known as the [[Scheimpflug principle]]. Rotation of the POF is
accomplished with [[View camera#Movements|camera movements]]
(tilt, a rotation of the lens about a horizontal axis, or swing, a rotation
about a vertical axis). Tilt and swing are available on most [[view camera]]s, and
are also available with specific lenses on some small- and medium-format
cameras.
When the POF is rotated, the near and far limits of DOF are no longer
parallel; the DOF becomes wedge-shaped, with the apex of the wedge nearest
the camera. With tilt, the height of the DOF increases with distance
from the camera; with swing, the width of the DOF increases with distance.
Rotating the POF with tilt or swing (or both) can be used either to
maximize or [[Tilted plane focus|minimize]] the part of an image that is within the DOF.
== Obtaining maximum DOF ==
===Lens DOF scales===
Many lenses for small- and medium-format cameras
include scales that indicate the DOF for a given focus distance and
<var>f</var>-number; the 35 mm lens in the image above 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 DOF scale below the distance scales includes
markings on either side of the index that correspond to
<var>f</var>-numbers; when the lens is set to a given <var>f</var>-number,
the DOF extends between the distances that align with the
<var>f</var>-number markings.
===Zone focusing===
When the 35 mm lens above is set to <var>f</var>'' / ''11 and
focused at approximately 1.4 m, the DOF (a “zone” of acceptable sharpness)
extends from 1 m to 2 m. Conversely, the required focus and <var>f</var>-number
can be determined from the desired DOF limits by locating the near and far DOF
limits on the lens distance scale and setting focus so that the index mark
is centered between the near and far distances; the required
<var>f</var>-number is determined by finding the markings on the DOF scale
that are closest to the near and far distances. For the 35 mm
lens above, if it were desired for the DOF to extend from 1 m to 2 m,
focus would be set to approximately 1.4 m and the aperture set to <var>f</var>'' / ''11.
The DOF limits can be determined from a scene by focusing on the farthest object to be
within the DOF and noting the distance on the lens distance scale, and repeating the process
for the nearest object to be within the DOF.
If the near and far distances fall outside the largest <var>f</var>-number markings on the DOF
scale, the desired DOF cannot be obtained; for example, with the 35 mm lens above,
it is not possible to have the DOF extend from 0.7 m to infinity.
Some distance scales have
markings for only a few distances; for example, the 35 mm lens above
shows only 3 ft and 5 ft on its upper scale. Using other distances
for DOF limits requires visual interpolation between marked distances; because the
distance scale is nonlinear, accurate interpolation can be difficult. In most cases,
English and metric distance markings are not coincident, so using both scales to note
focused distances can sometimes lessen the need for interpolation.
Many [[autofocus]] lenses have smaller distance and DOF scales and fewer
markings than do comparable manual-focus lenses, so that determining focus
and <var>f</var>-number from the scales on an autofocus lens may be more
difficult than with a comparable manual-focus lens. In most cases, using the lens DOF
scales on an autofocus lens requires that the lens or camera body be set to manual focus.<ref>
Higher-end models in the [[Canon EOS]] line of cameras included a feature called
Depth-of-Field Automatic Exposure (DEP) that set focus and <var>f</var>-number
from user-determined near and far points in much the same manner as using DOF scales
on manual-focus lenses. The feature has not been included on models introduced after April 2004.
</ref>
On a view camera, the focus and <var>f</var>-number can be obtained by
measuring the ''[[Depth of field#Focus and f-number from DOF limits|focus spread]]''
and performing simple calculations; the procedure is described in more detail in the section
[[Depth of field#Focus and f-number from DOF limits|Focus and <var>f</var>-number from DOF limits]].
Some view cameras include DOF calculators that indicate focus and <var>f</var>-number without
the need for any calculations by the photographer.
===Hyperfocal distance===
The [[hyperfocal distance]] is the nearest focus distance at which the DOF extends to infinity; focusing the camera at the hyperfocal distance results in the largest possible depth of field for a given <var>f</var>-number. Focusing ''beyond'' the hyperfocal distance does not increase the far DOF (which already extends to infinity), but it does decrease the DOF in front of the subject, decreasing the total DOF. Some photographers refer to this as “wasting DOF”; however, see [[Depth_of_field#The_object_field_method|The object field method]] below for a rationale for doing so. If the lens includes a DOF scale, the hyperfocal distance can be set by aligning the infinity mark on the distance scale with the mark on the DOF scale corresponding to the <var>f</var>-number to which the lens is set. For example, with the 35 mm lens shown above set to <var>f</var>'' / ''11, aligning the infinity mark with the ‘11’ to the left of the index mark on the DOF scale would set the focus to the hyperfocal distance. Focusing on the hyperfocal distance is a special case of zone focusing in which the far limit of DOF is at infinity.
===The object field method===
Traditional depth-of-field formulas and tables assume equal circles of
confusion for near and far objects. Some authors, such as
[[#CITEREFR Merklinger1992|Merklinger (1992)]],<ref>
Englander describes a similar approach in his paper
[http://www.englander-workshops.com/documents/depth.pdf Apparent Depth of Field: Practical Use in Landscape Photography]. ([[PDF]]);
Conrad discusses this approach, under Different Circles of
Confusion for Near and Far Limits of Depth of Field, and The Object Field
Method, in [http://www.largeformatphotography.info/articles/DoFinDepth.pdf Depth of Field in Depth] ([[PDF]])
</ref>
have 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, sometimes almost at infinity. For example, if
photographing a cityscape with a [[Bollard#Roads|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.
[[Moritz von Rohr]] also used an object field method, but unlike Merklinger, he
used the conventional criterion of a maximum circle of confusion diameter in
the image plane, leading to unequal front and rear depths of field.
== Limited DOF: selective focus ==
Depth of field can be anywhere from a fraction of a millimeter to virtually infinite.
In some cases, such as landscapes, it may be desirable to have the entire image in focus,
and a large DOF is appropriate. In other cases, artistic considerations may dictate that only
a part of the image be in focus, emphasizing the subject while de-emphasizing the background,
perhaps giving only a suggestion of the environment ([[#CITEREFLangford1973|Langford 1973]], 81).
For example, a common technique in [[melodrama]]s and [[horror film]]s is a closeup of a person's face,
with someone just behind that person visible but out of focus. A [[portrait]] or
[[macro photography|closeup]] still photograph might use a small DOF to isolate the subject
from a distracting background. The use of limited DOF to emphasize one part of an image is known
as ''selective focus'' or ''differential focus''.
Although a small DOF implies that other parts of the image will be unsharp, it does not, by itself,
determine ''how'' unsharp those parts will be. The amount of background (or foreground) blur depends
on the distance from the plane of focus, so if a background is close to the subject, it may be difficult
to blur sufficiently even with a small DOF. In practice, the lens <var>f</var>-number is usually adjusted
until the background or foreground is acceptably blurred, often without direct concern for the DOF.
Sometimes, however, it is desirable to have the entire subject sharp while ensuring that the background
is sufficiently unsharp. When the distance between subject and background is fixed, as is the case with
many scenes, the DOF and the amount of background blur are not independent. Although it is not always
possible to achieve both the desired subject sharpness and the desired background unsharpness, several
techniques can be used to increase the separation of subject and background.
For a given scene and subject magnification, the background blur increases with lens focal length.
If it is not important that background objects be unrecognizable, background de-emphasis can be
increased by using a lens of longer focal length and increasing the subject distance to maintain
the same magnification. This technique requires that sufficient space in front of the subject
be available; moreover, the perspective of the scene changes because of the different camera position,
and this may or may not be acceptable.
The situation is not as simple if it is important that a background object, such as a sign, be unrecognizable.
The magnification of background objects also increases with focal length, so with the technique just described,
there is little change in the recognizability of background objects. However, a lens of longer focal length
may still be of some help; because of the narrower angle of view, a slight change of camera position may suffice
to eliminate the distracting object from the field of view.
Although tilt and swing are normally used to maximize the part of the
image that is within the DOF, they also can be used, in combination with a
small <var>f</var>-number, to give selective focus to a plane that isn't
perpendicular to the lens axis. With this technique, it is possible to
have objects at greatly different distances from the camera in sharp focus
and yet have a very shallow DOF. The effect can be interesting because it
differs from what most viewers are accustomed to seeing.
==Near:far distribution ==
The DOF beyond the subject is always greater than the DOF in front of the
subject. When the subject is at the hyperfocal distance or beyond, the far
DOF is infinite; as the subject distance decreases, near:far DOF ratio
increases, approaching unity at high magnification. The oft-cited
“rule” that 1/3 of the DOF is in front of the subject and 2/3
is beyond is true only when the subject distance is 1/3 the hyperfocal
distance.
== Depth of field formulas==
The basis of these formulas is given in the section
[[#Derivation of the DOF formulas|Derivation of the DOF formulas]];<ref>
Derivations of DOF formulas are given in many texts, including
[[#CITEREFR Larmore1965|Larmore (1965)]]
and [[#CITEREFR Ray2002|Ray (2002)]].
Complete derivations also are given in Conrad's
[http://www.largeformatphotography.info/articles/DoFinDepth.pdf Depth of Field in Depth] ([[PDF]])
and van Walree's
[http://www.pinnipedia.org/optics/dofderivation.html Derivation of the DOF equations].
</ref>
refer to the diagram in that section for illustration of the quantities discussed below.
===Hyperfocal Distance===
Let <math>f</math> be the lens [[focal length]],
<math>N</math> be the lens [[f-number|<var>f</var>-number]], and <math>c</math> be the
[[circle of confusion]] for a given [[film format|image format]]. The
hyperfocal distance <math>H</math> is given by
:<math>H \approx \frac {f^2} {N c}</math>
===Moderate-to-large distances===
Let <math>s</math> be the distance at which the camera is focused (the
“subject distance”). When <math>s</math> is large in comparison with the
lens [[focal length]], the distance <math>D_{\mathrm N}</math> from the
camera to the near limit of DOF and the distance <math>D_{\mathrm F}</math>
from the camera to the far limit of DOF are
:<math>D_{\mathrm N} \approx \frac {H s} {H + s}</math>
:<math>D_{\mathrm F} \approx \frac {H s} {H - s} \mbox{ for } s < H</math>
When the subject distance is the hyperfocal distance,
:<math>D_{\mathrm F} = \infty</math>
:<math>D_{\mathrm N} = \frac H 2</math>
The depth of field <math>D_{\mathrm F} - D_{\mathrm N}</math> is
:<math>
\mathrm {DOF} \approx \frac {2 Hs^2}
{H^2 - s^2} \mbox{ for } s < H
</math>
For <math>s \ge H</math>, the far limit of DOF is at infinity and the DOF
is infinite; of course, only objects at or beyond the near limit of DOF
will be recorded with acceptable sharpness.
Substituting for <math>H</math> and rearranging, DOF can be expressed as
:<math>\mathrm {DOF} \approx \frac {2 N c f^2 s^2} {f^4 - N^2 c^2 s^2}</math>
Thus, for a given [[film format|image format]], depth of field is determined
by three factors: the [[focal length]] of the lens, the <var>f</var>-number of the
lens opening (the [[aperture]]), and the camera-to-subject distance.
===Close-up ===
When the subject distance <math>s</math> approaches the focal length, using
the formulas given above can result in significant errors. For close-up
work, the hyperfocal distance has little applicability, and it usually is
more convenient to express DOF in terms of image magnification. Let
<math>m</math> be the magnification; when the subject distance is small in
comparison with the hyperfocal distance,
:<math>\mathrm {DOF} \approx 2 N c \left ( \frac {m + 1} {m^2} \right ),</math>
so that for a given magnification, DOF is independent of focal length.
Stated otherwise, for the same subject magnification, all focal lengths
give approximately the same DOF. This statement is true <em>only</em> when
the subject distance is small in comparison with the hyperfocal distance,
however.
The discussion thus far has assumed a symmetrical lens for which the
entrance and exit [[pupil (optics)|pupil]]s coincide with the front and rear
[[Nodal point#Nodal points|nodal planes]], and for which the [[pupil magnification]]
(the ratio of [[exit pupil]] diameter to that of the
[[entrance pupil]])<ref>A well-illustrated discussion of pupils and pupil
magnification that assumes minimal knowledge of optics and mathematics is
given in [[#CITEREFR Shipman1977|Shipman (1977)]].</ref> is unity.
Although this assumption usually is reasonable for large-format lenses, it
often is invalid for medium- and small-format lenses.
When <math>s \ll H</math>, the DOF for an asymmetrical lens is
:<math>\mathrm {DOF} \approx \frac {2 N c (1 + m/P)}{m^2},</math>
where <math>P</math> is the pupil magnification. When the
pupil magnification is unity, this equation reduces to that for a
symmetrical lens.
Except for close-up and macro photography, the effect of lens asymmetry is
minimal. At unity magnification, however, the errors from neglecting the
pupil magnification can be significant. Consider a telephoto lens with
<math>P = 0.5</math> and a retrofocus wide-angle lens with <math>P =
2</math>, at <math>m = 1.0</math>. The asymmetrical-lens formula gives
<math>\mathrm {DOF} = 6 N c</math> and <math>\mathrm {DOF} = 3 N c</math>,
respectively. The symmetrical-lens formula gives <math>\mathrm {DOF} = 4 N
c</math> in either case. The errors are −33% and 33%, respectively.
===Focus and <var>f</var>-number from DOF limits===
Not all images require that sharpness extend to infinity; for given near
and far DOF limits <math>D_{\mathrm N}</math> and <math>D_{\mathrm F}</math>,
the required [[f-number|<var>f</var>-number]] is smallest when focus is set to
:<math>s = \frac {2 D_{\mathrm N} D_{\mathrm F} }
{D_{\mathrm N} + D_{\mathrm F} }
</math>
When the subject distance is large in comparison with the lens focal
length, the required <var>f</var>-number is
:<math>N \approx \frac {f^2} {c}
\frac {D_{\mathrm F} - D_{\mathrm N} } {2 D_{\mathrm N} D_{\mathrm F} }
</math>
In practice, these settings usually are determined on the image side of the
lens, using measurements on the bed or rail with a view camera, or using
lens DOF scales on manual-focus lenses for small- and medium-format
cameras. If <math>v_{\mathrm N}</math> and <math>v_{\mathrm F}</math>
are the image distances that correspond to the near and far limits of DOF,
the required <var>f</var>-number is minimized when the image distance
<math>v</math> is
:<math>v \approx \frac { v_{\mathrm N} + v_{\mathrm F} } {2}
= v_{\mathrm F} + \frac { v_{\mathrm N} - v_{\mathrm F} } {2}
</math>
In practical terms, focus is set to halfway between the near and far
image distances. The required <var>f</var>-number is
:<math>N \approx \frac { v_{\mathrm N} - v_{\mathrm F} } { 2 c }</math>
The image distances are measured from the camera's image plane to the
lens's image nodal plane, which is not always easy to locate. In most
cases, focus and <var>f</var>-number can be determined with sufficient
accuracy using the approximate formulas above, which require only the
difference between the near and far image distances;
view camera users often refer to the difference
<math>v_{\mathrm N} \, - \, v_{\mathrm F}</math> as the ''focus spread.''
Most lens DOF scales are based on the same concept.
===Foreground and background blur===
If a subject is at distance <math>s</math> and the foreground or background is at distance
<math>D</math>, let the distance between the subject and the foreground or background be
indicated by
:<math>x_\mathrm d = \left | D - s \right |</math>
The blur disk diameter <math>b</math> of a detail at distance <math>x_\mathrm d</math>
from the subject can be expressed as a function of the focal length <math>f</math>, subject magnification <math>m_\mathrm{s}</math>, and
<var>f</var>-number <math>N</math> according to
:<math>b = \frac {fm_\mathrm s} N \frac { x_\mathrm d } { s \pm x_\mathrm d}</math>
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 <math>b \le c</math>, the detail
is within the depth of field, and the blur is imperceptible. If the detail is only slightly
outside the DOF, the blur may be only barely perceptible.
For a given subject magnification, <var>f</var>-number, and distance from the subject
of the foreground or background detail, the degree of detail blur varies with the lens focal length.
For a background detail, the blur increases with focal length; for a foreground detail,
the blur decreases with focal length. For a given scene, the positions of the subject,
foreground, and background usually are fixed, and the distance between subject and the
foreground or background remains constant regardless of the camera position; however, to maintain
constant magnification, the subject distance must vary if the focal length is changed.
For small distance between the foreground or background detail, the effect of focal length is small;
for large distance, the effect can be significant. For a reasonably distant background detail,
the blur disk diameter is
:<math>b \approx \frac {fm_\mathrm s} {N} ,</math>
depending only on focal length.
The blur diameter of foreground details is very large if the details are close to the lens.
The ratio <math>b/c</math> is independent of camera format; the blur then is in terms of
circles of confusion.
The magnification of the detail also varies with focal length; for a given detail,
the ratio of the blur disk diameter to imaged size of the detail is independent of focal length,
depending only on the detail size and its distance from the subject. This ratio can be useful
when it is important that the background be recognizable (as usually is the case in evidence or
surveillance photography), or unrecognizable (as might be the case for a pictorial photographer
using selective focus to isolate the subject from a distracting background). As a general rule,
an object is recognizable if the blur disk diameter is one-tenth to one-fifth the size of the object
or smaller ([[#CITEREFWilliams1990|Williams 1990]], 205),<ref>
Williams gives the criteria for object recognition in terms of the system resolution. When resolution
is limited by defocus blur, as in the context of DOF, the resolution is the blur disk diameter; when
resolution is limited by diffraction, the resolution is the radius of the [[Airy disk]], according to the
[[Rayleigh criterion]].
</ref>
and unrecognizable when the blur disk diameter is the object size or greater.
The effect of focal length on background blur is illustrated in van Walree's article on
[http://www.vanwalree.com/optics/dof.html#backgroundblur Depth of field].
===Practical complications===
The distance scales on most medium- and small-format lenses indicate
distance from the camera's [[image plane (optics)|image plane]]. Most DOF
formulas, including those in this article, use the object distance
<math>s</math> from the lens's object nodal plane, which often is not easy to
locate. Moreover, for many zoom lenses and internal-focusing non-zoom
lenses, the location of the object nodal plane, as well as focal length,
changes with subject distance. When the subject distance is large in
comparison with the lens focal length, the exact location of the object
nodal plane is not critical; the distance is essentially the same whether
measured from the front of the lens, the image plane, or the actual nodal
plane. The same is not true for close-up photography; at unity
magnification, a slight error in the location of the object nodal plane can
result in a DOF error greater than the errors from any approximations in
the DOF equations.
The asymmetrical lens formulas require knowledge of the
[[pupil magnification]], which usually is not specified for medium- and
small-format lenses. The pupil magnification can be estimated by looking
into the front and rear of the lens and measuring the diameters of the
apparent apertures, and computing the ratio (rear diameter divided by front
diameter).<ref>The procedure for estimating pupil magnification is
described in detail in [[#CITEREFR Shipman1977|Shipman (1977)]].</ref>
However, for many zoom lenses and internal-focusing non-zoom lenses, the
pupil magnification changes with subject distance, and several measurements
may be required.
===Limitations ===
Most DOF formulas, including those discussed in this article, employ
several simplifications:
#[[Paraxial approximation|Paraxial]] ([[Gaussian optics|Gaussian)]] optics is assumed, and technically, the formulas are valid only for rays that are infinitesimally close to the lens axis. However, Gaussian optics usually is more than adequate for determining DOF, and non-paraxial formulas are sufficiently complex that requiring their use would make determination of DOF impractical in most cases.
#Lens [[aberration in optical systems|aberrations]] are ignored. Including the effects of aberrations is nearly impossible, because doing so requires knowledge of the specific lens design. Moreover, in well-designed lenses, most aberrations are well corrected, and at least near the [[optical axis]], often are almost negligible when the lens is stopped down 2–3 steps from maximum [[aperture]]. Because lenses usually are stopped down at least to this point when DOF is of interest, ignoring aberrations usually is reasonable. Not all aberrations are reduced by stopping down, however, so actual sharpness may be slightly less than predicted by DOF formulas.
#[[Diffraction]] is ignored. DOF formulas imply that any arbitrary DOF can be achieved by using a sufficiently large [[f-number|<var>f</var>-number]]. Because of diffraction, however, this isn't quite true. Once a lens is stopped down to where most aberrations are well corrected, stopping down further will decrease sharpness in the center of the field. At the DOF limits, however, further stopping down decreases the size of the [[defocus aberration|defocus]] blur spot, and the overall sharpness may increase. Consequently, choosing an <var>f</var>-number sometimes involves a tradeoff between center and edge sharpness, although viewers typically prefer uniform sharpness to slightly greater center sharpness. The choice, of course, is subjective, and may depend upon the particular image. Eventually, the defocus blur spot becomes negligibly small, and further stopping down serves only to decrease sharpness even at DOF limits. Typically, diffraction at DOF limits becomes significant only at fairly large <var>f</var>-numbers; because large <var>f</var>-numbers typically require long exposure times, [[motion blur]] often causes greater loss of sharpness than does diffraction. Combined defocus and diffraction is discussed in [[#CITEREFR Hansma1996|Hansma (1996)]], Conrad's [http://www.largeformatphotography.info/articles/DoFinDepth.pdf Depth of Field in Depth] ([[PDF]]), and Jacobson's [http://www.faqs.org/faqs/rec-photo/lenses/tutorial/ Photographic Lenses Tutorial].
#Post-capture manipulation of the image is ignored. Sharpening via techniques such as [[deconvolution]] or [[unsharp mask]] can increase the DOF in the final image, particularly when the original image has a large DOF. Conversely, [[image noise reduction]] can reduce the DOF.
#For digital capture with color filter array sensors, [[demosaicing]] is ignored. Demosaicing alone would normally reduce the DOF, but the demosaicing algorithm used might also include sharpening.
The lens designer cannot restrict analysis to Gaussian optics and cannot
ignore lens aberrations. However, the requirements of practical
photography are less demanding than those of lens design, and despite the
simplifications employed in development of most DOF formulas, these
formulas have proven useful in determining camera settings that result in
acceptably sharp pictures. It should be recognized that DOF limits are not
hard boundaries between sharp and unsharp, and that there is little point
in determining DOF limits to a precision of many significant figures.
== DOF vs. format size ==
To a first approximation, DOF is inversely proportional to format size.
More precisely, if photographs with the same final-image size are taken in
two different camera formats at the same subject distance with the same
field of view and <var>f</var>-number, the DOF is, to a first
approximation, inversely proportional to the format size. Strictly
speaking, this is true only when the subject distance is large in
comparison with the focal length and small in comparison with the
hyperfocal distance, for both formats, but it nonetheless is generally
useful for comparing results obtained from different formats
To maintain the same field of view, the lens focal lengths must be in
proportion to the format sizes. Assuming, for purposes of comparison, that
the 4×5 format is four times the size of 35 mm format, if a
4×5 camera used a 300 mm lens, a 35 mm camera would need a
75 mm lens for the same field of view. For the same
<var>f</var>-number, the image made with the 35 mm camera would have
four times the DOF of the image made with the 4×5 camera.
In many cases, the DOF is fixed by the requirements of the desired image.
For a given DOF and field of view, the required <var>f</var>-number is
proportional to the format size. For example, if a 35 mm camera
required {{f/}}11, a 4×5 camera would require {{f/}}45 to give the
same DOF. For the same ISO speed, the exposure time on the 4×5 would
be sixteen times as long; if the 35 camera required 1/250 second, the
4×5 camera would require 1/15 second. In windy conditions, the
exposure time with the larger camera might allow [[motion blur]].
Adjusting the <var>f</var>-number to the camera format is equivalent to
maintaining the same absolute aperture diameter.
The greater DOF with the smaller format can be either an advantage or a
disadvantage, depending on the desired effect. For the same amount of
foreground and background blur, a small-format camera requires a smaller
<var>f</var>-number and allows a shorter exposure time than a large-format
camera; however, many point-and-shoot digital cameras cannot provide a very shallow
DOF. For example, a point-and-shoot digital camera with a 1/1.8″
sensor (7.18 mm × 5.32 mm) at a normal focal
length and {{f/}}2.8 has the same DOF as a 35 mm camera with a normal
lens at {{f/}}13.
In some cases, [[View camera#View camera movements|camera movements]] (tilt or
swing) can be used to better fit the DOF to the
scene, and achieve the required sharpness at a smaller <var>f</var>-number.
== Photolithography ==
In [[semiconductor]] [[photolithography]] applications, depth of field is extremely important as [[integrated circuit]] layout features must be printed with high accuracy at extremely small size. The difficulty is that the [[wafer (electronics)|wafer]] surface is not perfectly flat, but may vary by several [[micrometre]]s. Even this small variation causes some distortion in the projected image, and results in unwanted variations in the resulting pattern. Thus photolithography engineers take extreme measures to maximize the optical depth of field of the photolithography equipment. To minimize this distortion further, chip makers like [[International Business Machines|IBM]] are forced to use [[chemical mechanical polish]]ing machines to make the wafer surface even flatter before lithographic patterning.
== Ophthalmology and optometry==
A person may sometimes experience better vision in daylight than at night because of an increased depth of field due to constriction of the [[pupil]] (i.e., [[miosis]]).
==Digital techniques for increasing DOF==
{|align="right"
|[[Image:Wolf spider single frame.jpg|thumb|250px|At <var>f</var>/11, the DOF in this image of a [[Wolf spider]] is very limited.]]
|[[Image:Wolf spider focus bracket02.jpg|thumb|250px|Combining 8 exposures, each taken at <var>f</var>/11, gives good DOF.]]
|}
===Focus stacking===
{{Main|Focus stacking}}
[[Focus stacking]] is a [[digital image processing]] technique which combines multiple images taken at different focus distances to give a resulting image with a greater depth of field than any of the individual source images. Available programs for multi-shot DOF enhancement include Syncroscopy AutoMontage, PhotoAcute Studio, [[Helicon Focus]] and [[CombineZM]].
Getting sufficient depth of field can be particularly challenging in macro photography. The images to the right illustrate the increase in DOF that can be achieved by combining multiple exposures.
===Wavefront coding===
{{Main|Wavefront coding}}
[[Wavefront coding]] is a method that convolves rays in such a way to provide an image where fields are in focus simultaneously with all planes out of focus by a constant amount.
===Plenoptic cameras===
{{Main|Plenoptic camera}}
A [[plenoptic camera]] uses a microlens array to capture [[4D light field]] information about a scene.
== Derivation of the DOF formulas ==
[[Image:DoF-sym.png|thumb|540px|right|DOF for symmetrical lens.]]
===DOF limits===
A symmetrical lens is illustrated at right. The subject, at distance
<math>s</math>, is in focus at image distance <math>v</math>. Point objects
at distances <math>D_\mathrm F</math> and <math>D_\mathrm N</math> would be
in focus at image distances <math>v_\mathrm F</math> and <math>v_\mathrm
N</math>, respectively; at image distance <math>v</math>, they are imaged
as blur spots. The depth of field is controlled by the aperture stop
diameter <math>d</math>; when the blur spot diameter is equal to the
acceptable [[circle of confusion]] <math>c</math>, the near and far limits
of DOF are at <math>D_\mathrm N</math> and <math>D_\mathrm F</math>. From
similar triangles,
:<math>\frac {v_\mathrm N - v} {v_\mathrm N} = \frac c d</math>
:<math>\frac {v- v_\mathrm F} {v_\mathrm F} = \frac c d</math>
It usually is more convenient to work with the lens <var>f</var>-number
than the aperture diameter; the <var>f</var>-number <math>N</math> is
related to the lens focal length <math>f</math> and the aperture diameter
<math>d</math> by
:<math>N = \frac f d\,;</math>
substituting into the previous equations and rearranging gives
:<math>v_\mathrm N = \frac {fv} {f - Nc}</math>
:<math>v_\mathrm F = \frac {fv} {f + Nc}</math>
The image distance <math>v</math> is related to an object distance
<math>s</math> by the [[thin lens]] equation
:<math>\frac 1 s + \frac 1 v = \frac 1 f\,;</math>
Substituting into the two previous equations and rearranging gives the
near and far limits of DOF:
:<math>D_{\mathrm N} = \frac {s f^2} {f^2 + N c ( s - f ) }</math>
:<math>D_{\mathrm F} = \frac {s f^2} {f^2 - N c ( s - f ) }</math>
===Hyperfocal distance===
Setting the far limit of DOF <math>D_{\mathrm F}</math> to infinity and
solving for the focus distance <math>s</math> gives
:<math>s = H = \frac {f^2} {N c} + f,</math>
where <math>H</math> is the [[hyperfocal distance]]. Setting the subject
distance to the hyperfocal distance and solving for the near limit of DOF
gives
:<math>D_{\mathrm N} = \frac {f^2 / ( N c ) + f} {2} = \frac {H}{2}</math>
For any practical value of <math>H</math>, the focal length is negligible
in comparison, so that
:<math>H \approx \frac {f^2} {N c}</math>
Substituting the approximate expression for hyperfocal distance into the
formulas for the near and far limits of DOF gives
:<math>D_{\mathrm N} = \frac {H s}{H + ( s - f )}</math>
:<math>D_{\mathrm F} = \frac {H s}{H - ( s - f )}</math>
Combining, the depth of field <math>D_{\mathrm F} - D_{\mathrm N}</math> is
:<math>
\mathrm {DOF} = \frac {2 H s (s - f )}
{H^2 - ( s - f )^2} \mbox{ for } s < H
</math>
===Moderate-to-large distances===
When the subject distance is large in comparison with the lens [[focal length]],
:<math>D_{\mathrm N} \approx \frac {H s} {H + s}</math>
:<math>D_{\mathrm F} \approx \frac {H s} {H - s} \mbox{ for } s < H</math>
:<math>
\mathrm {DOF} \approx \frac {2 H s^2}
{H^2 - s^2} \mbox{ for } s < H
</math>
For <math>s \ge H</math>, the far limit of DOF is at infinity and the DOF
is infinite; of course, only objects at or beyond the near limit of DOF
will be recorded with acceptable sharpness.
===Close-up ===
When the subject distance <math>s</math> approaches the lens focal length,
the focal length no longer is negligible, and the approximate formulas
above cannot be used without introducing significant error. At close
distances, the hyperfocal distance has little applicability, and it usually
is more convenient to express DOF in terms of magnification. Substituting
:<math>s = \frac {m + 1} {m} f</math>
and
:<math>s - f = \frac {f} {m}</math>
into the formula for DOF and rearranging gives
:<math>
\mathrm {DOF} = \frac
{2 f ( m + 1 ) / m }
{ ( f m ) / ( N c ) - ( N c ) / ( f m ) }
</math>
At the [[hyperfocal distance]], the terms in the denominator are equal, and
the DOF is infinite. As the subject distance decreases, so does the second
term in the denominator; when <math>s \ll H</math>, the second term becomes
small in comparison with the first, and
:<math>\mathrm {DOF} \approx 2 N c \left ( \frac {m + 1} {m^2} \right ),</math>
so that for a given magnification, DOF is independent of focal length.
Stated otherwise, for the same subject magnification, all focal lengths for
a given [[film format|image format]] give approximately the same DOF. This
statement is true only when the subject distance is small in comparison
with the hyperfocal distance, however. Multiplying the numerator and
denominator of the exact formula by
:<math>\frac {N c m} {f}</math>
gives
:<math>\mathrm {DOF} = \frac
{2 N c \left ( m + 1 \right )}
{m^2 - \left ( \frac {N c} {f} \right )^2}
</math>
Decreasing the focal length <math>f</math> increases the second term in the
denominator, decreasing the denominator and increasing the value of the
right-hand side, so that a shorter focal length gives greater DOF. The
effect of focal length is greatest near the hyperfocal distance, and
decreases as subject distance is decreased. However, the near/far
perspective will differ for different focal lengths, so the difference in
DOF may not be readily apparent. When the subject distance is small in
comparison with the hyperfocal distance, the effect of focal length is
negligible, and, as noted above, the DOF essentially is independent of
focal length.
===Near:far DOF ratio===
From the “exact” equations for near and far limits of DOF, the DOF in front of the subject is
:<math>s - D_{\mathrm N} = \frac {Ncs(s - f)} {f^2 + Nc(s - f)}\,,</math>
and the DOF beyond the subject is
:<math>D_{\mathrm F} - s = \frac {Ncs(s - f)} {f^2 - Nc(s - f)}</math>
The near:far DOF ratio is
:<math>\frac {s - D_{\mathrm N}} {D_{\mathrm F} - s}
= \frac {f^2 - Nc(s - f)} {f^2 + Nc(s - f)}</math>
This ratio is always less than unity; at moderate-to-large subject distances, <math>f \ll s</math>, and
:<math>\frac {s - D_{\mathrm N}} {D_{\mathrm F} - s}
\approx \frac {f^2 - Ncs} {f^2 + Ncs} = \frac {H - s} {H + s}</math>
When the subject is at the hyperfocal distance or beyond, the far DOF is infinite, and the near:far ratio is zero. It's commonly stated that approximately 1/3 of the DOF is in front of the subject and approximately 2/3 is beyond; however, this is true only when <math>s \approx H/3</math>.
At closer subject distances, it's often more convenient to express the DOF ratio in terms of the magnification
:<math>m = \frac f {s - f}</math>
Substitution into the “exact” equation for DOF ratio gives
:<math>\frac {s - D_{\mathrm N}} {D_{\mathrm F} - s}
= \frac {m - Nc/f} {m + Nc/f}</math>
As magnification increases, the near:far ratio approaches a limiting value of unity.
===Focus and <var>f</var>-number from DOF limits===
Not all images require that sharpness extend to infinity; the equations for
the DOF limits can be combined to eliminate <math>Nc</math> and solve for
the subject distance. For given near and far DOF limits
<math>D_{\mathrm N}</math> and <math>D_{\mathrm F}</math>, the
subject distance is
:<math>s = \frac {2 D_{\mathrm N} D_{\mathrm F} }
{D_{\mathrm N} + D_{\mathrm F} }
</math>
The equations for DOF limits also can be combined to eliminate
<math>s</math> and solve for the required <var>f</var>-number, giving
:<math>N = \frac {f^2} {c}
\frac {D_{\mathrm F} - D_{\mathrm N} }
{D_{\mathrm F} ( D_{\mathrm N} - f ) + D_{\mathrm N} ( D_{\mathrm F} - f ) }
</math>
When the subject distance is large in comparison with the lens focal
length, this simplifies to
:<math>N \approx \frac {f^2} {c}
\frac {D_{\mathrm F} - D_{\mathrm N} } {2 D_{\mathrm N} D_{\mathrm F} }
</math>
Most discussions of DOF concentrate on the object side of the lens, but the
formulas are simpler and the measurements usually easier to make on the
image side. If <math>v_{\mathrm N}</math> and <math>v_{\mathrm F}</math>
are the image distances that correspond to the near and far limits of DOF,
the required <var>f</var>-number is minimum when the image distance
<math>v</math> is
:<math>v = \frac {2 v_{\mathrm N} v_{\mathrm F} }
{v_{\mathrm N} + v_{\mathrm F} }
</math>
The required <var>f</var>-number is
:<math>N = \frac {f} {c}
\frac { v_{\mathrm N} - v_{\mathrm F} }
{v_{\mathrm N} + v_{\mathrm F} }
</math>
The image distances are measured from the camera's image plane to the
lens's image nodal plane, which is not always easy to locate. In most
cases, focus and <var>f</var>-number can be determined with sufficient accuracy using
the approximate formulas
:<math>v \approx \frac { v_{\mathrm N} + v_{\mathrm F} } {2}
= v_{\mathrm F} + \frac { v_{\mathrm N} - v_{\mathrm F} } {2}
</math>
:<math>N \approx \frac { v_{\mathrm N} - v_{\mathrm F} } { 2 c },</math>
which require only the difference between the near and far image distances;
focus is simply set to halfway between the near and far distances.
View camera users often refer to the difference
<math>v_{\mathrm N} \, - \, v_{\mathrm F}</math> as the ''focus spread'';
it usually is measured on the bed or focusing rail. On manual-focus
small- and medium-format lenses, the focus and <var>f</var>-number
usually are determined using the lens DOF scales, which
often are based on the two equations above.
For close-up photography, the <var>f</var>-number is more accurately determined using
:<math>N \approx \frac {1} { 1 + m } \frac { v_{\mathrm N} - v_{\mathrm F} } { 2 c },</math>
where <math>m</math> is the magnification.
[[Image:DefocusBlur.png|thumb|600px|right|Defocus blur for background object at B.]]
===Foreground and background blur===
If the equation for the far limit of DOF is solved for <math>c</math>, and the far distance
replaced by an arbitrary distance <math>D</math>, the blur disk diameter
<math>b</math> at that distance is
:<math>b = \frac {fm_\mathrm s} {N} \frac { D - s } { D }</math>
When the background is at the far limit of DOF, the blur disk diameter is equal to the circle
of confusion <math>c</math>, and the blur is just imperceptible. The diameter of the background
blur disk increases with the distance to the background. A similar relationship holds for the
foreground; the general expression for a defocused object at distance <math>D</math> is
:<math>b = \frac {fm_\mathrm s} {N} \frac { \left| D - s \right | } { D }</math>
For a given scene, the distance between the subject and a foreground or background object is usually
fixed; let that distance be represented by
:<math>x_\mathrm d = \left | D - s \right | ;</math>
then
:<math>b = \frac {fm_\mathrm s} {N} \frac { x_\mathrm d } { D }</math>
or, in terms of subject distance,
:<math>b = \frac {fm_\mathrm s} {N} \frac { x_\mathrm d } { s \pm x_\mathrm d } ,</math>
with the minus sign used for foreground objects and the plus sign used for background objects.
For a relatively distant background object,
:<math>b \approx \frac {fm_\mathrm s} N </math>
In terms of subject magnification, the subject distance is
:<math>s = \frac { m_\mathrm s + 1 } { m_\mathrm s } f ,</math>
so that, for a given <var>f</var>-number and subject magnification,
:<math>b = \frac {fm_\mathrm s} {N} \frac { x_\mathrm d } { \frac { m_\mathrm s + 1} {m_\mathrm s} f \pm x_\mathrm d }
= \frac {fm_\mathrm s ^2} {N} \frac { x_\mathrm d } { \left ( m_\mathrm s + 1 \right ) f \pm m_\mathrm s x_\mathrm d }
</math>
Differentiating <math>b</math> with respect to <math>f</math> gives
:<math>\frac {\mathrm d b} {\mathrm d f}
= \frac {\pm m_\mathrm s ^3 x_\mathrm d ^2}
{N \left [ \left ( m_\mathrm s + 1 \right ) f \pm m_\mathrm s x_\mathrm d \right ]^2 }
</math>
With the plus sign, the derivative is everywhere positive,
so that for a background object, the blur disk size increases with focal length.
With the minus sign, the derivative is everywhere negative,
so that for a foreground object, the blur disk size decreases with focal length.
The magnification of the defocused object also varies with focal length; the magnification of the
defocused object is
:<math>m_\mathrm d = \frac {v_\mathrm s} {D} = \frac { \left ( m_\mathrm s + 1 \right ) f } { D },</math>
where <math>v_\mathrm s</math> is the image distance of the subject. For a defocused object
with some characteristic dimension <math>y</math>, the imaged size of that object is
:<math>m_\mathrm d y = \frac { \left ( m_\mathrm s + 1 \right ) f y } { D }</math>
The ratio of the blur disk size to the imaged size of that object then is
:<math> \frac b { m_\mathrm d y } = \frac {m_\mathrm s} { m_\mathrm s + 1 } \frac {x_\mathrm d } { Ny },</math>
so for a given defocused object, the ratio of the blur disk diameter to object size
is independent of focal length, and depends only on the object size and its distance from the subject.
===Asymmetrical lenses===
The discussion thus far has assumed a symmetrical lens for which the
entrance and exit [[pupil]]s coincide with the object and image
[[nodal planes]], and for which the [[pupil magnification]] is unity.
Although this assumption usually is reasonable for large-format lenses, it
often is invalid for medium- and small-format lenses.
For an asymmetrical lens, the DOF ahead of the subject distance and the
DOF beyond the subject distance are given by<ref> This is discussed in
Jacobson's [http://www.faqs.org/faqs/rec-photo/lenses/tutorial/ Photographic Lenses Tutorial].
and complete derivations are given in Conrad's
[http://www.largeformatphotography.info/articles/DoFinDepth.pdf Depth of Field in Depth] ([[PDF]])
and van Walree's [http://www.pinnipedia.org/optics/dofderivation.html Derivation of the DOF quations].
</ref>
:<math>\mathrm {DOF_N} = \frac
{N c (1 + m/P)}
{m^2 [ 1 + (N c ) / ( f m ) ] }
</math>
:<math>\mathrm {DOF_F} = \frac
{N c (1 + m/P)}
{m^2 [ 1 - (N c )/ ( f m ) ] },
</math>
where <math>P</math> is the pupil magnification.
Combining gives the total DOF:
:<math>\mathrm {DOF} = \frac {2 f ( 1/m + 1/P ) }
{ ( f m ) / ( N c ) - ( N c ) / ( f m ) }
</math>
When <math>s \ll H</math>, the second term in the denominator becomes
small in comparison with the first, and
:<math>\mathrm {DOF} \approx \frac {2 N c (1 + m/P)}{m^2}</math>
When the pupil magnification is unity, the equations for asymmetrical
lenses reduce to those given earlier for symmetrical lenses.
===Effect of lens asymmetry===
Except for close-up and macro photography, the effect of lens asymmetry is
minimal. A slight rearrangement of the last equation gives
:<math>\mathrm {DOF} \approx \frac {2 N c} {m}
\left ( \frac 1 m + \frac 1 P \right )
</math>
As magnification decreases, the <math>1/P</math> term becomes smaller in
comparison with the <math>1/m</math> term, and eventually the effect of
pupil magnification becomes negligible.
==Notes==
<references />
==References==
* <span id="CITEREFR_Hansma1996">Hansma, Paul K. 1996. View Camera Focusing in Practice. ''Photo Techniques'', March/April 1996, 54–57.</span> Available as GIF images on the [http://www.largeformatphotography.info/ Large Format page].
* <span id="CITEREFLangford1973">Langford, Michael J. 1973. ''Basic Photography''. 3rd ed. Garden City, NY: Amphoto.</span> ISBN 0-8174-0640-9
* <span id="CITEREFR_Larmore1965">Larmore, Lewis. 1965. ''Introduction to Photographic Principles''. 2nd ed. New York: Dover Publications, Inc.</span>
* <span id="CITEREFR_Merklinger1992">Merklinger, Harold M. 1992. ''The INs and OUTs of FOCUS''. v. 1.0.3. Bedford, Nova Scotia: Seaboard Printing Limited. Version 1.03e available in [[PDF]] at http://www.trenholm.org/hmmerk/.</span> ISBN 0-9695025-0-8
* <span id="CITEREFR_Ray2002">Ray, Sidney F. 2002. [http://books.elsevier.com/us/focalbooks/us/subindex.asp?isbn=0240515404 ''Applied Photographic Optics'']. 3rd ed. Oxford: Focal Press.</span> ISBN 0-240-51540-4
* <span id="CITEREFR_Shipman1977">Shipman, Carl. 1977. ''SLR Photographers Handbook.'' Tucson: H.P. Books.</span> ISBN 0-912656-59-X
* <span id="CITEREFWilliams1990">Williams, John B. 1990. ''Image Clarity: High-Resolution Photography''. Boston: Focal Press.</span> ISBN 0-240-80033-8
==Further reading==
*Hummel, Rob (editor). 2001. ''American Cinematographer Manual.'' 8th ed. Hollywood: ASC Press. ISBN 0-935578-15-3
==See also==
*[[Angle of view]]
*[[Bokeh]]
*[[Circle of confusion]]
*[[Deep focus]]
*[[Depth-of-field adapter]]
*[[Depth of focus]]
*[[Frazier lens]] (very deep DOF)
*[[Hyperfocal distance]]
*[[Perspective distortion (photography)|Perspective distortion]]
*[[Shallow focus]]
*[[Tilted plane focus]] (camera movements used to achieve selective focus)
==External links==
{{commons|Depth of field|Depth of field}}
*[http://www.dofmaster.com/dofjs.html Depth of field calculator]
*[http://www.kevinwilley.com/l3_topic02.htm Depth of Field explanation and comparison photographs]
*[http://photospot2004.blogspot.com/2004/07/depth-of-field-third-dimension.html Depth of Field—the Third Dimension]
*Luminous Landscape [http://www.luminous-landscape.com/tutorials/dof2.shtml demonstration that all focal lengths have approximately the same depth of field] when <var>f</var>-number and subject image size are maintained
*[http://www.dofmaster.com/dof_imagesize.html Explanation of why “all focal lengths have approximately the same depth of field”] only under certain conditions
*Jeff Conrad’s [http://www.largeformatphotography.info/articles/DoFinDepth.pdf Depth of Field in Depth] ([[PDF]]). Includes derivations of most DoF formulas
*Joe Englander’s [http://www.englander-workshops.com/documents/depth.pdf Apparent Depth of Field: Practical Use in Landscape Photography] ([[PDF]]). Alternative criteria for [[circle of confusion]]
*David Jacobson’s [http://photo.net/learn/optics/lensTutorial Photographic Lenses Tutorial]
*Rik Littlefield’s [http://www.janrik.net/insects/ExtendedDOF/LepSocNewsFinal/EDOF_NewsLepSoc_2005summer.htm An Introduction to Extended Depth of Field Digital Photography]
*Justin Snodgrass’s [http://snodart.com/tutorials.php Depth of Field Explained Video].
*Paul van Walree’s [http://www.vanwalree.com/optics/dof.html Depth of field].
*Paul van Walree’s [http://www.vanwalree.com/optics/dofderivation.html DOF with Pupil Magnification]. Includes derivation
*[http://www.syncroscopy.com/syncroscopy/am.asp Synchroscopy AutoMontage]—proprietary software for combining differently focused photos to produce an image with extended DoF.
*[http://www.hadleyweb.pwp.blueyonder.co.uk/CZM/combinezm.htm CombineZ]—free software for combining differently focused photos to produce an image with extended DoF.
*[http://photoacute.com/studio PhotoAcute Studio]—proprietary software for combining differently focused photos to produce an image with extended DoF.
{{photography subject}}
[[Category:Geometrical optics]]
[[Category:Science of photography]]
[[ar:عمق الحقل]]
[[bg:Дълбочина на рязкост]]
[[ca:Profunditat de camp]]
[[cs:Hloubka ostrosti]]
[[da:Skarphedsdybde]]
[[de:Schärfentiefe]]
[[es:Profundidad de campo]]
[[eo:Kampa profundo]]
[[fr:Profondeur de champ]]
[[io:Feld-profundeso]]
[[id:Kedalaman ruang]]
[[it:Profondità di campo]]
[[he:עומק שדה]]
[[hu:Mélységélesség]]
[[nl:Scherptediepte]]
[[ja:被写界深度]]
[[no:Dybdeskarphet]]
[[pl:Głębia ostrości]]
[[pt:Profundidade de campo]]
[[ru:Глубина резко изображаемого пространства]]
[[fi:Syvyysterävyys]]
[[sv:Skärpedjup]]
[[tr:Netlik derinliği]]
[[zh:景深]]