Hough probability maths (hough.cpp)

r += (numrho - 1) / 2; it prevents negative value of r.