Strobe Crosstalk in a Multi-Camera Cell: Timing, Filters, and the Frame That Proves It
Strobe crosstalk can be optical spill, trigger crosstalk or filter leakage. Test one strobe at a time and keep the strobe-only frame in the...
read more…
Diffraction sets the smallest detail a lens and camera can deliver, and the limit is set by the aperture and the wavelength, not by the megapixel label. For a machine vision line, the useful question is not “what is the diffraction limit of this lens” in isolation. It is whether the Airy disk at the production f-number is small enough for the pixel pitch and the object-space defect the inspection must see. A lens can be sharp at the centre and still fail a 2 µm defect because the aperture required for depth of field has already blurred the image. The aperture budget makes that trade-off visible before the lens is ordered.
A point of light does not form a perfect point on the sensor. The aperture diffracts it into a small pattern with a bright centre and rings around it, called the Airy disk. When the disk is much smaller than a pixel, the pixel can sample the image without much loss. When the disk is comparable to or larger than the pixel, the sensor is resolving the blur rather than the object. Adding more pixels then produces a larger file, not more information.
The practical limit is not a single pixel size. It depends on the f-number, the wavelength and the contrast the inspection needs. A 3 µm pixel at f/2.8 sees a different image from the same pixel at f/8. The lens may be diffraction-limited at both apertures, but the image at f/8 is softer because the aperture itself has spread the light. The pixel pitch questions behind a 5 MP label are the starting point; the aperture is the other half of the answer.
For a circular aperture, the diameter of the first dark ring of the Airy disk is approximately 2.44 times the wavelength times the f-number. At 550 nm, the visible green wavelength, that is about 1.34 times the f-number in micrometres. At f/4 the disk is about 5.4 µm; at f/8 it is about 10.7 µm; at f/11 it is about 14.7 µm. These are first-order numbers, but they are enough to show the direction of the trade-off.
Photography articles often compare the Airy disk with the pixel pitch and stop there. A machine vision line needs one more step: the object-space defect. If the lens magnifies the object by 0.5×, a 2 µm defect becomes a 1 µm image feature. The Airy disk must be small enough for that image feature, not for the object feature. If the magnification is 2×, the same defect becomes 4 µm on the sensor and the aperture budget is easier. The magnification belongs in the calculation before the lens is chosen.
The wavelength also belongs in the calculation. A line that uses a blue light at 450 nm has a smaller Airy disk than a line that uses 650 nm red light at the same f-number. A lens that is diffraction-limited in the visible band may behave differently in the near infrared. The RP Photonics explanation of diffraction gives the underlying formula; the production calculation uses the actual wavelength band, not a generic white-light average.
Start with the smallest defect the inspection must detect, then convert it to an image-space feature. The conversion is the magnification: image feature equals object feature times magnification. If the inspection needs a signal-to-noise ratio above a stated threshold, the image feature may need to be two or three pixels wide, not one. That further tightens the aperture budget because the lens must deliver contrast at the corresponding spatial frequency.
The spatial frequency is the inverse of twice the feature size, in line pairs per millimetre. A 2 µm image feature corresponds to about 250 line pairs per millimetre; a 4 µm feature corresponds to about 125 line pairs per millimetre. The lens MTF at that frequency, at the production f-number, is the number that matters. A centre MTF curve at 50 line pairs per millimetre can look impressive and still say nothing about a 2 µm defect.
The sensor’s Nyquist frequency is the other half of the sampling limit. For a pixel pitch p in millimetres, Nyquist is 1 divided by 2p. A 3.45 µm pixel has a Nyquist frequency near 145 line pairs per millimetre; a 2 µm pixel is near 250 line pairs per millimetre. If the lens cannot deliver contrast at the Nyquist frequency, the extra pixels are not being used. The aperture budget should compare the lens MTF at the defect frequency and at Nyquist, not just at the centre of the field.
Write the budget as a short table with four columns: object feature, magnification, image feature and required MTF. Add the production f-number, wavelength and working distance. Then fill in the Airy disk at that f-number and compare it with the image feature and the pixel pitch. If the disk is larger than the image feature, the aperture is the limiting factor. If the disk is smaller but the MTF at the defect frequency is low, the lens design is the limiting factor.
The budget should include the depth of field the process needs. A larger f-number increases depth of field but also increases the Airy disk. The two effects compete. The correct aperture is the one that meets the depth-of-field requirement while keeping the disk and the MTF inside the defect budget. That aperture may be f/4 for one line and f/8 for another, even when the same lens is used.

Use the through-focus MTF curve to see how the best focus and the contrast change with aperture. A curve that peaks sharply at one f-number and falls quickly at another is telling you that the lens and the aperture are not independent choices. The MTF reading guide explains the axes; the aperture budget explains which point on the curve belongs to the line. For a line with a fixed f-number and magnification, the FA machine vision lens range is the place to compare options before the bench test.
Depth of field is the range of object distances that looks acceptably sharp. It grows as the aperture closes, but the diffraction blur also grows. For a given magnification and pixel pitch, there is an aperture beyond which the loss from diffraction is larger than the gain from depth of field. The exact point depends on the acceptable circle of confusion and the spatial frequency the inspection needs.
A common mistake is to stop down until the whole part is inside the depth of field and then wonder why the image is soft. The part may be inside the geometric depth of field while the diffraction blur has already reduced the contrast at the defect frequency. The budget has to be checked at the production aperture, not at the aperture that gives the widest depth of field on paper.
If the depth of field is insufficient at the diffraction-limited aperture, the answer is usually a different optical layout, not a smaller aperture. A telecentric lens, a different magnification or a second camera can reduce the depth requirement without forcing the aperture into diffraction. The machine vision lens selection guide covers the layout choices; the aperture budget tells you when the layout is asking for more depth than the wavelength allows.
Need to check a lens at the production aperture? Send the defect size, magnification, working distance and f-number. Compare the FA machine vision lens range and ask for MTF at the frequency the defect requires.
Ask for MTF at the production f-number, the production working distance and the production wavelength. Ask for the curve at the centre, the mid-field and the corner, in both sagittal and tangential directions. Ask for the through-focus data, not only the best-focus curve, because the focus position and the aperture interact. A datasheet that gives a single MTF value at an unspecified aperture is not enough for a diffraction budget.
Ask for the lens’s usable aperture range and the diffraction-limited aperture, if the maker publishes one. Ask whether the lens is designed for a specific magnification and whether the MTF changes at the working distance the line needs. A lens that is excellent at 0.5× may not be the best at 1×, even if the focal length and mount are the same. The answer should be a curve or a table with conditions, not an adjective.
Ask for the image circle and the corner performance at the same time. A lens that meets the centre MTF at the production aperture can still fail at the corner because the off-axis rays see a different aperture and a different aberration balance. The corner is where the diffraction budget and the field performance meet. A lens that passes the centre check and fails the corner is not a candidate for a full-field inspection.
Set the lens at the production working distance, f-number and wavelength. Use a target with the defect frequency and contrast the inspection needs. Measure the MTF at the centre and at the corners, then repeat at one aperture on either side of production. If the production aperture is the best compromise, the curves should show it. If the production aperture is already in the diffraction-limited region, the curves will show a loss that no focus adjustment can recover.
| f-number | Airy disk at 550 nm | Pixel pitch where diffraction dominates |
|---|---|---|
| f/2.8 | about 3.8 µm | below about 2 µm |
| f/4 | about 5.4 µm | about 2.5–3 µm |
| f/5.6 | about 7.5 µm | about 3.5–4 µm |
| f/8 | about 10.7 µm | about 5–6 µm |
| f/11 | about 14.7 µm | about 7–8 µm |
The table is a first-order guide, not a pass/fail limit. The real limit depends on the MTF the inspection needs and the contrast of the defect. Use the table to see whether the production aperture is in the right region, then confirm with the lens curve and a bench measurement.
No. A better lens can improve contrast below the diffraction limit, but it cannot make the Airy disk smaller at the same aperture and wavelength. Once the disk is larger than the feature, the aperture is the limit.
Choose the aperture that meets the depth-of-field requirement while keeping the diffraction blur and the MTF inside the defect budget. The best aperture is a compromise, not a universal setting.
No. The MTF at f/8 can be lower because the aperture has increased the diffraction blur. Ask for the curve at the production f-number, or measure it on the bench.
Change the layout: a different magnification, a telecentric lens or a second camera. Stopping down further will increase the blur and may not improve the usable image.
Before the lens is ordered, send the defect size, magnification and production f-number to the lens maker. A short review of those three numbers can separate a lens that will resolve the defect from one that only looks sharp in the catalogue.
Related reading: FA C-Mount Lens Selection by Sensor Format (2/3 in to 1.1 in), C-Mount Flange Focal Distance Explained