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):
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)