How to retrieve image based on Euclidean distance?

조회 수: 1 (최근 30일)
maha lakshmi
maha lakshmi 2013년 3월 7일
댓글: preeti 2014년 12월 4일
Hi, I have calculated the Euclidean distance between Query image and images in the Database and sorted it.I have to retrieve the top 5 ranked images .But I don't know how display the corresponding image from the array of sorted Euclidean distance.please give some idea about it.
  댓글 수: 1
Jan
Jan 2013년 3월 7일
Without knowing any datils about the strcture you store the images in and what you exactly mean by "display", an answer is impossible. Please do not let us guess the details, when you know them exactly.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 3월 7일
[sortedvals, idx] = sort(EuclideanDistances);
then idx(1:5) will be the image numbers corresponding to the top 5 images. From there, figure out the image names associated and display the images.
  댓글 수: 3
preeti
preeti 2014년 12월 4일
wow nice soln:)
preeti
preeti 2014년 12월 4일
but how to display the images with the same code

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by