X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/f0b736c0abd7ea49b99106b20ece02466b7b19c0..b58e72da34c8d6ef168a6f43fba1345fd6bad31e:/ransac_grid.py?ds=inline diff --git a/ransac_grid.py b/ransac_grid.py index df83b7f..4182555 100644 --- a/ransac_grid.py +++ b/ransac_grid.py @@ -35,7 +35,7 @@ size = (520, 390) def generate_models(sample, middle): sgrid = map(lambda l:linef.line_from_angl_dist(l, size), sample) lh = (gm.intersection(sgrid[0], middle), gm.intersection(sgrid[1], middle)) - for f in [0, 1, 2, 3, 5]: + for f in [0, 1, 2, 3, 5, 7, 8, 11, 15, 17]: grid = gm.fill(sgrid[0], sgrid[1], lh , f) grid = [sgrid[0]] + grid + [sgrid[1]] for s in xrange(17 - f):