X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/1b3aec3cc439bfcd3b0615f0845590c4300482c0..3790db9ab7a4871faf0b445c8283c7f0b7b30a22:/imago_pack/filters.py diff --git a/imago_pack/filters.py b/imago_pack/filters.py index c53b6e8..8c1c21b 100644 --- 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.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): @@ -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 - return new_image