X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/a0ffea12425b22e87010c097a393e9b627eb0a29..145417a1698105ca84eeb57c650181f8777667e5:/hough.py?ds=inline diff --git a/hough.py b/hough.py index 9d44bcb..0e9fe2d 100644 --- a/hough.py +++ b/hough.py @@ -30,7 +30,7 @@ class Hough: size[0] / 2) # column of the matrix closest to the distance column = int(round(distance)) - if column >= 0 and column < size[0]: + if 0 <= column < size[0]: matrix[column][a] += 1 new_image = Image.new('L', size)