diff options
author | jaseg <git@jaseg.de> | 2021-06-02 12:13:52 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-02 12:13:52 +0200 |
commit | 3e58a4228bff78e2c51136312337fc4b47efa587 (patch) | |
tree | 92867756113e82991a221bbe6bf3435f73b66cfe /svg-flatten/src | |
parent | 7b58f2efc547d5a765c1f3cef77b3bc2ecd5d83c (diff) | |
download | gerbolyze-3e58a4228bff78e2c51136312337fc4b47efa587.tar.gz gerbolyze-3e58a4228bff78e2c51136312337fc4b47efa587.tar.bz2 gerbolyze-3e58a4228bff78e2c51136312337fc4b47efa587.zip |
Fix small logical error in tests
Diffstat (limited to 'svg-flatten/src')
-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 5eedfe1..eae17e2 100644 --- a/svg-flatten/src/nopencv_test.cpp +++ b/svg-flatten/src/nopencv_test.cpp @@ -245,7 +245,7 @@ static void test_polygon_area(const char *fn) { } double pos_sum = 0.0; - double neg_sum = black_px_count; + double neg_sum = ref_img.size(); gerbolyze::nopencv::find_blobs(ref_img, [&pos_sum, &neg_sum](Polygon_i& poly, ContourPolarity pol) { double area = polygon_area(poly); //cerr << endl << fn << ": " << area << " " << pos_sum << " / " << neg_sum << " -- " << white_px_count << " / " << black_px_count << " GOT: " << poly.size() << " w/ " << pol << endl; |