From 8aab2f2a8521fbb148e0dd4a4c32d50de1370c6d Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Tue, 15 May 2018 21:25:46 -0400 Subject: [PATCH] tweak size --- src/Renders.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Renders.cpp b/src/Renders.cpp index 9fb58e3..6a61bf4 100644 --- a/src/Renders.cpp +++ b/src/Renders.cpp @@ -77,7 +77,7 @@ Obs tweakOne(const yarp::sig::ImageOf& img, cv::Point2f pto, ptd; IMGFOR(img, x, y) { // speed up a bit - for precision remove this line - if (x % 4 != 0 || x % 4 != 0) continue; + // if (x % 4 != 0 || x % 4 != 0) continue; if (is_active(img(x, y))) { int edge=0, vertex=0; @@ -163,6 +163,7 @@ Tweak tweak(const yarp::sig::ImageOf& img, hi = curr; } } + good_scale *= 0.97; printf("Good scale: %g\n", good_scale); Tweak t; t.scale = good_scale;