mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-18 12:40:14 +08:00
Add test for mask output of corner_peaks
This commit is contained in:
@@ -146,6 +146,10 @@ def test_corner_peaks():
|
||||
corners = corner_peaks(response, exclude_border=False, min_distance=0)
|
||||
assert len(corners) == 4
|
||||
|
||||
corners = corner_peaks(response, exclude_border=False, min_distance=0,
|
||||
indices=False)
|
||||
assert np.sum(corners) == 4
|
||||
|
||||
|
||||
def test_blank_image_nans():
|
||||
"""Some of the corner detectors had a weakness in terms of returning
|
||||
|
||||
Reference in New Issue
Block a user