mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 00:52:52 +08:00
Using Py_ssize_t and np.intp for cfast_corners
This commit is contained in:
committed by
Johannes Schönberger
parent
8304824455
commit
04e9cef567
@@ -208,7 +208,7 @@ def corner_fast_orientation(image, fast_corners):
|
||||
[0, 1, 1, 1, 1, 1, 0],
|
||||
[0, 0, 1, 1, 1, 0, 0]], dtype=np.uint8)
|
||||
|
||||
cdef int[:, ::1] cfast_corners = np.ascontiguousarray(fast_corners, dtype=np.int32)
|
||||
cdef Py_ssize_t[:, :] cfast_corners = np.ascontiguousarray(fast_corners, dtype=np.intp)
|
||||
|
||||
cdef Py_ssize_t n_fast_corners = fast_corners.shape[0]
|
||||
cdef Py_ssize_t i, p, q, r, c, x, y
|
||||
|
||||
Reference in New Issue
Block a user