somewhat sensible default values for canny edges

This commit is contained in:
Andreas Mueller
2011-09-26 17:22:13 +02:00
parent 24d771d333
commit fcf4c41bd6
+1 -1
View File
@@ -50,7 +50,7 @@ def smooth_with_function_and_mask(image, function, mask):
return output_image
def canny(image, sigma, low_threshold, high_threshold, mask=None):
def canny(image, sigma=1., low_threshold=.1, high_threshold=.2, mask=None):
'''Edge filter an image using the Canny algorithm.
Parameters