X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/f5d26701a82ad46e27a6d88bdca59b420a03259d..ba7978f0ac03e56190df7ed04f8a6e03c4193546:/imago.py diff --git a/imago.py b/imago.py index 45d165c..511027b 100755 --- a/imago.py +++ b/imago.py @@ -68,15 +68,20 @@ def main(): im_hough = hough1.transform(im_h) if show_all: do_something(im_hough, "hough transform") - - im_hough = filters.peaks(im_hough) + + im_hough = filters.peaks(im_hough) if show_all: do_something(im_hough, "peak extraction") - + im_h2 = filters.high_pass(im_hough, 120) if show_all: do_something(im_h2, "second high pass filters") + im_c = filters.components(im_h2) + if show_all: + do_something(im_c, "components centers") + + """ hough2 = Hough(im_h2.size) im_hough2 = hough2.transform(im_h2) if show_all: @@ -104,6 +109,7 @@ def main(): collapse(im_c) if show_all: do_something(im_c, "optimalised hough") + """ lines = hough1.all_lines(im_c) draw = ImageDraw.Draw(image)