フィルターのクリア

Hi; please I need help to complete my project , I want to calculate the euclidean distance between t and data{K}

2 ビュー (過去 30 日間)
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

採用された回答

Walter Roberson
Walter Roberson 2016 年 4 月 7 日
See pdist2()

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by