diff options
author | jaseg <git@jaseg.de> | 2021-06-02 00:02:36 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-02 00:02:36 +0200 |
commit | 3b553b3a1dcbecb684e4d7eb00dac1c26874247b (patch) | |
tree | cbb21e706aadc8628f849d473370b4d78cb6eba6 /svg-flatten/src/nopencv_test.cpp | |
parent | 3386e586ac0f0ae07535036efe6293f6118f7e2b (diff) | |
download | gerbolyze-3b553b3a1dcbecb684e4d7eb00dac1c26874247b.tar.gz gerbolyze-3b553b3a1dcbecb684e4d7eb00dac1c26874247b.tar.bz2 gerbolyze-3b553b3a1dcbecb684e4d7eb00dac1c26874247b.zip |
Chain approximation approximately working
Diffstat (limited to 'svg-flatten/src/nopencv_test.cpp')
-rw-r--r-- | svg-flatten/src/nopencv_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svg-flatten/src/nopencv_test.cpp b/svg-flatten/src/nopencv_test.cpp index 901c7a8..4027072 100644 --- a/svg-flatten/src/nopencv_test.cpp +++ b/svg-flatten/src/nopencv_test.cpp @@ -233,7 +233,7 @@ static void chain_approx_test(const char *fn) { << "xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">" << endl; svg << "<rect width=\"100%\" height=\"100%\" fill=\"black\"/>" << endl; - gerbolyze::nopencv::find_blobs(ref_img, simplify_contours_teh_chin(2, [&svg](Polygon_i &poly, ContourPolarity pol) { + gerbolyze::nopencv::find_blobs(ref_img, simplify_contours_teh_chin([&svg](Polygon_i &poly, ContourPolarity pol) { svg << "<path fill=\"" << ((pol == CP_HOLE) ? "black" : "white") << "\" d=\""; svg << "M " << poly[0][0] << " " << poly[0][1]; for (size_t i=1; i<poly.size(); i++) { |