im_hough = hough.transform(image)
show_image(im_hough, "hough transform")
im_hough = hough.transform(image)
show_image(im_hough, "hough transform")
- # im_hough.image = filters.peaks(im_hough.image)
- # show_image(im_hough.image, "peak extraction")
+ # im_hough = filters.peaks(im_hough)
+ # show_image(im_hough, "peak extraction")
show_image(im_h2, "second high pass filters")
im_h2 = filters.components(im_h2, 2)
show_image(im_h2, "second high pass filters")
im_h2 = filters.components(im_h2, 2)
- (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
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