{ } Raw JSON

bundles / skimage latest / skimage / morphology / convex_hull / convex_hull_image

function

skimage.morphology.convex_hull:convex_hull_image

source: /dev/scikit-image/src/skimage/morphology/convex_hull.py :74

Signature

def   convex_hull_image ( image offset_coordinates = True tolerance = 1e-10 include_borders = True )

Summary

Compute the convex hull image of a binary image.

Extended Summary

The convex hull is the set of pixels included in the smallest convex polygon that surround all white pixels in the input image.

Parameters

image : array

Binary input image. This array is cast to bool before processing.

offset_coordinates : bool, optional

If True, a pixel at coordinate, e.g., (4, 7) will be represented by coordinates (3.5, 7), (4.5, 7), (4, 6.5), and (4, 7.5). This adds some "extent" to a pixel when computing the hull.

tolerance : float, optional

Tolerance when determining whether a point is inside the hull. Due to numerical floating point errors, a tolerance of 0 can result in some points erroneously being classified as being outside the hull.

include_borders : bool, optional

If False, vertices/edges are excluded from the final hull mask.

Returns

hull : (M, N) array of bool

Binary image with pixels in convex hull set to True.

Aliases

  • skimage.morphology.convex_hull_image