Fix watershed doctest

This commit is contained in:
Johannes Schönberger
2013-11-03 09:31:54 +01:00
parent c7fbd3282b
commit facc8f5c71
+2 -1
View File
@@ -118,7 +118,8 @@ def watershed(image, markers, connectivity=None, offset=None, mask=None):
>>> distance = ndimage.distance_transform_edt(image)
>>> from skimage.feature import peak_local_max
>>> local_maxi = peak_local_max(distance, labels=image,
... footprint=np.ones((3, 3)))
... footprint=np.ones((3, 3)),
... indices=False)
>>> markers = ndimage.label(local_maxi)[0]
>>> labels = watershed(-distance, markers, mask=image)