Fix corner_peaks doctest

This commit is contained in:
Johannes Schönberger
2016-01-24 10:56:13 +01:00
parent 88ee3ce96e
commit 024c4328f2
+2 -7
View File
@@ -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]])
"""