中图分类号： TP391 文献标识码： A DOI：10.16157/j.issn.0258-7998.211938 中文引用格式： 巩玉奇，陶晋宜，杨刚. 基于改进中值滤波的手机玻璃瑕疵图像增强方法[J].电子技术应用，2022，48(7)：91-95. 英文引用格式： Gong Yuqi，Tao Jinyi，Yang Gang. Mobile phone glass defect image enhancement method based on improved median filter[J]. Application of Electronic Technique，2022，48(7)：91-95.
Mobile phone glass defect image enhancement method based on improved median filter
Gong Yuqi1，2，Tao Jinyi1，Yang Gang2
1.Institute of Electrical and Power Engineering，Taiyuan University of Technology，Taiyuan 030024，China； 2.Key Lab of High-Speed Circuit Design and EMC.Ministry of Education，Xidian University，Xi′an 710071，China
Abstract： The defect detection of mobile phone cover glass is mainly divided into several steps: image acquisition, image preprocessing, image segmentation and defect classification. Due to the difficulty of obtaining high-quality images, the subsequent image preprocessing will be particularly important. Traditional filtering methods, when dealing with image noise, more or less blur the picture and lose part of the effective information. Usually the presence of noise will make the extreme value in the nearby neighborhood have a large gap between the upper and lower extremes, so filtering becomes an indispensable step. This paper improves the traditional median filter，by judging whether the target pixel needs to be filtered, while enhancing the image, it reduces the loss of useful defect information. This article uses histogram equalization to further process the image after the filtering process, which has the effect of image enhancement. Compared with the traditional median filtering, this method not only preserves the edge information of the flaws, but also has better image enhancement effects.
Key words : glass defects；image enhancement；median filtering；histogram equalization；PSNR