Fixed relative threshold: you consider 10% and 20% of the max for range of

corresponding dtype.
This commit is contained in:
Marianne Corvellec
2013-06-28 18:51:33 -04:00
parent 94dc84f5b7
commit 8f40e05aab
+1 -1
View File
@@ -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]