Understanding Resolution in Machine Vision
It is important to understand how the resolution of a lens or sensor is specified and what those specifications really mean for your system. When choosing a lens it is important to make sure its performance is well matched to the resolution requirements of your sensor.
Understanding a manufacturer’s specifications for a lens can greatly simplify the research and purchasing processes. In order to know how a lens works, it is critical to understand resolution, magnification, contrast, f/#, and how to read common performance curves including Modulation Transfer Function (MTF), Depth of Field (DOF), Relative Illumination, and distortion. Resolution is a measurement of an imaging system’s ability to reproduce object detail, and can be influenced by factors such as the type of lighting used, the pixel size of the sensor, or the capabilities of the optics. The smaller the object detail, the higher the required resolution.
Dividing the number of horizontal or vertical pixels on a sensor into the size of the object one wishes to observe will indicate how much space each pixel covers on the object and can be used to estimate resolution. However, this does not truly determine if the information on the pixel is distinguishable from the information on any other pixel. As a starting point, it is important to understand what can actually limit system resolution. An example can be shown in Figure 1A pair of squares on a white background. If the squares are imaged onto neighbouring pixels on the camera sensor, then they will appear to be one larger rectangle in the image (1A) rather than two separate squares (1b). In order to distinguish the squares, a certain amount of space is needed between them, at least one pixel. This minimum distance is the limiting resolution of the system. The absolute limitation is defined by the size of the pixels on the sensor as well as the number of pixels on the sensor.
Line Pair and Sensor Limitations
The relationship between alternating black and white squares is often described as a line pair. Typically, the resolution is defined by the frequency measured in line pairs per mm (lp/mm). A lens’s resolution is unfortunately not an absolute number. At a given resolution, the ability to see the two squares as separate entities will be dependent on grey scale level. The bigger the separation in the grey scale between the squares and space between them (Figure 1b), the more robust is the ability to resolve the squares. This grey scale separation is known as contrast (at a specified frequency). The spatial frequency is given in lp/mm. For this reason, calculating resolution in terms of lp/mm is extremely useful when comparing lenses and for determining the best choice for given sensors and applications.
The sensor is where the system resolution calculation begins. By starting with the sensor, it is easier to determine what lens performance is required to match the sensor or other application requirements. The highest frequency which can be resolved by a sensor, the Nyquist frequency, is effectively two pixels or one line pair. Table 1 shows the Nyquist limit associated with pixel sizes found on some highly used sensors. The resolution of the sensor, also referred to as the image space resolution for the system, can be calculated by multiplying the pixel size in μm by 2 (to create a pair), and dividing that into 1000 to convert to mm:
Sensors with larger pixels will have lower limiting resolutions. Sensors with smaller pixels will have higher limiting resolutions. With this information, the limiting resolution on the object to be viewed can be calculated. In order to do so, the relationships between the sensor size, the field of view, and the number of pixels on the sensor need to be understood.
Sensor size refers to the size of a camera sensor’s active area, typically specified by the sensor format size. However, the exact sensor proportions will vary depending on the aspect ratio, and the nominal sensor formats should be used only as a guideline, especially for telecentric lenses and high magnification objectives. The horizontal or vertical sensor size can be directly calculated from the pixel size and the horizontal or vertical number of active pixels on the sensor.
Table 1: As pixel sizes get smaller the associated Nyquist limit in lp/mm rises proportionally.
|Pixel Size (μm)||Associated Nyquist Limit (lp/mm)|