How to retrieve image based on Euclidean distance?
1 次查看(过去 30 天)
显示 更早的评论
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
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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!