mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Change data type of index variables
This commit is contained in:
1 parent
3d78493e81
commit
dc83c64d44
1 file changed
+2
-2
@@ -50,11 +50,11 @@ def _hough_circle(cnp.ndarray img, \
|
||||
x, y = np.nonzero(img)
|
||||
|
||||
# Offset the image
|
||||
cdef int max_radius = radius.max()
|
||||
cdef Py_ssize_t max_radius = radius.max()
|
||||
x = x + max_radius
|
||||
y = y + max_radius
|
||||
|
||||
cdef int px, py
|
||||
cdef Py_ssize_t px, py
|
||||
cdef cnp.ndarray[ndim=1, dtype=cnp.intp_t] tx, ty, circle_x, circle_y
|
||||
cdef cnp.ndarray acc = np.zeros((radius.size,
|
||||
img.shape[0] + 2 * max_radius,
|
||||
|
||||
Reference in new issue
Block a user