From 8f40e05aab3850bcba6ff3f92c4b532cef52fb2a Mon Sep 17 00:00:00 2001 From: Marianne Corvellec Date: Fri, 28 Jun 2013 18:51:33 -0400 Subject: [PATCH] Fixed relative threshold: you consider 10% and 20% of the max for range of corresponding dtype. --- skimage/filter/_canny.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/filter/_canny.py b/skimage/filter/_canny.py index cd676eaf..13731ac6 100644 --- a/skimage/filter/_canny.py +++ b/skimage/filter/_canny.py @@ -158,7 +158,7 @@ def canny(image, sigma=1., low_threshold=None, high_threshold=None, mask=None): raise TypeError("The input 'image' must be a two-dimensional array.") if low_threshold is None: - low_threshold = 0.1 * dtype_limits(image)[0] + low_threshold = 0.1 * dtype_limits(image)[1] if high_threshold is None: high_threshold = 0.2 * dtype_limits(image)[1]