当前位置:网站首页>[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.
边栏推荐
- R语言检验时间序列的平稳性:使用fUnitRoots包中的adfTest函数检验时间序列数据是否具有平稳性(设置参数type为nc时、既不去除趋势也不进行中心化处理)
- Xilinx FPGA收发器参考时钟设计应用
- Your local docbook2man was found to work with SGML rather than XML
- 【2015】【论文笔记】等离子光混合器THz辐射的光谱——
- HarmonyOS自动化测试框架—Hypium
- 实用工具在线网站
- 【HMS core】【FAQ】Analytics Kit、Push Kit典型问题合集3
- Toronto Research Chemicals BTK抑制剂丨ACP-5197
- 【图像去雾】基于颜色衰减先验的图像去雾附matlab代码
- 【快应用】如何使用命令打包快应用rpk
猜你喜欢
随机推荐
redis分布式锁
【测试】黑盒测试用例设计方法
忍不住 - 发个新帖子【为什么把红圈的功能入口隐藏?需要移动到鼠标到位置驻停才显示?】- 请投票
实用工具在线网站
期货开户前要第一时间确认手续费
R语言创建列表数据(list):根据名称索引列表元素、双方括号访问单个元素、单方括号访问子列表
Go 语言快速入门指南:第四篇 与数据为舞之数组
电路板ROHS测试报告怎么办理?电路板ROHS检测流程
关于技术分享的思考
c语言进阶篇:柔性数组
企业即时通讯是什么?可以应用在哪些场景?
【FAQ】HarmonyOS ETS如何给组件设置边框
兼具外观、性能、屏幕!华硕灵耀X 14火热抢购中
微信小程序富文本标签rich-text
Toronto Research Chemicals农药检测丨甲硫威
网络层总结(未完待续)
机器人控制器编程实践指导书旧版-实践六 LCD液晶显示(点阵)
多线程与高并发(五)—— 源码解析 ReentrantLock
Mysql index, transaction and storage engine
机器人控制器编程实践指导书旧版-实践八 机器人综合设计