倒角距离匹配

本文探讨了如何使用OpenCV的倒角匹配算法寻找相似图像,并介绍了算法的基本思想,即通过计算两图像边缘之间的距离来评估不相似度。在实际应用中,遇到了参数调整和匹配分数设定的问题,作者分享了遇到的挑战和尝试解决的方法。
摘要由CSDN通过智能技术生成

在阅读了倒角匹配的实现,我意识到,截断仅仅是在该阈值的距离将被截断(使用threshold())

Documentation for chamferMatching in OpenCV 2.4 C++

I spent many days looking for an answer to the same question of yours but I didn't find any. The best clarification I got so far is from the original paper of fast directional chamfer matching:

http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=5539837&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D5539837

http://www.umiacs.umd.edu/~mingyliu/papers/liu_cvpr2010.pdf

img (Cv::Mat) The test image

templ (Cv::Mat) The template which contains the shape you are looking for in the test image

results (Std::Vector::Std_Vector_Cv_Point) points vector which contains the matched point in the test image

cost (Std::Vector::Float) floats vector of the match cost for each result

templ_scale (Double) (defaults to: 1) magnification of the template image. not that it is Reciprocal

max_matches (Fixnum) (defaults to: 20) 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值