陈伟 贺元恺 李昭慧 郭明香 郑佳雯 陶智慧



摘 要: 针对暗原色先验图像去雾算法运行时间长,天空区域分割耗时,复原图像中存在方块效应以及整体偏暗等缺点,提出一种改进的实时图像去雾暗原色先验算法。在暗通道求取时,使用快速最小值滤波,加快传统暗通道求取最小值排序的时间;在大气光求取时,使用像素值限定的方法快速排除天空区域,使用暗通道图像剩余最亮部分对应原图像像素值的均值,有效避免原算法中求取大气光值过大导致复原图像失真的现象;在透射率的优化时,使用Sobel边缘检测与求取图像二阶导数图像,得到精细的透射率,改善了细化透射率的时间复杂度;对最终图像采取伽码变换,提高图像亮度。实验结果表明,与原暗通道先验算法相比,此算法有效提高了算法的实时性。
关键词: 暗原色先验; 图像去雾; 算法改进; 透射率改善; 最小值排序; 仿真分析
中图分类号: TN911.73?34 文献标识码: A 文章编号: 1004?373X(2020)06?0163?05
A dark channel prior algorithm for improving real?time image dehazing
CHEN Wei, HE Yuankai, LI Zhaohui, GUO Mingxiang, ZHENG Jiawen, TAO Zhihui
(School of Communication and Information Engineering, Xian University of Science and Technology, Xian 710054, China)
Abstract: In allusion to the disadvantages of the dark channel prior image defogging algorithm, such as long running time, time?consumption of sky region segmentation, and blocking effect and whole partial dark in the restored image, an improved real?time image defogging dark channel prior algorithm is proposed. In the dark channel calculation, the fast minimum filtering is used to speed up the minimum sorting of the traditional dark channel . In the atmospheric light extraction, the method of pixel value limit is used to quickly exclude the sky area, and make the remaining brightest part of the dark channel image correspond to the mean value of the original image pixel value, which can effectively avoid the restored image distortion caused by the too large atmospheric light value got by the original algorithm. In the optimization of transmissivity, the Sobel edge detection and second derivative image are used to obtain the refined transmissivity, which improves the time complexity of refining transmissivity. The Gamma conversion is applied to the final image to improve the brightness of the image. The experimental results show that in comparison with the original dark channel prior algorithm, this algorithm can effectively improve its real?time performance.
Keywords: dark channel prior; image defogging; algorithm improvement; transmissivity improvement; minimum sorting; simulation analysis
0 引 言
工业化生产造成了部分城市雾霾现象越来越严重,给生活和生产造成了很大影响。基于图像复原的去雾方法[1?4]是从雾天图像产生的本质出发,建立雾天退化数学模型,通过图像去雾领域的假设参数来模拟雾天图像成像,以此为基础,推导出雾天复原图像的计算公式。何凯明提出基于暗原色的图像先验去雾方法,该方法在雾天物理成像的模型上,加入了先验理论,但是该方法存在着运行时间长,天空区域难分割,复原图像中存在方块效应,图像整体偏暗等不足[5?6]。……