mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 18:25:32 +08:00
Finally fixed issue:
Issue Was with remnant of min_distance logic (i.e. `footprint is not None`
This commit is contained in:
@@ -139,7 +139,7 @@ def peak_local_max(image, min_distance=1, threshold_abs=None,
|
||||
image_max = ndi.maximum_filter(image, size=size, mode='constant')
|
||||
mask = image == image_max
|
||||
|
||||
if exclude_border and (footprint is not None):
|
||||
if exclude_border:
|
||||
# zero out the image borders
|
||||
for i in range(mask.ndim):
|
||||
mask = mask.swapaxes(0, i)
|
||||
|
||||
Reference in New Issue
Block a user