projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix more errors
[imago.git]
/
src
/
intrsc.py
diff --git
a/src/intrsc.py
b/src/intrsc.py
index
6f78f8d
..
a740212
100644
(file)
--- a/
src/intrsc.py
+++ b/
src/intrsc.py
@@
-163,7
+163,7
@@
def stone_color_raw(image, (x, y)):
pass
norm = float(len(points))
if norm == 0:
- return 0, 0,
0
#TODO trow exception here
+ return 0, 0,
(0, 0, 0)
#TODO trow exception here
color = (sum(p[0] for p in points) / norm,
sum(p[1] for p in points) / norm,
sum(p[2] for p in points) / norm)