当前位置:网站首页>Image fusion based on weighted 】 and pyramid image fusion with matlab code
Image fusion based on weighted 】 and pyramid image fusion with matlab code
2022-08-02 01:33:00 【Matlab research studio】
1 Introduction
Based on the powerful image processing toolbox function of Matlab, the images are fused by the weighted average method, the Laplace pyramid transform method and the wavelet transform method, and then the quality of the fusion results is evaluated by the corresponding evaluation indicators in the objective evaluation method.Evaluation.Experiments show that the wavelet transform method has the best image fusion effect.


2 Emulation code
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('Figure 1')subplot(222),imshow(imgb);title('Figure 2') % blend by pyramidsubplot(223),imshow(imgo);title('Pyramid fusion')imgo1 = maska.*imga+maskb.*imgb;subplot(224),imshow(imgo1);title('weighted fusion')
3 Run Results

4 References
[1]Qiu Haiquan, Pan Li, Pan Hua. Matlab Implementation and Comparison of Image Fusion Algorithm[J]. Journal of Yibin University, 2011(12):3.
[2] Gao Ting, Xu Yu, Xu Tingxin, et al. Pyramid image fusion algorithm based on preprocessing [J]. Journal of Air Force Early Warning Academy, 2013, 27(5):5.
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.
边栏推荐
- flex布局中使用flex-wrap实现换行
- 【目标检测】FCOS: Fully Convolutional One-Stage Object Detection
- Interview: Briefly describe a project you are involved in
- 华为5年女测试工程师离职:多么痛的领悟...
- 接口(第九天)
- 如何期货开户和选择期货公司?
- 傅立叶变换相关公式
- ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
- 管理基础知识16
- Reflex WMS中阶系列7:已经完成拣货尚未Load的HD如果要取消拣货,该如何处理?
猜你喜欢
随机推荐
信息收集之目录扫描-dirbuster
技术分享 | 接口测试中如何使用Json 来进行数据交互 ?
Two ways to pass feign exceptions: fallbackfactory and global processing Get server-side custom exceptions
大话西游无法登陆解决
管理基础知识9
ELK日志分析系统
青蛙跳台阶
电商库存系统的防超卖和高并发扣减方案
关于MySQL的数据插入(高级用法)
flv.js解析与使用
Go语学习笔记 - gorm使用 - gorm处理错误 Web框架Gin(十)
JS中的防抖和节流
Flask gets post request parameters
21.数据增强
22.卷积神经网络实战-Lenet5
外包干了三年,废了...
IDEA如何运行web程序
23.卷积神经网络实战-ResNet
FlinkSQL CDC实现同步oracle数据到mysql
GO GOPROXY代理设置









