Trying to match two images using sift in OpenCv, but too many matches

99封情书 提交于 2019-11-28 20:54:19
MMH

Rather than using BruteForceMatcher try to use FlannBasedMatcher and also calculate max and min distances between keypoints to keep only the good matches. See "Feature Matching with FLANN" for an example.

Vaibhav Gorde

I faced the same problem for SIFT. I used knn matcher (K=3). and followed following procedure iteratively

{
Calculated best affine transform with least square method.

Found out the transform for all keypoints in source image.

Checked out MaxError and MinError.

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