diff options
author | jaseg <git@jaseg.de> | 2021-06-04 23:28:36 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-04 23:28:36 +0200 |
commit | 61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d (patch) | |
tree | 6773b748eaf4983ae20c5196e8b20dfa370c0b0b /svg-flatten/src/nopencv.cpp | |
parent | 6193fa151eb503a769e9affd8da330cd50895be7 (diff) | |
download | gerbolyze-61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d.tar.gz gerbolyze-61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d.tar.bz2 gerbolyze-61887e9ee1a108c26cdd4b2d67fc4095d62b6e9d.zip |
Add & fix vectorizer tests
Diffstat (limited to 'svg-flatten/src/nopencv.cpp')
-rw-r--r-- | svg-flatten/src/nopencv.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svg-flatten/src/nopencv.cpp b/svg-flatten/src/nopencv.cpp index b490217..0643b20 100644 --- a/svg-flatten/src/nopencv.cpp +++ b/svg-flatten/src/nopencv.cpp @@ -155,6 +155,8 @@ void gerbolyze::nopencv::find_contours(gerbolyze::nopencv::Image32 &img, gerboly * Written with these two resources as reference: * https://theailearner.com/tag/suzuki-contour-algorithm-opencv/ * https://github.com/FreshJesh5/Suzuki-Algorithm/blob/master/contoursv1/contoursv1.cpp + * + * WARNING: input image MUST BE BINARIZE: All pixels must have value either 0 or 1. Otherwise, chaos ensues. */ int nbd = 1; Polygon_i poly; |