Using inline function in corner_cy._corner_fast

This commit is contained in:
Ankit Agrawal
2013-11-29 20:37:25 +01:00
committed by Johannes Schönberger
parent b03053a159
commit 0b3414f057
+1 -1
View File
@@ -82,6 +82,7 @@ def corner_moravec(image, Py_ssize_t window_size=1):
return np.asarray(out)
<<<<<<< HEAD
cdef inline double _corner_fast_response(double curr_pixel,
double* circle_intensities,
char* bins, char state, char n):
@@ -113,7 +114,6 @@ def _corner_fast(double[:, ::1] image, char n, double threshold):
cdef double lower_threshold, upper_threshold
cdef double[:, ::1] corner_response = np.empty((rows, cols),
dtype=np.double)
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]