From 04e9cef567405c647ff4da5cfa026245e45817d6 Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Mon, 26 Aug 2013 16:41:46 +0530 Subject: [PATCH] Using Py_ssize_t and np.intp for cfast_corners --- skimage/feature/corner_cy.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/feature/corner_cy.pyx b/skimage/feature/corner_cy.pyx index 8c5d1002..7d760c25 100644 --- a/skimage/feature/corner_cy.pyx +++ b/skimage/feature/corner_cy.pyx @@ -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