diff options
author | jaseg <git@jaseg.de> | 2021-06-02 11:57:00 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-02 11:57:00 +0200 |
commit | 0530c365ca569435c396481605c05392829708ac (patch) | |
tree | 10865daba54121e18453236082faebd55371aa9a /svg-flatten/src/nopencv.hpp | |
parent | 536a34cd59258d3a75d4caa8431fc688b1e788f6 (diff) | |
download | gerbolyze-0530c365ca569435c396481605c05392829708ac.tar.gz gerbolyze-0530c365ca569435c396481605c05392829708ac.tar.bz2 gerbolyze-0530c365ca569435c396481605c05392829708ac.zip |
Add polygon area function & tests. These tests catch a single-px bug.
Diffstat (limited to 'svg-flatten/src/nopencv.hpp')
-rw-r--r-- | svg-flatten/src/nopencv.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svg-flatten/src/nopencv.hpp b/svg-flatten/src/nopencv.hpp index 51a068a..afebce5 100644 --- a/svg-flatten/src/nopencv.hpp +++ b/svg-flatten/src/nopencv.hpp @@ -102,6 +102,8 @@ namespace gerbolyze { void find_blobs(Image32 &img, ContourCallback cb); ContourCallback simplify_contours_teh_chin(ContourCallback cb); + + double polygon_area(Polygon_i &poly); } } |