X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/841662dc25b40dce151a0bf7a024e55682028f18..34cb5a0a2f4757926f98ece3ddd3a5113f942913:/src/linef.py?ds=sidebyside diff --git a/src/linef.py b/src/linef.py index ab7c95d..2b2b86b 100644 --- a/src/linef.py +++ b/src/linef.py @@ -58,7 +58,7 @@ def run_ransac(image): data.append((x, y)) dist = 3 - (line, points), (line2, points2) = ransac.ransac_duo(data, dist, 75, 15) + [(line, points), (line2, points2)] = ransac.ransac_multi(2, data, dist, 250) line_to_points = lambda (a, b, c), x: (x, (a*x + c) / (- b)) # TODO width should not be here vvv # TODO refactor gridf to use standard equations instead of points