OpenCV 匹配图像
我正在尝试使用 OpenCV 来匹配如下图像:
img2 http://img849.imageshack.us/img849/8177/clearz.jpg
我需要找到它们的最佳交集。
我尝试使用 SURFDetector 并使用 BruteforceMatcher 进行匹配,但发现描述符不相等。
请告诉我解决问题的正确方法。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否看过此代码示例?在这里您可以了解如何使用 SURF 描述符查找对象。
进入main(),一步步检查代码。您可以用您的图像尝试一下,它应该可以工作。其他方法使用SIFT 和 FAST 检测器。
祝你好运。如果你没有得到结果,继续尝试,一开始会很困难。
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.
您可能需要首先应用中值滤波器来消除噪声。这可能会带来更好的匹配结果,因为左边的图像非常嘈杂。
它还会使图像稍微平滑一些,这很好,因为它忽略了细节,而您正在寻找更大的结构。
您必须尝试不同尺寸的过滤器才能获得最佳效果。
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.