projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactoring Hough class
[imago.git]
/
imago_pack
/
filters.py
diff --git
a/imago_pack/filters.py
b/imago_pack/filters.py
index
c53b6e8
..
8c1c21b
100644
(file)
--- a/
imago_pack/filters.py
+++ b/
imago_pack/filters.py
@@
-6,7
+6,8
@@
def edge_detection(image):
image = image.filter(ImageFilter.GaussianBlur())
# GaussianBlur is undocumented class, it might not work in future versions
# of PIL
image = image.filter(ImageFilter.GaussianBlur())
# GaussianBlur is undocumented class, it might not work in future versions
# of PIL
- image = Image.fromstring('L', image.size, pcf.edge(image.size, image.tostring()))
+ image = Image.fromstring('L', image.size,
+ pcf.edge(image.size, image.tostring()))
return image
def peaks(image):
return image
def peaks(image):
@@
-147,5
+148,4
@@
def components2(image):
c += 1
new_image_l[int(round(float(x_c)/c)), int(round(float(y_c)/c))] = 255
c += 1
new_image_l[int(round(float(x_c)/c)), int(round(float(y_c)/c))] = 255
-
return new_image
return new_image