Coenni
Coenni

Reputation: 197

To get larger polygon from existing polygon

enter image description here

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

Answers (1)

Joseph O'Rourke
Joseph O'Rourke

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

Related Questions