projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ASCII output
[imago.git]
/
hough.py
diff --git
a/hough.py
b/hough.py
index
a8f64b2
..
f39784b
100644
(file)
--- a/
hough.py
+++ b/
hough.py
@@
-2,8
+2,6
@@
from math import sin, cos, pi
from PIL import Image
from PIL import Image
-from commons import clear
-
class Hough:
def __init__(self, size):
self.size = size
class Hough:
def __init__(self, size):
self.size = size
@@
-20,8
+18,6
@@
class Hough:
initial_angle = self.initial_angle
for x in xrange(size[0]):
initial_angle = self.initial_angle
for x in xrange(size[0]):
- clear()
- print "hough transform: {0:>3}/{1}".format(x + 1, size[0])
for y in xrange(size[1]):
if image_l[x, y]:
# for every angle:
for y in xrange(size[1]):
if image_l[x, y]:
# for every angle: