In optics, particularly film and photography, the depth of field (DOF) is the distance in front of and behind the subject which appears to be in focus. For any given lens setting, there is only one distance at which a subject is precisely in focus, but focus falls off gradually on either side of that distance, so there is a region in which the blurring is tolerable. This region is greater behind the point of focus than it is in front, as the angle of the light rays change more rapidly; they approach being parallel with increasing distance.
Light from a point source at the correct distance will produce the image of a point on the film. A point farther away or nearer will produce an image in the form of a disk known as a "circle of confusion." The diameter of these circles increases with distance from the point of focus and so can be used as the measure of error or blurring of the image.
For a 35 mm motion picture, the image area on the camera negative is roughly 0.87 by 0.63 in (22 by 16 mm). The limit of tolerable error is usually set at 0.002 in (0.05 mm) diameter. For 16 mm film, where the image area is smaller, the tolerance is stricter, .001 in (0.025 mm). Standard depth of field tables are constructed on this basis, although generally 35 mm productions set it at 0.001 in (0.025 mm). 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.)
Another factor to be considered is that the film format's size will affect the relative depth of field. The larger the area of the film is, the longer a lens will need to be to capture the same framing as a smaller film 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 as 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 like another.
The hyperfocal distance is the nearest distance at which the far end of the depth of field stretches to infinity. Focusing the camera at the hyperfocal distance results in the largest possible depth of field. Focusing beyond the hyperfocal distance does not add depth of field to the far end (which is already at infinity), but it does subtract from the focus area in front of the hyperfocal point. Therefore there is less total depth of field. Likewise, focusing ahead of the hyperfocal distance results in a gain of focus area ahead of the focus point but loses some of the focus area beyond the focus point including the subjects near infinity.
Combining, the depth of field formula becomes
At the hyperfocal distance, the subject distance s that produces maximum depth of field, the limits are:
Thus for a given film format, depth of field is calculated from three factors: the focal length of the lens, the f-number of the lens opening (the aperture), and the camera-to-subject distance. While it is commonly said that lenses of short focal length have greater depth of field than long lenses, this rule of thumb is not strictly true because it takes into account only one of the three factors. In fact, for a given subject framing and aperture, lenses of all focal lengths have approximately the same depth of field. This is because subject framing is dependent on two of the factors (focal length and subject distance), while aperture is the third. Once the three factors are set in a fixed proportion, the depth of field will be almost the same.
An example makes this easier to understand. Take a photographer using a 400 mm lens to shoot a subject (for example, a bird) 10 metres away. Assuming an aperture of f/2.8, the depth of field of this shot would be 10 cm. Should the photographer now switch to a 50 mm f/2.8 lens, the depth of field at 10 metres is now 7.62 metres. However, once the photographer has moved to 1.25 metres from the bird, being the distance required such that the bird fills as much of the frame as it did with the 400 mm lens at 10 metres, the depth of field is almost exactly the same as before, 10 cm. In some cases, though, the DOF of one lens may extend to infinity, or nearly so, and the other still finite, so the approximation can break down in such cases.
In the macro regime, it is common to use a formula involving magnification rather than focal length:
As as example, at 1:1 macro shooting (, from the front principal plane), this equation gives . The focal-length-based approximate equation above, treating as negligible compared to , gives , which is quite a bit off; the same equations, measuring s from the front focal point (one in front of the front principal plane) gives , which is off by as big a factor in the other direction. The slightly more complex equations that lead to the right answer at 1:1 macro are:
Sometimes is used instead of the in the denominators, depending on which formula for is used.
If pupil magnification is taken into account, the macro equation becomes
which for a telephoto lens of gives and for a retrofocus wideangle lens with gives . These variations based on the lens asymmetry can be as large as the other approximations involved.
In the Photographic Lenses Tutorial, David Jacobson points out a set of elegant formulae that generalize this macro formula and are said to be exact for near and far DOF for all conditions:
To apply these formulae in practice, one needs to know the pupil magnification of the particular lens, which may not be constant if the lens has internally moving elements for focus or zoom. The pupil magnification factor can be estimated by simply looking into the front and rear of the lens and estimating the ratio of the sizes of the apparent apertures (rear diameter divided by front diameter).
| Example of how the F-number affects depth of field. Above, from top to bottom: f/22, f/8, f/4, f/2.8. |
In practical terms this means that smaller cameras have deeper depth of field than larger cameras. This can be an advantage or disadvantage, depending on the desired effect. A large format camera is better for photographs where the foreground and background are blurred (cf. bokeh), while a small camera maximizes depth of field, so that objects behind or in front of the focus plane are still in good focus. This difference between formats goes away if the cameras are compared with equal aperture diameters rather than equal f-numbers; but the smaller camera can not usually use a large aperture diameter, so can not achieve a very limited depth of field.
Digital image processing can increase the depth of field of a photograph by combining images from multiple shots at different focus depths, or by using techniques such as Wavefront coding. Available programs for multi-shot DOF enhancement include Helicon Focus and CombineZ5. See the linked online article by Rik Littlefield.
Geometrical optics Photographic terms
Skarphedsdybde | Schärfentiefe | Profundidad de campo | Profundo de akre bildata spaco | Profondeur de champ | Feld-profundeso | Depth of field | Profondità di campo | Scherptediepte | 被写界深度 | Dybdeskarphet | Głębia ostrości | Глубина резко изображаемого пространства | Skärpedjup | Netlik derinliği
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Depth of field".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world