mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-19 11:27:45 +08:00
declare cython variables
This commit is contained in:
@@ -48,11 +48,13 @@ def _hough_circle(np.ndarray img, \
|
||||
y, x = np.nonzero(img)
|
||||
|
||||
# Offset the image
|
||||
max_radius = radius.max()
|
||||
cdef int max_radius = radius.max()
|
||||
x = x + max_radius
|
||||
y = y + max_radius
|
||||
|
||||
cdef list H = list()
|
||||
cdef int px, py
|
||||
cdef np.ndarray[ndim=1, dtype=np.npy_intp] tx, ty
|
||||
|
||||
for rad in radius:
|
||||
# Accumulator
|
||||
|
||||
Reference in New Issue
Block a user