The f/# setting on a lens controls many of the lens’s parameters: overall light throughput, depth of field, and the ability to produce contrast at a given resolution. Fundamentally, f/# is the ratio of the effective focal length (EFL) of the lens to the effective aperture diameter (DEP):
(1)
In most lenses, the f/# is set by the turning the iris adjusting ring, thereby opening and closing the iris diaphragm inside. The numbers labeling the ring denote light throughput with its associated aperture diameter. The numbers usually increase by multiples of √2. Increasing the f/# by a factor of √2 will halve the area of the aperture, effectively decreasing the light throughput of the lens by a factor of 2. Lenses with lower f/#s are considered fast and allow more light to pass through the system, while lenses of higher f/#s are considered slow and feature reduced light throughput.
Table 1 shows an example of f/#, aperture diameters, and effective opening size for a 25mm focal length lens. Notice that from the setting of f/1 to f/2, and again for f/4 to f/8, the lens aperture is reduced by half and the effective area is reduced by a factor of 4 at each interval. This illustrates the reduction in throughput associated with increasing a lens’s f/#.
f/# | Lens Aperture Diameter (mm) | Aperture Opening Area (mm2) |
1 | 25.0 | 490.6 |
1.4 | 17.9 | 250.3 |
2 | 12.5 | 122.7 |
2.8 | 8.9 | 62.6 |
4 | 6.3 | 30.7 |
5.6 | 4.5 | 15.6 |
8 | 3.1 | 7.7 |
F/# AND EFFECTS ON A LENS’S THEORETICAL RESOLUTION, CONTRAST, AND DOF
The f/# impacts more than just light throughput. Specifically, f/# is directly related to the theoretical resolution and contrast limits and the Depth of Field (DOF) and depth of focus of the lens. Additionally, it will influence the aberrations of a specific lens design.
As pixels continue to decrease in size, f/# becomes one of the most important limiting factors of a system’s performance because its effects on DOF and resolution move in opposite directions. As shown in Table 2, the requirements are often in direct conflict and compromises must be made.
f/# | Diffraction Limited Resolution | Depth of Field | Light Throughput | Numerical Aperture |
F# CHANGES WITH WORKING DISTANCE CHANGE
The definition of f/# in Equation 1 is limited in the sense that it is defined at an infinite working distance where the magnification is effectively zero. Most often in machine vision applications, the object is located much closer to the lens than an infinite distance away, and f/# is more accurately represented by the working f/#, Equation 2.
In the equation for working f/#, m represents the paraxial magnification (ratio of image to object height) of the objective. Note that as m approaches zero (as the object approaches infinity), the working f/# is equal to the infinite f/#. It is especially important to keep working f/# in mind at smaller working distances. For example, an f/2.8, 25mm focal length lens operating with a magnification of -0.5X will have an effective working f/# of f/4.2. This impacts image quality as well as the lens’s ability to collect light.
(2)
F/# AND NUMERICAL APERTURE (NA)
It can often be easier to talk about overall light throughput in a lens in terms of the cone angle, or the numerical aperture (NA), of a lens. The numerical aperture of a lens is defined as the sine of the marginal ray angle in image space, and is shown in Figure 1.
It is important to remember that f/# and NA are inversely related.
(3)
Figure 1: Visual representation of f/#, both for a simple lens (a) and a real-world system (b).
Table 3 shows both a typical f/# layout on a lens (each successive figure increasing by a factor of √2) along with its relationship with numerical aperture.
f/# | Numerical Aperture |
1.4 | 0.36 |
2 | 0.25 |
2.8 | 0.18 |
4 | 0.13 |
5.6 | 0.09 |
8 | 0.06 |
11 | 0.05 |
16 | 0.03 |
Notation in terms of numerical aperture as opposed to f/# is especially common in microscopy, but it is important to keep in mind that the NA values that are specified for microscope objectives are specified in object space, since light collection is often more easily thought of there. The other interesting parallel is that infinite conjugate microscope objectives can be thought of as machine vision objectives (focused at infinity) in reverse.
More on f/# effects on resolution can be found in the sections on MTF, the Diffraction Limit, and the Airy Disk. Details on f/# and DOF can be found in Sensor Relative Illumination, Roll Off and Vignetting.
f/# greatly impacts all of the following sections and is a very important concept to understand.