X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/f1094e68978c348e13ddc4f1da0af6d481ec7cf0..f22e2954fe1c40b1e706945ae295a363e2d347d9:/src/intrsc.py?ds=sidebyside diff --git a/src/intrsc.py b/src/intrsc.py index 977ad84..68b18a0 100644 --- 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 mean luma of the *cluster* of points.""" + """Return mean luminanace of the *cluster* of points.""" 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): - """Convert RGB to luma and HSI model saturation.""" + """Convert RGB to luminance 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)