Hi folks! I really need help in this one...
I've been working on edge-based template matching and happened to find chamfer matching. I've been trying to work at this on my own but I think my knowledge about chamfer matching and its implementation in opencv is lacking (since I can't also find a good documentaiton or tutorial of it). So I hope you find time to answer my question.
I was able to run chamfer matching implementation in opencv python. However, I don't understand why my results are not what I expect them to be.
Here's how I called the function
bestfit, results, cost = cv2.chamerMatching(queryFrame, template)
Here's my sample input image (i already made edge-based image processing on it) Here's the template
And here's the result
I am really at lost as to how I will solve it. Do I have to 'guess' on the right constants required in the parameter (since there's a lot of it, and they have default values) or is it about the input image/template image? Please help...
Any help will be much appreciated. Thanks!
P.S. I also tried the input image incuded in samples, however, it's not also properly matching the template... i don't know what is the main culprit... is it my copy of opencv or i don't know...