In order to address the issues of inaccurate transmission estimation, poor color restoration in sky regions, and slow operation speed in current defogging algorithms, this paper proposed a real-time video defogging algorithm based on multi-scale guided filtering. First, the automatic white balance algorithm was used to correct the color of the foggy image. The confidence factor of the color corrected image and the dark primary color were used as the guiding filter. Then, the pyramid sampling technology was used to obtain the reduced image. Then, the quadtree method was used to estimate the transmittance and atmospheric light intensity, and the iterative up sampling and guiding image filtering were continuously used to effectively prevent the loss of information and finally achieve the best transmission effect. In addition, we extended the single image defogging algorithm to real-time video defogging, reducing flickering artifacts in defogging videos by ensuring consistent transmission values over time. The experimental results show that the algorithm has a fast running speed, significant defogging effect, and less flickering artifacts in video defogging. Compared with the shielded Poisson equation defogging algorithm, this algorithm has faster time 81.32% and higher average gradient 67.08%, which meets the requirements of fast and stable real-time video processing.
YANGJihua, YANGHua, JIAWeiding, et al.Adaptive enhancement method of lidar image based on multi-scale Retinex[J].Laser Journal, 2023, 44(5): 192-197.(in Chinese)
[7]
HEK M, SUNJ, TANGX O.Guided image filtering[J].IEEE Transactions on Pattern Analysis and Machine Intelligence, 2013, 35(6): 1397-1409.
[8]
JKIMJ H, JANGW D, SIMJ Y, et al.Optimized contrast enhancement for real-time image and video dehazing[J]. Journal of Visual Communication and Image Representation, 2013, 24(3): 410-425.
[9]
LIZ W, TANP, ROBBYT T, et al. Simultaneous video defogging and stereo reconstruction[C]//IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015: 4988-4997.
[10]
CHENC, MINHN, WANGJ.Robust image and video dehazing with visual artifact suppression via gradient residual minimization[C]//European Conference on Computer Vision. Cham: Springer, 2016: 576-591.
[11]
RENW Q, ZHANGJ G, XUX Y, et al.Deep video dehazing with semantic segmentation[J].IEEE Transactions on Image Processing, 2019, 28(4): 1895-1908.
[12]
ZHANGX Y, DONGH, PANJ S, et al.Learning to restore hazy video: A new real-world dataset and a new method[C]//IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021: 9235-9244.
[13]
HIDER. Optics of the atmosphere: scattering by molecules and particles [J]. Physics Bulletin, 1977, 28(11): 521.
LIGuoqing, TANGZimeng, WUXifang, et al.Research on the application of remote sensing image defogging algorithm with guided filtering and automatic white balance fusion[J].Journal of Henan Polytechnic University(Natural Science), 2021, 40(6): 77-83. (in Chinese)
SHIJinyu, HAOMingliang, ZOUPeiyu.Underwater image enhancement based on color correction and guided filtering layering[J].Computer Applications and Software, 2022, 39(6): 203-209. (in Chinese)
[18]
WANGW C, YUANX H, WUX J, et al.Fast image dehazing method based on linear transformation[J].IEEE Transactions on Multimedia, 2017, 19(6): 1142-1155.
[19]
HUANGZ L, JINGH Y, CHENA D, et al.Efficient image dehazing algorithm using multiple priors constraints[J].Journal of Visual Communication and Image Representation, 2023, 90: 103694.
[20]
VAN NGUYENT, VIENA G, LEEC.Real-time image and video dehazing based on multiscale guided filtering[J].Multimedia Tools and Applications, 2022, 81(25): 36567-36584.
[21]
LUCASB, KANADET.An iterative image registration technique with an application to stereo vision[M].Int Joint Conf ArtifIntell, 1981.
[22]
XUJ Q, HUX W, ZHUL, et al.Video dehazing via a multi-range temporal alignment network with physical prior[C]//IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR), 2023, 18053-18062.