mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-01 12:50:48 +08:00
Added backwards compatibility for exclude_border
This commit is contained in:
@@ -92,6 +92,9 @@ def peak_local_max(image, min_distance=1, threshold_abs=None,
|
||||
array([[10, 10, 10]])
|
||||
|
||||
"""
|
||||
|
||||
if type(exclude_border) == bool:
|
||||
exclude_border = min_distance if exclude_border else 0
|
||||
|
||||
out = np.zeros_like(image, dtype=np.bool)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user