mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-20 12:50:52 +08:00
Replace Cython's round with a VC2010 compatible version
This commit is contained in:
@@ -15,9 +15,7 @@ from skimage.draw import circle_perimeter
|
||||
cdef double PI_2 = 1.5707963267948966
|
||||
cdef double NEG_PI_2 = -PI_2
|
||||
|
||||
|
||||
cdef inline Py_ssize_t round(double r):
|
||||
return <Py_ssize_t>((r + 0.5) if (r > 0.0) else (r - 0.5))
|
||||
from skimage._shared.interpolation cimport round
|
||||
|
||||
|
||||
def _hough_circle(cnp.ndarray img,
|
||||
|
||||
Reference in New Issue
Block a user