|The picture above shows shallow depth of field.|
In film and photography, the depth of field 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 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 changes more rapidly; they approach being parallel with increasing distance.
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.
For a 35mm motion picture, the image area on the camera negative is roughly .86" x .63". The limit of tolerable error is usually set at .002" diameter. For 16mm film, where the image area is smaller, the tolerance is stricter, .001". Standard depth of field tables are constructed on this basis.
(A table for 35mm still photography would be somewhat different since more of the film is used for each image.)
Example of how the f-number affects
Depth of field is related to the focal length of the lens, the effective diameter of the lens opening and the camera-to-subject distance. Lenses of short focal length have greater depth of field than long lenses. For any given lens, the depth of field increases as the distance to the point of focus increases up to the hyperfocal distance (see below). As the point of focus moves beyond the hyperfocal distance the field extends to infinity, but the distance to the nearest point of acceptable clarity increases, so the total depth of field actually decreases.
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 transmitted light placing a practical limit on the extent to which the aperture size may be reduced. In 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 give a variety of special effects. In photolithography, where extremely shallow depths of field on the order of a few microns are common, the proper aperture setting is critical.
For any given lens and aperture, the depth of field is maximized by focusing the lens at the hyperfocal distance. The hyperfocal distance is the point of focus chosen to create a depth of field from infinity to a near point that is half of the hyperfocal distance. For example if a lens is focused at infinity and the closest point of acceptable sharp focus is 10 m away (the hyperfocal distance), the depth of field will extend from 10 m to infinity. If now the lens is focused on a point 10 m away (at the hyperfocal distance), the depth of field will still extend to infinity, but the nearest point of acceptable sharp focus will be 5m, maximizing the depth of field. If the lens is focused on a point closer than the hyperfocal distance, the depth of field will no longer extend to infinity greatly reducing the depth of field.
In photolithography depth of field is taken to the extreme, as the variations in physical distance across a semiconductor chip may be a few micrometers. Even this small variation causes some distortion in the projected image, and results in unwanted variations in the resulting pattern. To mimimize this distortion, chip makers like IBM are using chemical-mechanical polishing machines to make the wafers even flatter before lithographic patterning.