Fix peak detection algorithm.

Reverse sorted values so that max peak is checked first.
This commit is contained in:
Tony S Yu
2012-01-09 22:24:56 -05:00
parent fd0e88b986
commit 63f17344e5
+1 -1
View File
@@ -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)