Inserting corners in the corner_orientaions example

This commit is contained in:
Ankit Agrawal
2013-11-29 20:42:05 +01:00
committed by Johannes Schönberger
parent 3e1b6c2899
commit f9b6e1ba8f
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -569,8 +569,7 @@ def corner_fast(image, n=12, threshold=0.15):
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]])
>>> corners = corner_peaks(corner_fast(square, 9), min_distance=1)
>>> corners
>>> corner_peaks(corner_fast(square, 9), min_distance=1)
array([[3, 3],
[3, 8],
[8, 3],
+2 -1
View File
@@ -219,7 +219,8 @@ def corner_orientations(image, Py_ssize_t[:, :] corners, mask):
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]])
>>> corner_peaks(corner_fast(square, 9), min_distance=1)
>>> corners = corner_peaks(corner_fast(square, 9), min_distance=1)
>>> corners
array([[3, 3],
[3, 8],
[8, 3],