This is an old revision of this page, as edited by Dicklyon (talk | contribs) at 01:17, 5 April 2006 (Remove unneeded distinctions in hyperfocal distance; clean up formulae; distinguish exact from approximate relationships). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 01:17, 5 April 2006 by Dicklyon (talk | contribs) (Remove unneeded distinctions in hyperfocal distance; clean up formulae; distinguish exact from approximate relationships)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)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.
Definition of "focus"
Several factors determine whether the objective error in focus becomes noticeable. Subject matter, movement, the distance of the subject from the camera, and the way in which the image is displayed all have an influence. However, the most important factor is the actual degree of error in relation to the area of film exposed.
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 the image of a disk whose border is known as "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.
Hyperfocal distance
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.
Depth of field formula
Let H be the hyperfocal distance (calculated below from N = aperture number, and c, the circle of confusion for a given film format), let s be the distance at which the camera is focused, let f be the focal length, let DF be the distance from the camera to the far limit of depth of field, and let DN be the distance from the camera to the near limit of depth of field. Then depth of field (DOF) is given by
Combining, the depth of field formula becomes
At the hyperfocal distance, the subject distance s that produces maximum depth of field, the limits are:
There are more complex formulas that are commonly used. These simple formulae are exact when subject distance and hyperfocal distance are measured from the front focal point, i.e. from one focal length in front of the front principal plane of the lens.
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.
Artistic considerations
Depth of field can be anywhere from a fraction of an inch to virtually infinite. For instance a shot of a woman's face in closeup may have shallow depth of field (with someone just behind her visible but out of focus—common, for instance, in melodramas and horror films); a shot of rolling hills would be likely to have great depth of field, with the objects both in the foreground and in the background in focus.
Example of how the F-number affects depth of field. Above, from top to bottom: f/22, f/8, f/4, f/2.8. |
Aperture effects
The aperture controls the effective diameter of the lens opening. Reducing the aperture size increases the depth of field; however, it also reduces the amount of light transmitted, placing a practical limit on the extent to which the aperture size may be reduced. Photography lenses almost invariably work best at medium apertures. 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.
Depth of field versus film format size
As the equations above show, depth of field is also related to the circle of confusion criterion, which is typically chosen as a fraction such as 1/1000 or 1/1500 of the film format size. Larger imaging devices (such as 8x10 inch photographic plates) can tolerate a larger circle of confusion, while smaller imaging devices such as point-and-shoot digital cameras need a smaller circle of confusion. For equal field of view and f-number, depth of field is inversely proportional to the film format size.
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.
Depth of field in 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 surface is not perfectly flat, but may vary by several micrometres. 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 mimimize this distortion further, chip makers like IBM are forced to use chemical mechanical polishing machines to make the wafer surface even flatter before lithographic patterning.
In 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).
References
- Hummel, Rob (editor). American Cinematographer Manual, 8th edition. Hollywood: ASC Press, 2001.
See also
External links
- Depth of field calculator
- Demonstration that all focal lengths have identical depth of field
- Depth of Field: illustrations and terminology for photographers
- Explanation of why "... all focal lengths have identical depth of field" is true only in some circumstances.
- Depth of Field explanation and comparison photographs
- Depth of Field - the Third Dimension