Borrar filtros
Borrar filtros

Fuzzy logic Approach to Image Fusion

2 visualizaciones (últimos 30 días)
Ynne
Ynne el 12 de Dic. de 2012
Comentada: Image Analyst el 18 de Mzo. de 2016
Hi,
I am trying to test fuzzy logic approach to fuse too images. Following is the source i'am using:
function Y=fuse_fuzzy(M1,M2)
%Y = fuse-fuzzy(M1, M2) image fusion with Fuzzy Logic method
% MI - input image #I
% M2 - input image #2
% Y -fused image
% check inputs
%Size of the two input images should be same
[z1 s1 ] = size(M1);
[z2 s2] = size(M2);
if (zl ~= z2)||( s1 ~= s2)
error('lnput images are not of same size');
end;
%Color map
M1=rgb2gray(M1);
m = gray(256);
f=readfis('fuse.fis');
colormap(m);
im=evalfis([M1(:) M2(:)],f);
% Converting the column into matrix
k=l;
for i=l:1:zl
for j=1:1:s1
img(j,i)=im(k);
k=k+1;
end;
end;
Y=img;
%Computing entropy for input and fused images
entropy(M1);
entropy(M2);
entropy(img)
end
My problem is that i couldn't understand what 'fuse.fis' file is ? and how to create it if it not exists ?
Thanks a lot
  2 comentarios
nana fadi
nana fadi el 18 de Mzo. de 2016
Editada: Image Analyst el 18 de Mzo. de 2016
Hi, in which version of matlab can i find the syntax: fuse_fuzzy(...) because my project M2 is on fusion of 2 descriptors for face recognition using fuzzy logic.
thanks
Image Analyst
Image Analyst el 18 de Mzo. de 2016
nana, the code for fuse_fuzzy() is given right there in the question. It's code the poster wrote or got from somewhere. I don't believe it's Mathworks-written code.

Iniciar sesión para comentar.

Respuestas (1)

radhika
radhika el 4 de Abr. de 2013
Editada: Walter Roberson el 4 de Abr. de 2013
fuse.fis consists of input and output membership function
note: u can add fuzzy rules also
find the code below
[System]
Name='ssn1'
Type='sugeno'
Version=2.0
NumInputs=2
NumOutputs=1
NumRules=0
AndMethod='prod'
OrMethod='probor'
ImpMethod='prod'
AggMethod='sum'
DefuzzMethod='wtaver'
[Input1]
Name='ct'
Range=[0 255]
NumMFs=5
MF1='VL':'trimf',[-64 0 64]
MF2='L':'trimf',[0 64 128]
MF3='M':'trimf',[64 128 192]
MF4='H':'trimf',[128 192 256]
MF5='VH':'trimf',[192 256 320]
[Input2]
Name='mri'
Range=[0 255]
NumMFs=5
MF1='VL':'trimf',[-64 0 64]
MF2='L':'trimf',[0 64 128]
MF3='M':'trimf',[64 128 192]
MF4='H':'trimf',[128 192 256]
MF5='VH':'trimf',[192 256 320]
[Output1]
Name='fused'
Range=[0 255]
NumMFs=25
MF1='z1':'linear',[0 0 0]
MF2='z2':'linear',[0 0 31.875]
MF3='z3':'linear',[0 0 63.75]
MF4='z4':'linear',[0 0 95.625]
MF5='z5':'linear',[0 0 127.5]
MF6='z6':'linear',[0 0 159.375]
MF7='z7':'linear',[0 0 191.25]
MF8='z8':'linear',[0 0 223.125]
MF9='z9':'linear',[0 0 255]
MF10='z10':'linear',[0 0 0]
MF11='z11':'linear',[0 0 31.875]
MF12='z12':'linear',[0 0 63.75]
MF13='z13':'linear',[0 0 95.625]
MF14='z14':'linear',[0 0 127.5]
MF15='z15':'linear',[0 0 159.375]
MF16='z16':'linear',[0 0 191.25]
MF17='z17':'linear',[0 0 223.125]
MF18='z18':'linear',[0 0 255]
MF19='z19':'linear',[0 0 0]
MF20='z20':'linear',[0 0 31.875]
MF21='z21':'linear',[0 0 63.75]
MF22='z22':'linear',[0 0 95.625]
MF23='z23':'linear',[0 0 127.5]
MF24='z24':'linear',[0 0 159.375]
MF25='z25':'linear',[0 0 191.25]

Categorías

Más información sobre Fuzzy Logic Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by