diff options
author | jaseg <git@jaseg.de> | 2021-05-30 20:22:59 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-05-30 20:22:59 +0200 |
commit | bbf1c02e799573532d1f5416fafe1b2255168bba (patch) | |
tree | e695d9cb5d2c311f3581f7e123669f072000fd30 /svg-flatten/src/nopencv.cpp | |
parent | d1755701779b88389dc1d2e30d2430320a17f78e (diff) | |
download | gerbolyze-bbf1c02e799573532d1f5416fafe1b2255168bba.tar.gz gerbolyze-bbf1c02e799573532d1f5416fafe1b2255168bba.tar.bz2 gerbolyze-bbf1c02e799573532d1f5416fafe1b2255168bba.zip |
Contour finding tests run through
Diffstat (limited to 'svg-flatten/src/nopencv.cpp')
-rw-r--r-- | svg-flatten/src/nopencv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svg-flatten/src/nopencv.cpp b/svg-flatten/src/nopencv.cpp index 77c6cc6..22c3fff 100644 --- a/svg-flatten/src/nopencv.cpp +++ b/svg-flatten/src/nopencv.cpp @@ -47,7 +47,7 @@ static Direction flip_direction[8] = { D_SE }; -static void follow(gerbolyze::nopencv::Image32 img, int start_x, int start_y, Direction initial_direction, int nbd, int connectivity, Polygon &poly) { +static void follow(gerbolyze::nopencv::Image32 &img, int start_x, int start_y, Direction initial_direction, int nbd, int connectivity, Polygon &poly) { //cerr << "follow " << start_x << " " << start_y << " | dir=" << dir_str[initial_direction] << " nbd=" << nbd << " conn=" << connectivity << endl; int dir_inc = (connectivity == 4) ? 2 : 1; @@ -122,7 +122,7 @@ static void follow(gerbolyze::nopencv::Image32 img, int start_x, int start_y, Di } -void gerbolyze::nopencv::find_blobs(gerbolyze::nopencv::Image32 img, gerbolyze::nopencv::ContourCallback cb) { +void gerbolyze::nopencv::find_blobs(gerbolyze::nopencv::Image32 &img, gerbolyze::nopencv::ContourCallback cb) { int nbd = 1; Polygon poly; for (int y=0; y<img.rows(); y++) { |