From 0017fc16b9aa51a082e251cc3cabe3f732785c2c Mon Sep 17 00:00:00 2001 From: Sujoy Kumar Goswami Date: Sat, 13 Jun 2020 00:30:10 +0530 Subject: [PATCH] Update edge.py update threshold 't' --- mahotas/edge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mahotas/edge.py b/mahotas/edge.py index dd547409..4d943c28 100644 --- a/mahotas/edge.py +++ b/mahotas/edge.py @@ -123,7 +123,7 @@ def sujoy(img, kernel_nhood=0, just_filter=False): grad += grad_v if just_filter: return grad - t = 2*np.sqrt(grad.mean()) + t = np.sqrt(grad.mean()) return mh.regmax(grad)*(np.sqrt(grad)>t)