X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/129886d4580041098317fa70be6f03cc731b26a0..e3b0b7b8f5accc4f6af935923e6db9b34a40b362:/hough.py 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)