projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor corrections
[imago.git]
/
filters.py
diff --git
a/filters.py
b/filters.py
index
377fa2e
..
e770724
100644
(file)
--- a/
filters.py
+++ b/
filters.py
@@
-74,8
+74,8
@@
def components(image):
components = []
comp_counter = 0
components = []
comp_counter = 0
- for
x in xrange(1, image.size[0
] - 1):
- for
y in xrange(1, image.size[1
] - 1):
+ for
y in xrange(1, image.size[1
] - 1):
+ for
x in xrange(1, image.size[0
] - 1):
if image_l[x, y]:
s = {0}
s.add(new_image_l[x - 1, y - 1])
if image_l[x, y]:
s = {0}
s.add(new_image_l[x - 1, y - 1])