aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/nopencv.hpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-06-02 11:57:00 +0200
committerjaseg <git@jaseg.de>2021-06-02 11:57:00 +0200
commit0530c365ca569435c396481605c05392829708ac (patch)
tree10865daba54121e18453236082faebd55371aa9a /svg-flatten/src/nopencv.hpp
parent536a34cd59258d3a75d4caa8431fc688b1e788f6 (diff)
downloadgerbolyze-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.hpp2
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);
}
}