当前位置:网站首页>【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
2022-06-25 04:01:00 【海神之光】
一、获取代码方式
获取代码方式1:
完整代码已上传我的资源:【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
获取代码方式2:
通过订阅紫极神光博客付费专栏,凭支付凭证,私信博主,可获得此代码。
备注:
订阅紫极神光博客付费专栏,可免费获得1份代码(有效期为订阅日起,三天内有效);
二、部分源代码
%%
close all;
clear all;
home;
%%
dflg = 1; % 0: no display OR 1: display
aflag = 1; % 1: Average, 2: max rule OR 3: energy rule
bs = 4; %[4 8 16 32 64 128 256]; block size
%%
% insert images
imt = im2double(imread('saras9t.jpg'));
im1 = im2double(imread('saras91.jpg'));
im2 = im2double(imread('saras92.jpg'));
if dflg == 1
figure(1);
subplot(121);imshow(im1);title('image to be fused - im1');
subplot(122);imshow(im2);title('image to be fused - im2');
pause(1);
end
%%
mode = [0 1 3 4 5 6 7 8]; % directional mode
lmode = length(mode);
%%
if aflag == 1 % fusion by DDCT average rule
h1 = waitbar(0,'Please wait...');
for j=1:lmode
imf1{
j} = DDCTIFav(im1,im2,bs,mode(j));
waitbar(j/lmode,h1);
end
close(h1);
end
三、运行结果


四、matlab版本及参考文献
1 matlab版本
2014a
2 参考文献
[1] 蔡利梅.MATLAB图像处理——理论、算法与实例分析[M].清华大学出版社,2020.
[2]杨丹,赵海滨,龙哲.MATLAB图像处理实例详解[M].清华大学出版社,2013.
[3]周品.MATLAB图像处理与图形用户界面设计[M].清华大学出版社,2013.
[4]刘成龙.精通MATLAB图像处理[M].清华大学出版社,2015.
边栏推荐
- OOP 向量加减(友元+拷贝构造)
- Part I Verilog quick start
- 515. find the maximum value / Sword finger offer II 095 in each tree row Longest common subsequence
- CTF_ Variable coverage in web:php
- After the newly assigned variable of the applet is modified, the original variable will also be modified
- At the age of 30, I began to learn programming by myself. Is it still time for me to have difficulties at home?
- Which programming language is the most cumbersome to implement Hello world?
- GbASE 8s中的Blob 页(Blobspace page)
- 冰冰学习笔记:循环队列的实现
- 高效的NoSQL数据库服务Amozon DynamoDB体验分享
猜你喜欢

A detailed summary of four handshakes (or four waves) over TCP connections

GBASE 8s 总体架构

领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!

CTF_ Web: how to recognize and evaluate a regular expression

深度学习——几种学习类型

The solution of wechat applet switchtab unable to take parameters

Part I Verilog quick start

What is the storage engine and the three common database storage engines for MySQL

为什么SQL语句命中索引比不命中索引要快?

unity Quad剔除背面并剔除透明部分的shader
随机推荐
Gbase 8s overall architecture
"Daily practice, happy water" 1108 IP address invalidation
[untitled]
After the newly assigned variable of the applet is modified, the original variable will also be modified
Bingbing's learning notes: implementation of circular queue
「 每日一练,快乐水题 」1108. IP 地址无效化
What is persistence? What are RDB and AOF in redis persistence?
Gbase 8s stored procedure syntax structure
Why PHP is not safe
Vscode 设置clang-format
写shell脚本报错总结
Musk released humanoid robot. Why is AI significant to musk?
halcon之区域:多种区域(Region)生成(3)
The consciousness of a programmer
GBASE 8s的数据导入和导出
为什么SQL语句命中索引比不命中索引要快?
华为鸿蒙开发第四课
CTF_ Web: Advanced questions of attack and defense world expert zone WP (19-21)
OOP栈类模板(模板+DS)
在 .NET 6 中使用 dotnet format 格式化代码