Sub‐Pixel Edge Detection of Circular Holes via Adaptive Filtering and Improved Zernike Moments
To meet the requirements of high accuracy in image edge localization and strong noise resistance for computer vision calibration and precise measurement, an improved Zernike moment subpixel high-precision measurement method for circular hole-like workpieces is proposed. Firstly, the Canny operator is used as a coarse edge detection algorithm, with the traditional Gaussian filter in the Canny operator replaced by an improved Laplacian edge-adaptive median filter. This approach demonstrates improved edge preservation compared to traditional and adaptive median filtering, especially under high-concentration noise. Then, a subpixel edge detection algorithm is applied to refine the edges, thus enhancing the edge localization accuracy. An improved Zernike moment subpixel detection algorithm is employed for precise edge point detection. The improved algorithm selects a Zernike moment parameter template with higher detection accuracy. Finally, the inner and outer diameters of the circular hole-like part are measured by fitting the profile using the least squares method. Experimental results on several different workpieces demonstrate that the proposed algorithm achieves higher accuracy than the traditional Zernike moment subpixel method, with an error reduction of 75.1%, meeting the precision requirements in modern industrial part manufacturing processes.