mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
BUG - Dtype conversion to Boolean in a new code path not included in current tests.
This commit is contained in:
@@ -129,7 +129,7 @@ def peak_local_max(image, min_distance=10, threshold_abs=0, threshold_rel=0.1,
|
||||
if indices is True:
|
||||
return []
|
||||
else:
|
||||
return np.zeros_like(image)
|
||||
return np.zeros_like(image, dtype=bool)
|
||||
|
||||
image = image.copy()
|
||||
# Non maximum filter
|
||||
|
||||
Reference in New Issue
Block a user