1

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?

Peter O.
  • 32,158
  • 14
  • 82
  • 96
Coenni
  • 197
  • 5
  • 16

1 Answers1

2

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.

Community
  • 1
  • 1
Joseph O'Rourke
  • 4,346
  • 16
  • 25