save figures from matplotlib
[imago.git] / imago_pack / gridf.py
index fc64772..3c64720 100644 (file)
@@ -33,8 +33,6 @@ def job_4(x, y, w, z, im_l, v1, v2, h1, h2, dv, dh, size):
 def find(lines, size, l1, l2, bounds, hough, show_all, do_something, logger):
     logger("finding the grid")
 
 def find(lines, size, l1, l2, bounds, hough, show_all, do_something, logger):
     logger("finding the grid")
 
-    l1 = line_from_angl_dist(l1, size)
-    l2 = line_from_angl_dist(l2, size)
     v1 = V(*l1[0]) - V(*l1[1])
     v2 = V(*l2[0]) - V(*l2[1])
     a, b, c, d = [V(*a) for a in bounds]
     v1 = V(*l1[0]) - V(*l1[1])
     v2 = V(*l2[0]) - V(*l2[1])
     a, b, c, d = [V(*a) for a in bounds]
@@ -100,6 +98,7 @@ def find(lines, size, l1, l2, bounds, hough, show_all, do_something, logger):
             im_t_d.line(l, width=1, fill=(0, 255, 0))
 
         do_something(im_t, "lines and grid")
             im_t_d.line(l, width=1, fill=(0, 255, 0))
 
         do_something(im_t, "lines and grid")
+#
 ###
 
     return grid, grid_lines
 ###
 
     return grid, grid_lines