How to match one image with best one from different images
조회 수: 3 (최근 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.
댓글 수: 0
답변 (1개)
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
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 Center 및 File Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!