当前位置:网站首页>[Image dehazing] Image dehazing based on color attenuation prior with matlab code
[Image dehazing] Image dehazing based on color attenuation prior with matlab code
2022-08-10 18:20:00 【Matlab research studio】
1 Introduction
Haze is the result of the interaction between specific climatic conditions and human activities, and the widely existing suspended particles in the atmosphere in haze weather will inevitably absorb and scatter light to a certain extent, resulting in a significant decrease in the visual effect of outdoor images, manifested as blurred image content, decreased contrast, and color attenuation.Among them, the aerial image vision system is particularly affected by fog and haze weather because the images it collects often have a large depth of field, and even the aerial images obtained under sunny conditions are often disturbed by the accumulated moisture, fog and haze.The comparison of degraded aerial images in haze weather is shown in Figure 1.In view of the fact that many algorithms in computer vision related to image understanding [1], target recognition [2], target tracking [3] and other fields are based on the premise that the input image or video is taken under ideal weather conditions, eliminating hazeIt has significant research significance and application value to restore the corresponding sunny image from the negative effect of the image caused by the weather.In the early days, the processing methods of image dehazing were mainly divided into three categories: (1) foggy image adjustment method based on histogram equalization technology [4]; (2) foggy image enhancement method based on Retinex model [5];The result of the interaction between climatic conditions and human activities, and the widespread presence of suspended particles in the atmosphere in haze weather is bound to have a certain degree of absorption and scattering of light, resulting in a significant decrease in the visual effect of outdoor images, manifested as blurred image content,Contrast drop and color falloff.Among them, the aerial image vision system is particularly affected by fog and haze weather because the images it collects often have a large depth of field, and even the aerial images obtained under sunny conditions are often disturbed by the accumulated moisture, fog and haze.The comparison of degraded aerial images in haze weather is shown in Figure 1.In view of the fact that many algorithms in computer vision related to image understanding [1], target recognition [2], target tracking [3] and other fields are based on the premise that the input image or video is taken under ideal weather conditions, eliminating hazeIt has significant research significance and application value to restore the corresponding sunny image from the negative effect of the image caused by the weather.In the early days, the processing methods of image dehazing were mainly divided into three categories: (1) foggy image adjustment method based on histogram equalization technology [4]; (2) foggy image enhancement method based on Retinex model [5]; (3) based on homomorphic filtering technologyThe foggy image restoration method [6].Although these methods can improve the visual effect of the image through methods such as image contrast adjustment, color correction and detail highlighting, so as to achieve a certain degree of image visual effect improvement.However, since the degradation mechanism of foggy images is ignored, the image information loss or serious distortion is often caused in the enhancement process.
Aiming at the degradation mechanism of aerial images in haze weather, this paper proposes a dehazing algorithm for aerial images based on color attenuation prior. Firstly, a quantification map of fog and dense fog is constructed, and combined with clustering technology, the foggy images are decomposed intoThen, an improved global atmospheric light estimation method is proposed, which can effectively improve its estimation accuracy by establishing a candidate area. This paper designs a linear aerial image depth structure estimation model, which can efficiently use the depth of field features of aerial images.Obtain the depth map, and then use the guided filter to improve the edge structure of the depth map. According to the obtained global atmospheric light and depth map, the albedo of the scene can be estimated through the atmospheric scattering model, and then the restored haze-free image can be obtained. Experimental resultsThe comparison verifies the efficiency, robustness and effectiveness of the proposed algorithm.
2 Emulation code
close all;clear;clc;
I = imread('C:\Users\Tiger\Desktop\All code and article finishing\Fog Atlas\18.bmp');
I=double(I)
hsvI = rgb2hsv(I);
s = hsvI(:,:,2);
v = hsvI(:,:,3);
maxI=max(max(v-s));
minI=min(min(v-s));
dif=v-s;
d=(dif-minI)*255/(maxI-minI);
r=15;
output = ordfilt2(d, 1, ones(r,r), 'symmetric');
%----- Parameters for Guided Image Filtering -----
gimfiltR = 30;
eps = 10^-3;
%-----------------------------------------------------------
refineDR = guidedfilter(rgb2gray(I),output,gimfiltR,eps);
figure,imshow([output,refineDR],[])
colormap(hot)
3 Run Results
4 References
[1]Li Qian. Research on image dehazing algorithm based on color attenuation prior and FPGA implementation [D]. Xi'an University of Technology.
[2] Chen Dapeng. Research on image dehazing algorithm based on dark channel and color attenuation prior [D]. Shandong University of Science and Technology.
Blogger profile: He is good at Matlab simulation in various fields such as intelligent optimization algorithm, neural network prediction, signal processing, cellular automata, image processing, path planning, UAV, etc. Related matlab code questions can be communicated privately.
Some theories refer to online literature. If there is any infringement, contact the blogger to delete it.
边栏推荐
- eager模式和graph模式 Tensorflow
- EasyGBS连接mysql数据库提示“can’t connect to mysql server”,如何解决?
- Toronto Research Chemicals BTK甜味剂配方丨D-Abequose
- [JMeter]Beanshell解析Json格式的接口响应数据
- 网络可观测性:让您的网络监控更上一层楼|TechGenix
- 不能直接在交易所期货开户
- 微服务架构-实现技术之六大基础组件:服务通信+事件驱动+负载均衡+服务路由+API网关+配置管理
- 电路板ROHS测试报告怎么办理?电路板ROHS检测流程
- 【HMS core】【FAQ】Analytics Kit、Push Kit典型问题合集3
- 多线程与高并发(11)——经典面试题之实现一个容器,提供两个方法,add,size。
猜你喜欢
随机推荐
验算移位距离和假设的通用性
FlexSim仿真软件入门笔记:基本操作、快捷键
Mysql索引、事务与存储引擎
【深度学习21天学习挑战赛】4、初尝循环神经网络(RNN)——股票预测
老板加薪!看我做的WPF Loading!!!
img转base64
破解校园数字安全难点,联想推出智慧教育安全体系
Colocate Join :ClickHouse的一种高性能分布式join查询模型
三坐标雷达显示软件 SPx Viewer-3D
6-10 二分查找(20分)
【燃】是时候展现真正的实力了!一文看懂2022华为开发者大赛技术亮点
装饰者模式
R语言ggplot2可视化:使用ggpubr包的text_grob函数和as_ggplot函数可视化文本段落(将指定文本段落可视化出来、指定文本段可视化为图像)、face参数指定文本的字体样式
微信小程序富文本标签rich-text
ZLMediaKit 服务器源码解读---RTSP推流拉流
FFmpeg extract H264 nalu from the mp4
LeetCode 0640.求解方程:过几天就看不懂了的迷惑性代码,但是是详解
Toronto Research Chemicals 双(乙酰丙酮)铂(II)
Product Description丨MobPush fast integration method on Android side
迪文发布新款2K高清DGUS智能屏