How to match one image with best one from different images

1 次查看(过去 30 天)
Hi everybody. I group of images of an object from different positions, and i take new image of this object and want to match it with the best possible image from a group (the same side and position). Thanks.

回答(1 个)

Florian Morsch
Florian Morsch 2018-4-26
编辑:Florian Morsch 2018-4-26
Detect SURF features on all your previous compare-images, then detect the features on the newly taken image.
Now check the SURF feature points with each image and take the one which fits best.
  2 个评论
Baisseyev Miram
Baisseyev Miram 2018-4-27
Thanks. I need to select best match manually? is there a way to make it automatically?
Florian Morsch
Florian Morsch 2018-4-27
You can search for the two matched with the most shared SURF features.
One possible option: write all shared featurepoints in an array (like when you detect 10 in the first match, 13 in the second, 9 in the third and 22 in the last) your array would look like [10 13 9 22] and then just search for the highest value in the array and take the corresponding picture. You can do so with
[max, index] = max(yourArray(:))
this gives you the largest output from your array and the position in which is stored ( here is the complete link https://de.mathworks.com/help/matlab/ref/max.html ). In this case you would get max = 22, index = 4, so you would know your 4th picture is the best match.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by