基于L0边缘保持滤波的图像融合 matlab代码

本文提供了一段基于'Zhao J, Feng H, Xu Z, et al. Detail enhanced multi-source fusion using visual weight map extraction based on multi scale edge preserving decomposition[J]. Optics Communications, 2013, 287: 45-52.'的MATLAB代码,实现了L0边缘保持滤波的图像融合方法。然而,该程序存在运行时间过长(约5-6分钟)以及融合效果不理想的问题。" 125628582,14744068,2022年有机蔬菜市场:潜力与趋势分析,"['农业', '有机食品', '市场分析', '冷链物流', '智慧农业']
摘要由CSDN通过智能技术生成

本文程序是根据"Zhao J, Feng H, Xu Z, et al. Detail enhanced multi-source fusion using visual weight map extraction based on multi scale edge preserving decomposition[J]. Optics Communications, 2013, 287: 45-52."编写的,最大的问题是运行时间太长了,有五六分钟,还有就是最后的融合效果并不是很理想。

具体matlab程序为:

clear all;
%path_A = '..\IR and Vis\Camp_Vis.jpg';     path_B = '..\IR and Vis\Camp_IR.jpg';
%path_A = '..\IR and Vis\Dune_Vis.jpg';     path_B = '..\IR and Vis\Dune_IR.jpg';
path_A = '..\Medical Images\source1_1.tif';     path_B = '..\Medical Images\source1_2.tif';
img1 = double(imread(path_A))/255.0;
img2 = double(imread(path_B))/255.0;
if(size(img1,3)~=1) 
    img1=rgb2gray(img1);
end
if(size(img2,3)~=1) 
    img2=rgb2gray(img2);
end

%% ---------- L0 Decomposition --------------
nLevel = 3;
lambda=[0.0005 0.003 0.018];

f1 = cell(1, nLevel+1);
d1 = cell(1, nLevel+1);
f1{1}=img1;
for L = 2:nLevel+1,
    f1{L} = L0Smoothing(f1{L-1},lambda(L-1));
    d1{L} = f1{L-1} - f1{L};
end
% figure;imshow([mat2gray(f1{2}),mat2gray(f1{3}),mat2gray(f1{4});...
%     mat2gray(d1{2}),mat2gray(d1{3}),mat2gray(d1{4})])
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值