From 4aace26f2ae9c325b0e637b5453683fb2d72c3a9 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 30 Nov 2011 09:55:26 -0800 Subject: [PATCH] DOC: Use convex_hull_image instead of convex_hull. --- doc/examples/plot_convex_hull.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/plot_convex_hull.py b/doc/examples/plot_convex_hull.py index 8308bd90..5a577c84 100644 --- a/doc/examples/plot_convex_hull.py +++ b/doc/examples/plot_convex_hull.py @@ -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