The function name is cvMatchShapes.
This function compares two contours.
If two contours is same, the function returns 0.
conversely, the value of return is larger, more shape different.
So, we use threshold to decide these pair is similar or not.
code start
code end
#findcontour, #contour, #compare
source coude
you have to free storage like that
ReplyDeletecvReleaseMemStorage(&storage);
Good point, thank you very much.
ReplyDelete^^
This is really helpful. What if the size of the contour is smaller or larger than the template contour but the shape is the same? Do you any idea how it will be the same(0)?
ReplyDeleteI will check the question, and upload the solution soon.
ReplyDeleteThank you.
is there some answer for the above question.
ReplyDeleteI am using the above method to find the difference in a character image.
so if the font is bigger, how can we handle this.
Please let me know if you find some answers.
Thanks in advance
I am interesting in your source code, but can not download them. Can you help me?
Deletethanks
ReplyDeleteToday, I was just browsing along and came upon your blog. Just wanted to say good blog and this article helped me a lot, due to which I have found exactly I was looking. Car Insurance Comparison Website
ReplyDelete