/fill_polygon

Fill the inner area bounded by a polygon, including self-intersecting one.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Fill Polygon

Fill the inner area bounded by a polygon, including a self-intersecting one.

This algorithm solves the problem of filling the inner area bounded by a self-intersecting polygon, a scenario where the OpenCV's function fillPoly() fails. This implementation can fill a polygon that overlaps itself multiple times.

example

Please feel free to suggest any improvements or add any comments you might have.

Copyright

AIT Austrian Institute of Technology GmbH https://www.ait.ac.at/