From fdbdbfe108813b6978e7f5319d029f4d1be80a65 Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Sun, 28 Jul 2013 14:13:09 +0530 Subject: [PATCH] Correcting the definition of Ratio of Principal Curvatures --- 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 a38edf04..c5d81373 100644 --- a/skimage/feature/censure.py +++ b/skimage/feature/censure.py @@ -69,7 +69,7 @@ def _suppress_line(response, sigma, rpc_threshold): detA = Axx * Ayy - Axy**2 traceA = Axx + Ayy # ratio of principal curvatures - rpc = traceA / (detA + 0.001) + rpc = traceA**2 / (detA + 0.001) response[rpc > rpc_threshold] = 0 return response