Hi; please I need help to complete my project , I want to calculate the euclidean distance between t and data{K}
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rouh 238
am 7 Apr. 2016
Beantwortet: Walter Roberson
am 7 Apr. 2016
resulat=[];
disp (a);
I = rgb2gray(a);
t=glcm(I);
j=1;
projectdir = 'index\indexation texture';
list = dir(projectdir);
list([list.isdir]) = [];
filenames = natsort( {list.name} );
for K = 1 : length(filenames)
ch = filenames{K};
nomImage = fullfile(projectdir, ch);
storedStructure = load (nomImage);
data{K} = storedStructure.t1;
valeur = E_distance(data{K},t);
resulat(j)=valeur;
j=j+1;
end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!