mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-31 12:41:20 +08:00
Use range instead of xrange
This commit is contained in:
@@ -131,7 +131,7 @@ def peak_local_max(image, min_distance=10, threshold_abs=0, threshold_rel=0.1,
|
||||
|
||||
if exclude_border:
|
||||
# zero out the image borders
|
||||
for i in xrange(image.ndim):
|
||||
for i in range(image.ndim):
|
||||
image = image.swapaxes(0, i)
|
||||
image[:min_distance] = 0
|
||||
image[-min_distance:] = 0
|
||||
|
||||
Reference in New Issue
Block a user