From 25f89eeaa74cf7d87daec27ecab271a312a907d0 Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Sun, 28 Jul 2013 13:52:07 +0530 Subject: [PATCH] Correcting the expression of response in censure_keypoints() --- skimage/feature/censure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/feature/censure.py b/skimage/feature/censure.py index cd34e010..a38edf04 100644 --- a/skimage/feature/censure.py +++ b/skimage/feature/censure.py @@ -95,7 +95,7 @@ def censure_keypoints(image, mode='DoB', no_of_scales=7, threshold=0.03, rpc_thr # Suppressing minimas and maximas weaker than threshold minimas[np.abs(minimas) < threshold] = 0 maximas[np.abs(maximas) < threshold] = 0 - response = maximas + np.abs(minimas) + response = maximas + minimas for i in xrange(1, no_of_scales - 1): response[:, :, i] = _suppress_line(response[:, :, i], (1 + i / 3.0), rpc_threshold)