Using Py_ssize_t and np.intp for cfast_corners

This commit is contained in:
Ankit Agrawal
2013-08-26 16:41:46 +05:30
committed by Johannes Schönberger
parent 8304824455
commit 04e9cef567
+1 -1
View File
@@ -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