当前位置:网站首页>【图像融合】基于加权和金字塔实现图像融合附matlab代码
【图像融合】基于加权和金字塔实现图像融合附matlab代码
2022-08-01 23:45:00 【matlab_dingdang】
1 内容介绍
基于Matlab强大的图像处理工具箱函数,用加权平均法、拉普拉斯金字塔变换法、小波变换法对图像进行融合,然后用客观评价法中的相应评价指标对其融合结果进行质量评价。实验表明,小波变换法的图像融合效果最好。


2 仿真代码
close allclearimga = im2double(imread('apple1.jpg'));imgb = im2double(imread('orange1.jpg')); % size(imga) = size(imgb)imga = imresize(imga,[size(imgb,1) size(imgb,2)]);[M N ~] = size(imga);v = 230;level = 5;limga = genPyr(imga,'lap',level); % the Laplacian pyramidlimgb = genPyr(imgb,'lap',level);maska = zeros(size(imga));maska(:,1:v,:) = 1;maskb = 1-maska;blurh = fspecial('gauss',30,15); % feather the bordermaska = imfilter(maska,blurh,'replicate');maskb = imfilter(maskb,blurh,'replicate');limgo = cell(1,level); % the blended pyramidfor p = 1:level[Mp Np ~] = size(limga{p});maskap = imresize(maska,[Mp Np]);maskbp = imresize(maskb,[Mp Np]);limgo{p} = limga{p}.*maskap + limgb{p}.*maskbp;endimgo = pyrReconstruct(limgo);figure,subplot(221),imshow(imga);title('图1')subplot(222),imshow(imgb);title('图2') % blend by pyramidsubplot(223),imshow(imgo);title('金字塔融合')imgo1 = maska.*imga+maskb.*imgb;subplot(224),imshow(imgo1);title('加权融合')
3 运行结果

4 参考文献
[1]仇海全, 潘丽, 潘花. 图像融合算法的Matlab实现与比较[J]. 宜宾学院学报, 2011(12):3.
[2]高婷, 徐毓, 徐廷新,等. 基于预处理的金字塔图像融合算法[J]. 空军预警学院学报, 2013, 27(5):5.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- 高效工作文档产出归类
- 怎样做才能让这条SQL变成一条危险的SQL?
- 【MySQL系列】MySQL数据库基础
- An interview question about iota in golang
- FAST-LIO2代码解析(二)
- Leetcode 129求根节点到叶节点数字之和、104二叉树的最大深度、8字符串转换整数(atoi)、82删除排序链表中的重复元素II、204二分查找、94二叉树的中序遍历、144二叉树的前序遍历
- A brief analysis of mobile APP security testing in software testing, shared by a third-party software testing agency in Beijing
- Flink Yarn Per Job - 提交流程一
- numpy.hstack
- 在CDH的hue上的oozie出现,提交 Coordinator My Schedule 时出错
猜你喜欢
随机推荐
在CDH的hue上的oozie出现,提交 Coordinator My Schedule 时出错
架构基本概念和架构本质
sys_kill system call
6133. 分组的最大数量
Loading configuration of Nacos configuration center
Bean的生命周期
月薪12K,蝶变向新,勇往直前—她通过转行测试实现月薪翻倍~
Leetcode 129求根节点到叶节点数字之和、104二叉树的最大深度、8字符串转换整数(atoi)、82删除排序链表中的重复元素II、204二分查找、94二叉树的中序遍历、144二叉树的前序遍历
FAST-LIO2 code analysis (2)
辛普森悖论
计算由两点定义的线的角度
仿牛客网项目第三章:开发社区核心功能(详细步骤和思路)
请问什么是 CICD
Chapter 12 End-User Task As Shell Scripts
A brief analysis of mobile APP security testing in software testing, shared by a third-party software testing agency in Beijing
@Transactional 注解使用详解
ICLR 2022 Best Paper: Partial Label Learning Based on Contrastive Disambiguation
problem solved
6134. Find the closest node to the given two nodes - force double hundred code
20220725资料更新









