Reputation: 21
I have been working with OpenCv for months and I was wondering if someone can help me with one of the algorithms.
I want to calculate the Feret's diameter (8, 16,32 or 64)
with c++ and in OpenCv library, I couldn't find any function.
Can any one suggest any solution or algorithm?
Thanks
Upvotes: 0
Views: 1310
Reputation: 5898
You can use the rotation of the bounding box, but it is the brute force solution. Here is a simpler solution using the convex hull.
I think that this link is a faster algorithm using the Freeman chain code.
Upvotes: 1