forked from robotVisionHang/Image_Fusion_Evaluation_ToolBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fusionAssess.m
70 lines (51 loc) · 1.5 KB
/
fusionAssess.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
function res=fusionAssess(im1,im2,fused)
% function res=fusionAssess(im1,im2,fused)
%
% This function is to assess the fused image with different fusion
% assessment metrics.
%
% im1 ---- input image one;
% im2 ---- input image two;
% fused ---- the fused image(s)
% res ==== the metric value
%
% Z. Liu @ NRCC [Aug 21, 2009]
%
im1=double(im1);
im2=double(im2);
fused=double(fused);
% check the number of the fused images.
%num=prod(size(fused));
%if (num==1)
%disp('Only one fused image is used.');
%end
% caculate the image fusion metrics:
i=1;
%for i=1:num;
% normalized mutual informtion $Q_{MI}$
Q(i,1)=metricMI(im1,im2,fused,1);
% Tsallis entropy $Q_{TE}$
Q(i,2)=metricMI(im1,im2,fused,3);
% Wang - NCIE $Q_{NCIE}$
Q(i,3)=metricWang(im1,im2,fused);
% Xydeas $Q_G$
Q(i,4)=metricXydeas(im1,im2,fused);
% PWW $Q_M$
Q(i,5)=metricPWW(im1,im2,fused);
%Yufeng Zheng (spatial frequency) $Q_{SF}$
Q(i,6)=metricZheng(im1,im2,fused);
% Zhao (phase congrency) $Q_P$
Q(i,7)=metricZhao(im1,im2,fused);
% Piella (need to select only one) $Q_S$
% Q(i,8)=index_fusion(im1,im2,fused{i});
Q(i,8)=metricPeilla(im1,im2,fused,1);
% Cvejie $Q_C$
Q(i,9)=metricCvejic(im1,im2,fused,2);
% Yang $Q_Y$
Q(i,10)=metricYang(im1,im2, fused);
% Chen-Varshney $Q_{CV}$
Q(i,11)=metricChen(im1,im2,fused);
% Chen-Blum $Q_{CB}$
Q(i,12)=metricChenBlum(im1,im2,fused);
%end
res=Q;