当前位置:网站首页>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 all
clear
imga = 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 pyramid
limgb = genPyr(imgb,'lap',level);
maska = zeros(size(imga));
maska(:,1:v,:) = 1;
maskb = 1-maska;
blurh = fspecial('gauss',30,15); % feather the border
maska = imfilter(maska,blurh,'replicate');
maskb = imfilter(maskb,blurh,'replicate');
limgo = cell(1,level); % the blended pyramid
for 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;
end
imgo = pyrReconstruct(limgo);
figure,subplot(221),imshow(imga);title('Figure 1')
subplot(222),imshow(imgb);title('Figure 2') % blend by pyramid
subplot(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.
边栏推荐
猜你喜欢
H5画布 canvas(一)canvas简介、绘制圆形矩形、案例饼状图绘制
Flink_CDC搭建及简单使用
网络请求技术--跨域
交返是做日内交易的必要条件
canal实现mysql数据同步
27英寸横置大屏+实体按键,全新探险者才是安全而合理的做法!
百度、百图生科 | HelixFold-Single: 使用蛋白质语言模型作为替代进行无MSA蛋白质结构预测
Oracle data to mysql FlinkSQL CDC to achieve synchronization
Can‘t connect to MySQL server on ‘localhost3306‘ (10061) 简洁明了的解决方法
期货公司开户实力经纪业务的规模
随机推荐
JS中清空数组的方法
扫雷小游戏
flex布局中使用flex-wrap实现换行
期货开户交返是行内公开的秘密
Kubernetes之本地存储
Kubernetes — 核心资源对象 — 网络
电商库存系统的防超卖和高并发扣减方案
期货开户手续费的秘密成了透明
21.数据增强
抖音数据接口API-获取用户主页信息-监控直播开启
Kubernetes — 网络流量模型
创新项目实战之智能跟随机器人原理与代码实现
关于MySQL的数据插入(高级用法)
Debian侵犯Rust商标,妥协改名还是会得到豁免?
安全(1)
《自然语言处理实战入门》 基于知识图谱的问答机器人
Day.js 常用方法
Flink_CDC construction and simple use
fastjson详解
Mapped Statements collection does not contain value for的解决方法