From 8bdc9f2ab48a6a7e4b668b167323c9011a519c01 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Mon, 16 Apr 2012 00:05:12 -0400 Subject: [PATCH] Rename for clarity "corner" is a relic from the original implementation in the harris filter. --- skimage/feature/peak.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/feature/peak.py b/skimage/feature/peak.py index fe7ed081..c904648e 100644 --- a/skimage/feature/peak.py +++ b/skimage/feature/peak.py @@ -54,9 +54,9 @@ def peak_local_max(image, min_distance=10, threshold='deprecated', msg = "`threshold` parameter deprecated; use `threshold_rel instead." warnings.warn(msg, DeprecationWarning) threshold_rel = threshold - # find top corner candidates above a threshold - corner_threshold = max(np.max(image.ravel()) * threshold_rel, threshold_abs) - image_t = (image > corner_threshold) * 1 + # find top peak candidates above a threshold + peak_threshold = max(np.max(image.ravel()) * threshold_rel, threshold_abs) + image_t = (image > peak_threshold) * 1 # get coordinates of peaks coordinates = np.transpose(image_t.nonzero())