mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 17:45:20 +08:00
DOC: Use convex_hull_image instead of convex_hull.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user