Shot Noise Sets the Detection Limit for Faint Scratches
OPTICS
A 1 % scratch is invisible in a single pixel. It rises above the noise only across 28 pixels that each hold 9,009 electrons.
The limit for faint defects is set less by pixel count than by the total electrons gathered over the defect. Using EMVA 1288 measurements for three sensors, I worked out the single-pixel limit, the pixel area needed, and what frame averaging buys.
About 16 min read
If the lighting and focus are set and only a faint scratch is caught in some frames and missed in others, what should you suspect first? A scratch with 1 % contrast1 is buried in noise in a single pixel even when that pixel is filled to 80 % of saturation, and it crosses the line where it can be told apart only when it spans 28 pixels of the same brightness. That noise is shot noise2 made by the light itself, so no amount of threshold tuning removes it, and it is safer to work out this number before choosing a sensor and field of view.
A Ubicept article republished by the Edge AI and Vision Alliance on November 25 works out that freezing moving screws with a 1/1080 s exposure cut the light collected by about 11 times, and an f/11 aperture took about 37 times more, for a combined reduction of about 400 times. That lost light carries straight into the number of electrons each pixel collects. If pixel resolution3 sets the shape of a defect, the electron count decides whether it rises above the noise.
The example target is a shallow scratch on the top face of a light gray matte PC/ABS housing. A matte surface reflects mostly by diffuse reflection4, which scatters light evenly and keeps the background steady, but the contrast a shallow scratch makes against that background can fall to around 1 %, and its actual value cannot be guaranteed before a sample test. The calculation below assumes an exposure at 80 % of saturation and a scratch 0.4 mm long and 0.1 mm wide seen in a 60 mm wide field of view.
Filled to 80 % of saturation, one pixel cannot resolve contrast below 5.27 %
The faintest contrast a single pixel can resolve is set by the number of electrons it holds. Photons do not arrive in an even line but at random, so even under the same light the number of electrons collected in a pixel varies from frame to frame, and the standard deviation of that variation is the square root of the mean electron count. Teledyne's guide to camera sensitivity also gives shot noise as "square root of signal."
The EMVA 12885 table for the FLIR Blackfly S mono camera with a Sony IMX264 lists a saturation capacity6 of 11,261 e- and read noise7 of 2.34 e-. At 80 % of saturation the pixel collects 9,009 electrons, its variation is about 95, and the single-pixel SNR8 is 94.9. Read noise adds almost nothing at this level, so in a filled pixel the noise is made by the light alone.
Picture catching rain in buckets and the variation becomes tangible. Collect the same rain for the same time and the water level still differs a little from bucket to bucket; a bigger bucket makes that difference smaller relative to the whole, but it never goes away. Saying a defect is 1 % darker than the background means one bucket holds 1 % less water than its neighbor, and if the buckets differ by more than that on their own, there is no telling which one is the defect.
For the line where we can say a defect is told apart, I use the Rose criterion9. It says a small object is distinguished with near certainty only when it differs from the background by about five times the noise standard deviation, so the minimum contrast one pixel can resolve is 5 ÷ 94.9 = 5.27 %. Even the IMX287, with large 6.9 µm pixels and a saturation capacity of 22,187 e-, stops at 3.75 %, and the 2.74 µm IMX540 at 5.66 %, so whatever the well size, 1 % contrast is invisible in one pixel.
Bit depth is not the problem here. In an 8-bit image, 80 % of saturation is about 204 DN, the noise of one pixel is 2.15 DN, and a 1 % difference is 2.04 DN. Bit depth is not the culprit. Because the noise is already larger than one gray level, adding bits leaves the single-pixel SNR unchanged; bit depth starts to matter only when averaging several frames pushes the noise below one level.
A 1 % scratch rises above the noise only across 28 pixels
When one pixel is not enough, pixels have to be pooled. If a defect spans A pixels and they are read together, the signal difference grows A times and the noise √A times, so the SNR rises √A times; that is the Rose model, SNR ≈ C·√(A·N).
Working out the area that reaches SNR 5 for the IMX264 at 80 % of saturation gives 6.9 pixels at 2 % contrast, 27.8 pixels at 1 %, and 111.1 pixels at 0.5 %. When contrast halves, the pixels needed grow four times. Area is not free. The graph below shows how the SNR of the three contrasts rises as the area grows from 1 to 256 pixels.

The place to look in the graph is where the three lines meet the SNR 5 line. The 2 % line crosses it near 8 pixels, the 1 % line near 32 pixels, and the 0.5 % line reaches it only close to 128 pixels. The horizontal axis is logarithmic, one tick per doubling of pixels, and each tick raises the SNR only 1.41 times. The lower the contrast, the more ticks remain before SNR 5, so holding the line with area gets expensive fast.
Pooling the pixels is the algorithm's job. For a long, thin scratch, a filter stretched along the scratch direction or a sum of pixels along that direction actually uses the area A, while a decision that thresholds each pixel separately throws that area away. Pooling pixels and seeing shape have to be worked out separately, though, so I first check whether the width is at least three pixels and then whether the area fills the SNR. The basis for the three-pixel rule is worked out in When Magnified Shots Beat One High-Resolution Camera.
Of three sensors, the one with the largest pixels misses the scratch first
It seems the sensor with the highest single-pixel SNR should be strongest against faint defects, but over the same field of view the order flips. Putting a 60 mm wide field on the three sensors gives a pixel resolution of 83.33 µm for the IMX287, 24.51 µm for the IMX264, and 11.28 µm for the IMX540, and the 0.4 mm × 0.1 mm scratch covers 5.8, 66.6, and 314.5 pixels respectively. At 1 % contrast the SNR comes out as follows.
3.2
IMX287, 6.9 µm pixels, scratch covers 5.8 px
7.74
IMX264, 3.45 µm pixels, scratch covers 66.6 px
15.67
IMX540, 2.74 µm pixels, scratch covers 314.5 px
The IMX287, with the highest single-pixel SNR at 133.2, falls short of SNR 5 at 3.2, while the IMX540, with the lowest single-pixel SNR, has the most room at 15.67. The total electrons gathered over the scratch are about 100,000, 600,000, and 2.46 million. Saturation electrons per unit pixel area are 466 e-/µm² for the IMX287, 946 e-/µm² for the IMX264, and 1301 e-/µm² for the IMX540, so among these three sensors the smaller pixels actually pack more electrons into the same area.

The figure places the same scratch on the pixel grids of the three sensors at true scale. On the top grid the width is only 1.2 pixels and no shape forms; moving down, more pixels cover the scratch and the total electrons grow with them. With film, the same scene shot on medium format instead of 35 mm spreads the subject over more silver grains and looks less grainy, and when you look at faint defects the sensor area plays the role of that film format.
This comparison carries one premise. It assumes enough light reaches all three sensors to fill them to 80 % of saturation, and the larger the sensor area, the more total light it takes to keep the same brightness. On a line where exposure cannot be lengthened, the lighting has to make up the difference, and how to recalculate the lighting when changing sensors is written up in Changing the Sensor Means Recalculating the Illumination.
Averaging two frames of the same spot reaches down to 0.5 % contrast
What area cannot supply, time can. Frame averaging10, taking M frames of a stationary part at the same position and averaging each pixel, reduces shot noise that changes every frame by √M. At 0.5 % contrast the IMX264 reaches an SNR of only 3.87, below the threshold, but averaging two frames brings it to 5.47.

The graph keeps the same scratch at 0.5 % contrast and plots the SNR of the three sensors as the averaged frames grow from 1 to 10. The IMX540 is already at 7.84 with one frame, the IMX264 crosses the threshold at two frames, and the IMX287 just reaches it at 5.06 after ten. The lines flatten with more frames because SNR rises only with the square root of the frame count, and whether you pool pixels or frames, the total electrons piled on the defect set the SNR.
The same idea is on record as a patent in the inspection equipment industry. US patent US12614256B2, granted to KLA on April 28, 2026, covers an inspection system that averages swaths scanned repeatedly along the same path to reduce noise and finds defects in that image.
Time is not free either. Averaging two frames means the part must stay still through two exposures, and the takt time grows by that much. That is why averaging goes first to stationary inspection. The conditions for freezing moving parts with short pulses of light are worked out in Moving Parts Are Frozen by How Long the Light Stays On.
The patterns averaging cannot erase are fixed in the pixels and the surface
Averaging reduces only the noise that changes every time. PRNU11, the slight difference in sensitivity from pixel to pixel under the same light, appears in the same place at the same size in every frame, and the grain of a matte molded surface records identically in every frame as long as the part does not move. Both remain after averaging ten frames, and the more shot noise you remove, the more they come forward.
What people assume
More frames reduce every kind of noise.
Along the light path
Averaging reduces only noise that changes from frame to frame; pixel sensitivity differences and surface grain that sit in the same place every frame stay as they are.
The two patterns are handled differently. The pixel pattern can be reduced with flat-field correction, which matches each pixel's gain by imaging a white reference plate, but that correction gain also amplifies noise, as worked out in Flat-Field Correction Gain Amplifies Noise Along with Uneven Light. The surface pattern comes from the same object as the defect, so no correction erases it, and you have to change the lighting angle and degree of diffusion to find a condition where the grain stands out less than the scratch.
Which of the two sets the threshold for a 1 % scratch differs from surface to surface. If the grain of the matte PC/ABS records weaker than 1 %, the calculation above holds as it is; if it records stronger, the decision stops at the grain no matter how many electrons you collect. So I would first measure the background variation in an average of ten frames of a defect-free part, and trust this calculation only when that value is below 1 %.
A station that fixes the light and height that fill the wells
When this calculation moves to a station, the amount of light that fills the wells and the lens height have to be fixed first. A diffuse light that raises the background to 80 % of saturation sits between the lens and the housing, so you must check on the datasheet that the WD12 from the lens front to the housing top exceeds the light height. Dimming light changes results under the same threshold, as worked out in When the Light Dims by 5 %, How Many Good Pixels Turn Into Defects?, so I record the background brightness each time the equipment is switched on.

What to check in the figure is the distance from the camera to the housing and the height of the diffuse light placed between them. If that gap changes, the background brightness changes, and with it the electrons collected per pixel and the pixel count worked out above. The values for the example setup are as follows.
| Item | Value | Basis | In plain words |
|---|---|---|---|
| ① Minimum defect size | Length 400 µm, width 100 µm, contrast 1 % (example) | IMX264, 60 mm field: width 4.08 px, area 66.6 px | Check shape with three or more pixels, brightness difference with area |
| ② Optical setup | IMX264 3.45 µm, pixel resolution 24.51 µm, diffuse light raising the background to 80 % of saturation, WD confirmed on the datasheet to exceed the light height | 9,009 e- of the 11,261 e- saturation capacity | Fill the wells before counting decisions |
| ③ Algorithm parameters | Integration area along the scratch of 28 px or more (1 % contrast); at 0.5 % contrast, average 2 frames while stationary; store 12-bit; decide after flat-field correction | SNR 7.74 (1 frame, 1 %), 5.47 (2 frames, 0.5 %) | Fill SNR 5 with area and frame count |
Of the three rows, the one that breaks first in the field is the "80 % of saturation" in the second row. If the background drops to half brightness, each pixel gets half the electrons, and keeping the same SNR takes twice the area or frames. Conversely, if the defect contrast is a comfortable 5 % or more and the defect is large enough to leave pixels to spare, a sensor with fewer pixels can win by cutting data and processing time, though where that boundary falls cannot be guaranteed before a sample test.
The habit this calculation leaves is to ask for the saturation capacity and read noise from the measurement table along with the resolution when choosing a camera. In cost terms, a single faint defect splits the path between enlarging the sensor and adding frames that lengthen takt time, and which is cheaper depends on line speed and how long the part can stay still. This article explains technology and is not investment advice. See our Disclaimer.
Field Note
When I hear that faint scratches are missed on and off, I put the decision results aside and open the background histogram first. I note where the background mean sits as a percentage of saturation, work out the electrons and SNR of one pixel from the saturation capacity in the table, and count how many pixels the missed scratch covers; that usually tells whether the miss is on the noise side or the threshold side. If it looks like noise, I shoot the same part twice while stationary, average the frames, and check whether a pattern still remains in the background of the average. If a pattern remains, I look at the lighting again before adding frames.
Field Checkpoints
Before moving the calculation into the setup, confirm that the electrons actually collect in those numbers. Match each item against the values in parentheses.
- Is WD secured to the housing top even with the diffuse light in place? (whether the distance from lens front to the inspection surface is longer than the light height)
- Is the background brightness around 70 to 80 % of saturation? (histogram mean divided by full scale)
- Do you have the saturation capacity and read noise from the camera's EMVA 1288 table? (inputs for single-pixel SNR)
- How many pixels does the faintest defect you must not miss cover? (28 or more at 1 % contrast, IMX264 example)
- Is the defect at least three pixels wide? (whether its shape forms)
- Does the decision pool pixels along the defect direction? (thresholding each pixel throws away the area)
- Can the part stay still for as many frames as you average? (takt time grows by the number of exposures)
- Does a pattern remain in the average of a defect-free part? (check pixel sensitivity differences and surface grain)
- Did you set brightness with exposure and lighting instead of gain? (gain does not add electrons)
Frequently Asked Questions
Does combining pixels by binning work the same as frame averaging?
Binning sums the electrons of neighboring pixels, so it is the same as pooling by area, and the SNR rises when the defect is larger than the combined pixels. But the pixel resolution gets coarser and a thin scratch may drop below three pixels wide, and it spends a different resource from frame averaging, which reduces noise that changes each frame. If area is left over I look at binning first; if time is left over, averaging.
How do these numbers change with a color sensor?
A color sensor passes only part of the light through the color filter on each pixel, so under the same lighting each pixel tends to collect fewer electrons than a mono sensor. For inspections that read faint brightness differences, I start the calculation with a mono sensor unless color is truly needed for the decision.
Glossary
- [1] Contrast contrast
The brightness difference between target and surroundings divided by the background brightness. On a background of 100, a 1 % defect records as 99 or 101. ↩ - [2] Shot noise photon shot noise
The flicker in brightness caused by photons, the particles of light, arriving at random. If N arrive on average, the flicker is √N, so no light source or sensor can bring it to zero. ↩ - [3] Pixel resolution pixel resolution, µm/px
The length on the object covered by one pixel. It is the field-of-view width divided by the pixel count in that direction. ↩ - [4] Diffuse reflection diffuse reflection
Reflection in which a rough surface scatters light back in many directions. Matte surfaces reflect mostly this way, so shallow scratches show low contrast. ↩ - [5] EMVA 1288 EMVA 1288 standard
The camera performance measurement standard of the European Machine Vision Association. It measures values such as saturation capacity and read noise the same way so cameras can be compared. ↩ - [6] Saturation capacity full well
The number of electrons a pixel can hold before it overflows. The larger it is, the higher the SNR ceiling of a single pixel. ↩ - [7] Read noise temporal dark noise
Noise added by the circuit that reads out the pixel, present even with no light. It is given in electrons and becomes far smaller than shot noise once the well is well filled. ↩ - [8] SNR signal-to-noise ratio
The signal size divided by the standard deviation of the noise. In defect inspection it is read as the brightness difference between defect and background divided by the noise. ↩ - [9] Rose criterion Rose criterion
A rule of thumb that a small object in a noisy image is told apart with near certainty only when it differs from the background by about five times the noise standard deviation. It is named after physicist Albert Rose. ↩ - [10] Frame averaging frame averaging
Shooting the same scene several times and averaging each pixel. Noise that changes from frame to frame falls by the square root of the frame count M, while patterns fixed in place stay as they are. ↩ - [11] PRNU photo response non-uniformity
Fixed differences in signal between pixels that receive the same light. They appear in the same place at the same size in every frame, so averaging does not reduce them; correction does. ↩ - [12] WD working distance
The distance from the front of the lens to the surface being inspected. The light has to fit in that gap, so this distance sets most of the setup height. ↩
References
- Teledyne FLIR, BFS-PGE-50S5 EMVA 1288 Imaging Performance (Sony IMX264, 3.45 µm, saturation capacity 11,261 e- (mono), read noise 2.34 e-, max SNR 40.52 dB)
- Teledyne FLIR, BFS-PGE-244S8 EMVA 1288 Imaging Performance (Sony IMX540, 2.74 µm, 5320 × 4600, saturation capacity 9,770 e-, read noise 2.28 e-)
- Teledyne FLIR, BFS-U3-04S2 EMVA 1288 Imaging Performance (Sony IMX287, 6.9 µm, 720 × 540, saturation capacity 22,187 e-, read noise 3.71 e-)
- Teledyne Vision Solutions, How to Evaluate Camera Sensitivity (shot noise is the square root of signal; definition of saturation capacity)
- Wikipedia, Albert Rose (physicist) (small objects distinguished with near certainty at a difference of at least 5 times the noise standard deviation, the Rose criterion)
- L. Rigon, University of Trieste, Lecture 2: The Rose Model (SNR ≈ C·√(A·N); visible at SNR of about 5 or more)
- US patent US12614256B2, KLA Corp, Shot noise reduction using frame averaging (granted April 28, 2026; defect detection in an image denoised by averaging repeat swaths)
- E. Peters (Ubicept), Low Light Isn't Just About Lighting (Edge AI and Vision Alliance, November 25, 2026; a 1/1080 s exposure cut light collection by about 11x, f/11 by about 37x, about 400x combined)
- Formulas: single-pixel SNR = N ÷ √(N + read noise²); single-pixel minimum contrast = 5 ÷ single-pixel SNR; required area A = (5 ÷ (C × single-pixel SNR))²; defect SNR = C × single-pixel SNR × √A; M-frame SNR = defect SNR × √M; pixel resolution = field of view ÷ pixel count
Related reading — When Light Runs Short, a SPAD Sensor Counts Photons Instead of Extending Exposure · Why Do the Corners of a 100 MP Sensor Go Dark First? · When an LED Light Dims, Yesterday's Threshold Misses Today's Defect


