projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manual mode works
[imago.git]
/
imago.py
diff --git
a/imago.py
b/imago.py
index
830a53b
..
81aa1ac
100755
(executable)
--- a/
imago.py
+++ b/
imago.py
@@
-64,6
+64,13
@@
def main():
else:
lines = linef.find_lines(image, show_all, do_something, verbose)
else:
lines = linef.find_lines(image, show_all, do_something, verbose)
+ image_g = image.copy()
+ draw = ImageDraw.Draw(image_g)
+ for line in [l for s in lines for l in s]:
+ draw.line(linef.line_from_angl_dist(line, image.size), fill=(120, 255, 120))
+ if show_all:
+ do_something(image_g, "the grid")
+
intersections = intersections_from_angl_dist(lines, image.size)
image_g = image.copy()
draw = ImageDraw.Draw(image_g)
intersections = intersections_from_angl_dist(lines, image.size)
image_g = image.copy()
draw = ImageDraw.Draw(image_g)