How to retrieve image based on Euclidean distance?

1 Ansicht (letzte 30 Tage)
maha lakshmi
maha lakshmi am 7 Mär. 2013
Kommentiert: preeti am 4 Dez. 2014
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 Kommentar
Jan
Jan am 7 Mär. 2013
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Mär. 2013
[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 Kommentare
preeti
preeti am 4 Dez. 2014
wow nice soln:)
preeti
preeti am 4 Dez. 2014
but how to display the images with the same code

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by