当前位置:网站首页>【图像融合】基于加权和金字塔实现图像融合附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代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
猜你喜欢

【MySQL系列】MySQL索引事务

Share an interface test project (very worth practicing)

solidity

【MySQL系列】 MySQL表的增删改查(进阶)

Is TCP reliable?Why?

Flink Yarn Per Job - 提交流程一

Dynamic Scene Deblurring with Parameter Selective Sharing and Nested Skip Connections

What is CICD excuse me

6134. Find the closest node to the given two nodes - force double hundred code

2022第六届强网杯部分wp
随机推荐
Architecture basic concept and nature of architecture
怎样做才能让这条SQL变成一条危险的SQL?
【MySQL系列】MySQL数据库基础
cdh6打开oozieWeb页面,Oozie web console is disabled.
Making a Simple 3D Renderer
Flink学习第五天——Flink可视化控制台依赖配置和界面介绍
检查 Oracle 版本的 7 种方法
中职网络安全竞赛B7比赛部署流程
YOLO等目标检测模型的非极大值抑制NMS和评价指标(Acc, Precision, Recall, AP, mAP, RoI)、YOLOv5中[email protected]与
What can be done to make this SQL into a dangerous SQL?
Sql之各种Join
Access the selected node in the console
The third chapter of the imitation cattle network project: develop the core functions of the community (detailed steps and ideas)
计算由两点定义的线的角度
Programmer is still short of objects? A new one is enough
Share an interface test project (very worth practicing)
Spark Sql之join on and和where
字节跳动面试官:请你实现一个大文件上传和断点续传
机器学习文本分类
使用Ganache、web3.js和remix在私有链上部署并调用合约