mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 04:50:54 +08:00
Fix corner_peaks doctest
This commit is contained in:
@@ -823,18 +823,13 @@ def corner_peaks(image, min_distance=1, threshold_abs=None, threshold_rel=None,
|
||||
[ 0., 0., 1., 1., 0.],
|
||||
[ 0., 0., 1., 1., 0.],
|
||||
[ 0., 0., 0., 0., 0.]])
|
||||
>>> peak_local_max(response, exclude_border=False)
|
||||
>>> peak_local_max(response)
|
||||
array([[2, 2],
|
||||
[2, 3],
|
||||
[3, 2],
|
||||
[3, 3]])
|
||||
>>> corner_peaks(response, exclude_border=False)
|
||||
>>> corner_peaks(response)
|
||||
array([[2, 2]])
|
||||
>>> corner_peaks(response, exclude_border=False, min_distance=0)
|
||||
array([[2, 2],
|
||||
[2, 3],
|
||||
[3, 2],
|
||||
[3, 3]])
|
||||
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user