From 2f0d63955eade8a9031f1509915dced9463f2856 Mon Sep 17 00:00:00 2001 From: Martin Bergtholdt Date: Tue, 10 May 2011 19:18:50 +0200 Subject: [PATCH] BUG: Windows does not have round in math.h --- scikits/image/transform/_hough_transform.pyx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scikits/image/transform/_hough_transform.pyx b/scikits/image/transform/_hough_transform.pyx index 6239b5b1..ec85743d 100644 --- a/scikits/image/transform/_hough_transform.pyx +++ b/scikits/image/transform/_hough_transform.pyx @@ -9,8 +9,10 @@ np.import_array() cdef extern from "math.h": double sqrt(double) double ceil(double) - double round(double) + double floor(double) +cdef double round(double val): + return floor(val + 0.5); cdef double PI_2 = 1.5707963267948966 cdef double NEG_PI_2 = -PI_2