Fix invalid circle coordinates

This commit is contained in:
Johannes Schönberger
2013-08-24 17:27:28 +02:00
parent 2e0882994a
commit aeef8ef3e7
+2 -2
View File
@@ -114,8 +114,8 @@ def _corner_fast(double[:, ::1] image, char n, double threshold):
cdef double[:, ::1] corner_response = np.empty((rows, cols),
dtype=np.double)
cdef char *rp = [-3, -3, -2, -1, 0, 1, 2, 3, 3, 3, 2, 1, 0, -1, -2, -1, -3]
cdef char *cp = [0, 1, 2, 3, 3, 3, 2, 1, 0, -1, -2, -3, -3, -3, -2, -3]
cdef char *rp = [0, 1, 2, 3, 3, 3, 2, 1, 0, -1, -2, -3, -3, -3, -2, -1]
cdef char *cp = [3, 3, 2, 1, 0, -1, -2, -3, -3, -3, -2, -1, 0, 1, 2, 3]
cdef char bins[16]
cdef double circle_intensities[16]