mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 11:01:06 +08:00
Fix peak detection algorithm.
Reverse sorted values so that max peak is checked first.
This commit is contained in:
@@ -103,7 +103,7 @@ def harris(image, min_distance=10, threshold=0.1, eps=1e-6,
|
||||
candidate_values = harrisim[candidates]
|
||||
|
||||
# sort candidates
|
||||
index = np.argsort(candidate_values)
|
||||
index = np.argsort(candidate_values)[::-1]
|
||||
|
||||
# store allowed point locations in array
|
||||
allowed_locations = np.zeros(harrisim.shape)
|
||||
|
||||
Reference in New Issue
Block a user