X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/80567459ab66eeb8ea12de0e746adfe193b187f6..ba7978f0ac03e56190df7ed04f8a6e03c4193546:/imago.py diff --git a/imago.py b/imago.py index 3634363..511027b 100755 --- a/imago.py +++ b/imago.py @@ -69,10 +69,19 @@ def main(): 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_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: @@ -100,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)