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 Center および File ExchangeImage Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by