Modified a few docstrings that made doctesting fail

This commit is contained in:
emmanuelle
2014-12-07 16:58:36 +01:00
parent f82243904f
commit 873a2bab4f
4 changed files with 11 additions and 10 deletions
+3 -3
View File
@@ -109,15 +109,15 @@ def canny(image, sigma=1., low_threshold=None, high_threshold=None, mask=None):
Examples
--------
>>> from skimage import filters
>>> from skimage import feature
>>> # Generate noisy image of a square
>>> im = np.zeros((256, 256))
>>> im[64:-64, 64:-64] = 1
>>> im += 0.2 * np.random.rand(*im.shape)
>>> # First trial with the Canny filter, with the default smoothing
>>> edges1 = filter.canny(im)
>>> edges1 = feature.canny(im)
>>> # Increase the smoothing for better results
>>> edges2 = filter.canny(im, sigma=3)
>>> edges2 = feature.canny(im, sigma=3)
"""
#