基于TopHat加权引导滤波的Retinex矿井图像增强算法

Retinex mine image enhancement algorithm based on TopHat weighted guided filtering

  • 摘要: 煤矿井下光源分布不均、整体光线弱导致图像亮度低、不清晰,传统Retinex算法在处理矿井低照度图像时存在细节丢失、边缘模糊和光晕等问题。针对上述问题,提出了一种基于TopHat加权引导滤波的Retinex算法(THWGIF−Retinex)对矿井图像进行增强。首先将图像从RGB空间转换到HSV空间,并将其分离成色调、饱和度、亮度3个通道分量。其次,利用TopHat变换改进加权引导滤波的权重因子,进而从亮度分量中提取出图像的光照分量,实现光照分量的边缘增强。然后,采用自适应Gamma校正函数校正光照分量和饱和度分量,并通过Retinex算法从光照分量中获取反射分量,进一步提升图像光源处的细节和色彩效果;最后,合并色调分量、校正后的饱和度分量、反射分量并转换到RGB空间,得到增强的矿井图像。从主观评价和客观评价2个方面对THWGIF−Retinex算法、多尺度Retinex(MSR)算法、加权引导滤波的Retinex(WGIF−Retinex)算法进行对比验证。主观评价结果表明:对于无强光直射的矿井低照度原始图像,经THWGIF−Retinex算法增强后的图像色彩还原度较高,且图像边缘更清晰,视觉效果明显增强。对于有强光直射的矿井低照度原始图像,THWGIF−Retinex算法对光晕有很好的改善效果,且在还原暗区域的细节信息和清晰度上优于WGIF−Retinex算法。客观评价结果表明:对于无强光直射的矿井低照度图像,经THWGIF−Retinex算法增强后的图像信息熵提高了12.50%,平均梯度提高了109.07%,标准差提高了52.44%,无参考结构清晰度(NRSS)提高了45.46%。对于有强光直射的矿井低照度图像,与MSR算法相比,经THWGIF−Retinex算法增强后的图像信息熵提高了1.24%,平均梯度提高了81.44%,标准差提高了18.23%,NRSS提高了36.67%;与WGIF−Retinex算法相比,THWGIF−Retinex算法在信息熵方面有所降低,但在平均梯度和NRSS方面有较大改善,分别提高了72.34%和23.87%。

     

    Abstract: The uneven distribution of light sources and weak light in coal mines lead to low brightness and unclear image. The traditional Retinex algorithm has the problems of detail loss, edge blur and halo when processing low illumination images of coal mines. In order to solve the above problems, a new algorithm named THWGIF-Retinex based on TopHat weighted guided filtering is proposed to enhance the mine image. Firstly, the image is transformed from RGB space to HSV space. Then the image is separated into three channel components of hue, saturation and brightness. Secondly, the TopHat transform is used to improve the weight factor of the weighted guided filtering. The illumination component of the image is extracted from the brightness component. The edge enhancement of the brightness component is realized. Thirdly, the illumination component and the saturation component are corrected by adopting a self-adaptive gamma correction function. The reflection component is obtained from the illumination component by the Retinex algorithm. The details and color effect of the image light source are further improved. Finally, the hue component, the corrected saturation component and the reflection component are combined and converted to RGB space to obtain an enhanced mine image. The THWGIF-Retinex algorithm, multi-scale Retinex (MSR) algorithm and weighted guided filtering Retinex (WGIF-Retinex) algorithm are compared and verified from subjective evaluation and objective evaluation. The subjective evaluation results show that the original image of low illumination without strong light is enhanced by the THWGIF-Retinex algorithm. The color reproduction degree of the image is higher, the image edge is clearer, and the visual effect is obviously enhanced. The THWGIF-Retinex algorithm has a good effect on halo reduction for the mine low-illumination original image with strong light. The THWGIF-Retinex algorithm is better than the WGIF-Retinex algorithm in restoring the details and clarity of dark areas. The objective evaluation results show that the information entropy, the average gradient, the standard deviation and the no-reference structural sharpness (NRSS) of the image enhanced by the THWGIF-Retinex algorithm are increased by 12.50%, 109.07%, 52.44% and 45.46% respectively for the low illumination images without strong light. Compared with the MSR algorithm, the information entropy, average gradient, standard deviation and NRSS of the image enhanced by the THWGIF-Retinex algorithm are increased by 1.24%, 81.44%, 18.23% and 36.67% respectively for the mine low illumination image with strong light. Compared with the WGIF-Retinex algorithm, the THWGIF-Retinex algorithm has lower information entropy. However, the average gradient and NRSS are improved by 72.34% and 23.87% respectively.

     

/

返回文章
返回