projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
components and hough2 combined
[imago.git]
/
imago.py
diff --git
a/imago.py
b/imago.py
index
511027b
..
87b522e
100755
(executable)
--- a/
imago.py
+++ b/
imago.py
@@
-77,11
+77,10
@@
def main():
if show_all:
do_something(im_h2, "second high pass filters")
if show_all:
do_something(im_h2, "second high pass filters")
- im_
c
= filters.components(im_h2)
+ im_
h2
= filters.components(im_h2)
if show_all:
if show_all:
- do_something(im_
c
, "components centers")
+ do_something(im_
h2
, "components centers")
- """
hough2 = Hough(im_h2.size)
im_hough2 = hough2.transform(im_h2)
if show_all:
hough2 = Hough(im_h2.size)
im_hough2 = hough2.transform(im_h2)
if show_all:
@@
-98,7
+97,7
@@
def main():
draw = ImageDraw.Draw(im_lines)
for line in lines:
draw = ImageDraw.Draw(im_lines)
for line in lines:
- draw.line(line_from_angl_dist(line, im_h2.size), fill=255)
+ draw.line(line_from_angl_dist(line, im_h2.size), fill=255
, width=5
)
if show_all:
do_something(im_lines, "lines")
if show_all:
do_something(im_lines, "lines")
@@
-109,7
+108,6
@@
def main():
collapse(im_c)
if show_all:
do_something(im_c, "optimalised hough")
collapse(im_c)
if show_all:
do_something(im_c, "optimalised hough")
- """
lines = hough1.all_lines(im_c)
draw = ImageDraw.Draw(image)
lines = hough1.all_lines(im_c)
draw = ImageDraw.Draw(image)