Reputation: 197
I want to get red polygon from black polygon in OpenCV. to get larger one from existing polygon? Is there any easy way to do it?
Upvotes: 1
Views: 1251
Reputation: 4406
What you are seeking is the offset polygon. It was addressed in an earlier question, "An algorithm for inflating/deflating (offsetting, buffering) polygons." It is not easy to compute in general, but it is well-studied.
Upvotes: 2