当前位置:网站首页>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.
边栏推荐
猜你喜欢

ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法

ELK日志分析系统

YGG 公会发展计划第 1 季总结

GateWay实现负载均衡

27英寸横置大屏+实体按键,全新探险者才是安全而合理的做法!

input禁止输入

from origin ‘null‘ has been blocked by CORS policy Cross origin requests are only supported for

go泛型使用方法

创新项目实战之智能跟随机器人原理与代码实现

Why is on-chain governance so important, and how will Polkadot Gov 2.0 lead the development of on-chain governance?
随机推荐
信息收集之目录扫描-dirbuster
Two ways to pass feign exceptions: fallbackfactory and global processing Get server-side custom exceptions
mapbox使用教程
go版本升级
from origin ‘null‘ has been blocked by CORS policy Cross origin requests are only supported for
Docker安装canal、mysql进行简单测试与实现redis和mysql缓存一致性
去经营企业吧
H5页面打开微信小程序
管理基础知识12
Flex layout in detail
滴滴秋招提前批正式开始,现在投递免笔试
DCM 中间件家族迎来新成员
C语言实验六 一维数组程序设计
IDEA如何运行web程序
百度、百图生科 | HelixFold-Single: 使用蛋白质语言模型作为替代进行无MSA蛋白质结构预测
华为5年女测试工程师离职:多么痛的领悟...
接口(第九天)
fastjson详解
C语言实验七 二维数组程序设计
ES6对箭头函数的理解