mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-04 13:14:23 +08:00
Inserting corners in the corner_orientaions example
This commit is contained in:
committed by
Johannes Schönberger
parent
3e1b6c2899
commit
f9b6e1ba8f
@@ -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],
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user