From a15c5fac87cc68177b0d854791aa01e99ab00ef5 Mon Sep 17 00:00:00 2001 From: Vighnesh Birodkar Date: Sat, 15 Mar 2014 19:58:01 +0530 Subject: [PATCH] indexing --- skimage/feature/_hessian_det_appx.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/feature/_hessian_det_appx.pyx b/skimage/feature/_hessian_det_appx.pyx index 358a4973..a8ca2734 100644 --- a/skimage/feature/_hessian_det_appx.pyx +++ b/skimage/feature/_hessian_det_appx.pyx @@ -38,7 +38,7 @@ cdef inline Py_ssize_t _clip(Py_ssize_t x, Py_ssize_t low, Py_ssize_t high): cdef inline cnp.double_t _integ( - cnp.double_t[:, :] img, Py_ssize_t r, Py_ssize_t c, + cnp.double_t[:, ::1] img, Py_ssize_t r, Py_ssize_t c, Py_ssize_t rl, Py_ssize_t cl): """Integrate over the integral image in the given window @@ -78,7 +78,7 @@ cdef inline cnp.double_t _integ( return ans -def _hessian_det_appx(cnp.double_t[:, :] img, float sigma): +def _hessian_det_appx(cnp.double_t[:, ::1] img, float sigma): """Computes the approximate Hessian Determinant over an image. This method uses box filters over integral images to compute the