• 大小: 1.1MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-17
  • 语言: 其他
  • 标签: matlab  图像去雾  

资源简介

图像去雾代码,可以应付毕设要求!!!个人主页:https://blog.csdn.net/weixin_39249915

资源截图

代码片段和文件信息

function [ radiance ] = dehaze( image omega win_size lambda )
%DEHZE Summary of this function goes here
%   Detailed explanation goes here

if ~exist(‘omega‘ ‘var‘)
    omega = 0.95;
end

if ~exist(‘win_size‘ ‘var‘)
    win_size = 15;
end

if ~exist(‘lambda‘ ‘var‘)
    lambda = 0.0001;
end

[m n ~] = size(image);

dark_channel = get_dark_channel(image win_size);

atmosphere = get_atmosphere(image dark_channel);

trans_est = get_transmission_estimate(image atmosphere omega win_size);

L = get_laplacian(image);

A = L + lambda * speye(size(L));
b = lambda * trans_est(:);

x = A \ b;

transmission = reshape(x m n);

radiance = get_radiance(image transmission atmosphere);

end


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-14 13:46  Dark-Channel-Haze-Removal-master\
     文件       13602  2019-01-04 11:23  Dark-Channel-Haze-Removal-master\1.jpg
     文件       24652  2019-01-14 13:43  Dark-Channel-Haze-Removal-master\2.jpg
     文件       42925  2019-01-10 18:42  Dark-Channel-Haze-Removal-master\3.jpg
     文件       16948  2019-01-14 13:44  Dark-Channel-Haze-Removal-master\4.jpg
     文件       13261  2019-01-14 13:44  Dark-Channel-Haze-Removal-master\5.jpg
     文件       24149  2019-01-14 13:46  Dark-Channel-Haze-Removal-master\6.jpg
     文件        1081  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\LICENSE
     文件         644  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\README.md
     文件         700  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\dehaze.m
     文件         622  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\dehaze_fast.m
     文件         221  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\demo.m
     文件         220  2019-01-14 13:57  Dark-Channel-Haze-Removal-master\demo_fast.m
     文件      567344  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\forest.jpg
     文件      449565  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\forest_recovered.jpg
     文件         466  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\get_atmosphere.m
     文件         393  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\get_dark_channel.m
     文件        1665  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\get_laplacian.m
     文件         310  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\get_radiance.m
     文件         264  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\get_transmission_estimate.m
     文件         781  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\guided_filter.m
     文件         957  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\guidedfilter.m
     文件         631  2016-06-14 18:03  Dark-Channel-Haze-Removal-master\window_sum_filter.m

评论

共有 条评论