projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comments to the specification
[imago.git]
/
src
/
intrsc.py
diff --git
a/src/intrsc.py
b/src/intrsc.py
index
977ad84
..
68b18a0
100644
(file)
--- a/
src/intrsc.py
+++ b/
src/intrsc.py
@@
-118,7
+118,7
@@
def board(image, lines, show_all, do_something):
return output.Board(19, board_r)
def mean_luma(cluster):
return output.Board(19, board_r)
def mean_luma(cluster):
- """Return mean lum
a
of the *cluster* of points."""
+ """Return mean lum
inanace
of the *cluster* of points."""
return sum(c[0][0] for c in cluster) / float(len(cluster))
def to_general(line, size):
return sum(c[0][0] for c in cluster) / float(len(cluster))
def to_general(line, size):
@@
-148,7
+148,7
@@
def intersections_from_angl_dist(lines, size, get_all=True):
return intersections
def rgb2lumsat(color):
return intersections
def rgb2lumsat(color):
- """Convert RGB to lum
a
and HSI model saturation."""
+ """Convert RGB to lum
inance
and HSI model saturation."""
r, g, b = color
luma = (0.30 * r + 0.59 * g + 0.11 * b) / 255.0
max_diff = max(color) - min(color)
r, g, b = color
luma = (0.30 * r + 0.59 * g + 0.11 * b) / 255.0
max_diff = max(color) - min(color)