필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

hi i hav euclidean distance of top 5 images. testdata1 is excell sheeet havin feature veator of query images and testdata 2 contains 38 db images feature vector ..how i can display top 5 images??

조회 수: 1 (최근 30일)
b1=xlsread('testdata.xlsx') b=xlsread('testdata2.xlsx') for i=1:38 sum=0; for j=1:9 g = (b(j) - b1(i,j))^2 sum=sum+g end
E_distance = sqrt(sum) %x(i)=sum; distance(i)= E_distance disp('E_distance=') disp(E_distance); end
smallest=min(distance) disp('smallest=') [smallest,I] = min(distance)
answer=sort(distance);
disp('top five images');
for i=1:5
disp(answer(i));
end

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by