OpenCV matching images

瘦欲@ 提交于 2019-12-10 14:46:18

问题


I am trying to use OpenCV to match images like these:

img2 http://img849.imageshack.us/img849/8177/clearz.jpg

And I need to find the best intersection of them.

I tried using SURFDetector and matching using BruteforceMatcher, but finds descriptors not equal.

Tell me please the correct way to solve problem.


回答1:


Did you have a look to this code example? Here you can see how to find an object using SURF descriptors. Go to main(), and check the code step by step. You can try it with your images and it should work. Other approaches use SIFT and FAST detectors.

Good luck. If you don't get results keep trying, at the beggining it is hard.




回答2:


You might want to apply a median filter first, to remove the noise. This will probably lead to better results for the matching, because the left image is pretty noisy.

It will also smooth the image a bit, which is good, because it leaves out the details, and you are looking for larger structures.

You will have to try out different sizes of the filter for the best result.



来源:https://stackoverflow.com/questions/8893539/opencv-matching-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!