Improved Method Based on Retinex and Gabor for the Surface Defect Enhancement of Aluminum Strips
Qi Zhang,Hongqun Tang,Yong Li,Bing Han,Jiadong Li
DOI: https://doi.org/10.3390/met13010118
IF: 2.695
2023-01-07
Metals
Abstract:Aiming at the problems of the blurred image defect contour and the surface texture of the aluminum strip suppressing defect feature extraction when collecting photos online in the air cushion furnace production line, we propose an algorithm for the surface defect enhancement and detection of aluminum strips based on the Retinex theory and Gobar filter. The Retinex algorithm can enhance the information and detail part of the image, while the Gobar algorithm can maintain the integrity of the defect edges well. The method first improves the high-frequency information of the image using a multi-scale Retinex based on a Laplacian filter, scales the original image and the enhanced image, and enhances the contrast of the image by adaptive histogram equalization. Then, the image is denoised, and texture suppressed using median filtering and morphological operations. Finally, Gobar edge detection is performed on the obtained sample images by convolving the sinusoidal plane wave and the Gaussian kernel function in the null domain and performing double-threshold segmentation to extract and refine the edges. The algorithm in this paper is compared with histogram equalization and the Gaussian filter-based MSR algorithm, and the surface defects of aluminum strips are significantly enhanced for the background. The experimental results show that the information entropy of the aluminum strip material defect image is improved from 5.03 to 7.85 in the original image, the average gradient of the image is improved from 3.51 to 9.51 in the original image, the contrast between the foreground and background is improved from 16.66 to 117.53 in the original image, the peak signal-to-noise ratio index is improved to 24.50 dB, and the integrity of the edges is well maintained while denoising. This paper's algorithm effectively enhances and detects the surface defects of aluminum strips, and the edges of defect contours are clearer and more complete.
materials science, multidisciplinary,metallurgy & metallurgical engineering