当前位置:网站首页>【图像融合】基于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.
边栏推荐
- Why PHP is not safe
- Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login
- Separation of storage and computing in Dahua cloud native database
- CTF_ Web: file contains pseudo protocol with PHP
- JS' sort() function
- Easyrecovery15 very easy to use computer data recovery software
- Basic introduction of gbase 8s blocking technology
- GBASE 8s存储过程执行和删除
- Vscode 设置clang-format
- CTF_ Web: deserialization of learning notes (II) CTF classic test questions from shallow to deep
猜你喜欢
Records of ros2/dds/qos/ topics
Vscode 设置clang-format
js的arguments
halcon之区域:多种区域(Region)生成(3)
为什么TCP握手刚刚好是3次呢?
At the age of 30, I began to learn programming by myself. Is it still time for me to have difficulties at home?
Upgrade PHP to php7 The impact of X (2), the obsolescence of mcrypt decryption
Gbase 8s index R tree
Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login
30岁了开始自学编程,家里比较困难还来得及吗?
随机推荐
Musk released humanoid robot. Why is AI significant to musk?
Concat() in JS
dotnet-exec 0.4.0 released
CTF_ Web: Advanced questions of attack and defense world expert zone WP (19-21)
CTF_ Variable coverage in web:php
GBase 8s的封锁技术的基本介绍
Gbase 8s overall architecture
mongodb集群
Package for gbase 8s
cannot import name ‘escape’ from ‘jinja2’【成功解决】
Paper notes: multi label learning ESMC (I don't understand it, but I haven't written it yet, so I'll put it here for a place temporarily)
Upgrade PHP to php7 X (III) failure of wechat payment callback
深度学习——几种学习类型
Php7.2 add JPEG extension
Basic introduction of gbase 8s blocking technology
Gbase 8s stored procedure syntax structure
jsz中的join()
GBASE 8s的数据视图
Machine learning deep learning -- Vectorization
Chapter IX app project test (2) test tools