DOC: Use convex_hull_image instead of convex_hull.

This commit is contained in:
Stefan van der Walt
2011-11-30 09:55:26 -08:00
parent 2db1b8367c
commit 4aace26f2a
+2 -2
View File
@@ -17,7 +17,7 @@ A good overview of the algorithm is given on `Steve Eddin's blog
import numpy as np
import matplotlib.pyplot as plt
from skimage.morphology import convex_hull
from skimage.morphology import convex_hull_image
image = np.array(
[[0, 0, 0, 0, 0, 0, 0, 0, 0],
@@ -27,7 +27,7 @@ image = np.array(
[0, 1, 0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=float)
chull = convex_hull(image)
chull = convex_hull_image(image)
image[chull] += 1.7
image -= -1.7