aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/nopencv.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-05-30 20:22:59 +0200
committerjaseg <git@jaseg.de>2021-05-30 20:22:59 +0200
commitbbf1c02e799573532d1f5416fafe1b2255168bba (patch)
treee695d9cb5d2c311f3581f7e123669f072000fd30 /svg-flatten/src/nopencv.cpp
parentd1755701779b88389dc1d2e30d2430320a17f78e (diff)
downloadgerbolyze-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.cpp4
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++) {