Maintain edge method of worm gear tooth profile based on improved guided filter algorithm
In the process of measuring worm gear pitch using machine vision methods,the worm gear tooth profile images captured by industrial cameras were highly susceptible to the influence of Gaussian noise and contour artifacts caused by uneven lighting.To address these issues,a worm gear tooth profile edge-preserving method based on an improved guided filtering algorithm was proposed.Firstly,the original worm gear tooth profile image was filtered and binarized.The filtering process used an improved guided filtering algorithm,constructing weight coefficients with a Gaussian function to replace the mean weight coefficients in the guided filtering algorithm.The binarization process was employed using the Otsu's method for threshold segmentation.Secondly,the filtered image was fused with the binarized image,and the fused image underwent Laplacian sharpening processing.Finally,a grayscale stretching logarithmic transformation was applied to obtain the enhanced image,and the worm gear tooth profile edge-preserving method based on an improved guided filtering algorithm was validated through experiments.The experimental results show that,in comparison to the traditional edge-preserving filtering algorithms,the worm gear tooth profile edge-preserving algorithm based on the improved guided filtering increases the peak signal-to-noise ratio by 7.81%and increases the image contrast by 43.6%,it effectively improves the signal-to-noise ratio and contrast of the image.The worm gear tooth contour images enhanced by the edge-preserving algorithm are utilized for machine vision measurement of the worm gear pitch deviation.The individual pitch deviations for the left and right tooth surfaces are respectively measured at 4.6 μm and 4.5 μm,while the cumulative pitch deviations for the left and right tooth surfaces are respectively 16.5 μm and 16.6 μm.All measurement results fall within the allowable range of pitch deviation.The research findings indicate that the worm gear tooth contour images enhanced by the edge-preserving algorithm exhibit superior denoising effects and clearer,more accurate details of the worm gear tooth contour,it is beneficial for the subsequent extraction of worm gear tooth contour features and the measurement of pitch deviation.