在阅读了倒角匹配的实现,我意识到,截断仅仅是在该阈值的距离将被截断(使用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://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)