|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
5 X& N0 I0 M+ ]- B9 C) p9 w
一、源代码( I& `% A6 a- X' X9 M
- %Frequency Partition (FP) fusion technique
- %VPS Naidu, MSDF Lab, CSIR-National Aerospace Laboratories, India
- clear all;
- close all;
- home;
- f = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]; %frquency partition factor (bt. 0 to 1)
- %Reference image
- imt = double(imread('saras9t.jpg'));
- % Imaged to be fused
- im1 = double(imread('saras91.jpg'));
- im2 = double(imread('saras92.jpg'));
- % image fusion
- for i=1:1%length(f)
- imf = fpdctf(im1,im2,f(i));
- imf = imf-min(imf(:));
- figure(3);
- subplot(221);imshow(imt,[]);title('原图')
- subplot(222);imshow(im1,[]);title('图1')
- subplot(223);imshow(im2,[]);title('图1')
- subplot(224);imshow(imf,[]);title('Frequency Partition 融合后图')
- e=imt-imf;
- figure(4); imshow(e,[])
- per_met1(i,:) = pereval(imt,abs(imf));
- per_met2(i,:) = perevalwt(imf);
- end
2 V) S5 J. b! [
7 g( ~, z% K( _' l3 K; u8 y6 q( L( O; U; X. g3 T) K* t
二、运行结果
: s! p: j2 ~ ~7 G( v/ ~+ Z$ x' M& U/ h h" Q. t0 V4 V' @, s0 ^
" H$ R4 s2 Q( B( a1 j; \& [( @; P k; ]6 H
6 I+ ?, d* ?1 F4 d: N3 J8 r |
|