OPENCV匹配器的自定义距离度量

发布于 2025-02-08 06:45:56 字数 521 浏览 0 评论 0 原文

我正在使用OpenCV上的SIFT和BFMATCHER缝制从无人机拍摄的几张图像。除了SIFT产生的描述符外,我还具有将像素映射到地面坐标的近似(实际上非​​常好),并希望使用这些信息来提高比赛的质量。

我的第一个方法是正常运行BFMatcher,然后根据关键点之间的物理距离过滤匹配,以删除潜在的不良/非物理匹配。但是,我认为在实际匹配算法中使用惩罚身体遥远匹配的自定义指标将是一个不错的补充。

是否可以在Python中定义自定义距离函数并将其传递给BFMatcher?据我所知,您只能使用

I'm working on stitching several images taken from a drone using the SIFT and BFMatcher on OpenCV. In addition to the descriptors produced by SIFT I also have an approximate (quite good actually) mapping of pixels to ground coordinates and was hoping of using this information to improve the qualities of the matches.

My first approach was to first run BFMatcher normally and then filter the matches based on the physical distance between the key points to remove potentially bad/unphysical matches. However, I thought that using a custom metric that penalizes physically distant matches during the actual matching algorithm would be a nice addition.

Is it possible to define a custom distance function in Python and pass it to BFMatcher? As far as I can tell you can only use those defined under NormTypes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文