Статьи218 просмотров

Субпиксельное выделение краёв: сравнение алгоритмов и проверка повторяемости

Локализация края до 1/10-1/50 пикселя даёт повторяемость 0,3 мкм; предел задают алгоритм и фокус.

华旋光电技术部
Субпиксельное выделение краёв: сравнение алгоритмов и проверка повторяемости

Why sub-pixel matters

Vision machines typically run 2 to 10 μm per pixel. If edges were localized only to whole pixels, that scale would cap the accuracy, far from a machine specification of a few microns. Sub-pixel algorithms fit the true edge position from the grey transition band — an ideal step blurred by optics spans three to eight pixels — reaching 1/10 to 1/50 pixel and unlocking the optical resolution.

Algorithm comparison

AlgorithmPrincipleAccuracyCharacter
Gaussian fitFit a Gaussian to the grey-level derivative and take the peak1/10-1/20 pxFast, moderate noise immunity
Polynomial interpolationParabola through three points near the derivative peak1/10 pxSimplest, real-time capable
Zernike momentsOrthogonal moments solve the step-edge parameters1/20-1/50 pxHigh accuracy, heavy computation
Spatial momentsGrey-moment conservation gives edge position1/20-1/50 pxRobust to blur

Accuracy drivers

Focus is the first variable: defocus broadens the transition band, lowers contrast and shifts the localized edge systematically, so autofocus repeatability should beat one fifth of the depth of field. Illumination uniformity governs threshold stability, and ring light versus transmitted light need separate calibration. The quality of the measured edge itself — burrs, chamfers, roughness — often exceeds algorithm error by an order of magnitude and is the real source of scatter.

Repeatability verification

Use a gauge block or master ring with clean edges. Fix illumination and focus, measure the same position 30 times, and take the standard deviation as single-point repeatability; it should be under 0.3 μm on a 5 μm/pixel system. Then move the stage and repeat ten times at several field positions to assess position dependence. Any claimed sub-pixel accuracy must be demonstrated this way, not quoted from algorithm papers.

⇄0СравнениеСравнение характеристик