X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/9413d2f83c6bdba0d51740fc2348a3f85aeec6e2..e3efa906f4d1c8203c88b5129cfa63598dbf3476:/linef.py?ds=sidebyside diff --git a/linef.py b/linef.py index 29ce2e3..4e35781 100644 --- a/linef.py +++ b/linef.py @@ -43,11 +43,11 @@ def find_lines(image, show_all, do_something, verbose): if show_all: do_something(im_hough, "hough transform") - im_hough = filters.peaks(im_hough) - if show_all: - do_something(im_hough, "peak extraction") + # im_hough = filters.peaks(im_hough) + # if show_all: + # do_something(im_hough, "peak extraction") - im_h2 = filters.high_pass(im_hough, 120) + im_h2 = filters.high_pass(im_hough, 96) if show_all: do_something(im_h2, "second high pass filters") @@ -109,7 +109,7 @@ def find_lines(image, show_all, do_something, verbose): if show_all: do_something(image_g, "lines") - return lines, lines_m[0][0], lines_m[1][0], bounds, hough1 + return lines, lines_m[0][0], lines_m[1][0], bounds, hough1, im_h def combine(image1, image2): im_l1 = image1.load()