Application of improved median filtering algorithm in pre-processing of crystal rod images
Traditional median filtering algorithms cannot accurately distinguish between noise and line features in crystal rod image processing,resulting in excessive smoothing of line features.To address this issue,a me-dian filtering algorithm based on image gradients was proposed.By introducing pixel similarity and image gra-dient information,the accuracy of noise removal and the ability to protect line features were improved.A com-parison was conducted of the peak signal-to-noise ratio and edge gradient intensity of the processed images,and results show that after the improved algorithm processing,the edge intensity and peak signal-to-noise ratio of the line features in the images were higher than those of the standard median filtering and fast weighted me-dian filtering algorithms,and had better performance in the preprocessing of crystal rod images.