{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / morphology / footprints / star

function

skimage.morphology.footprints:star

source: /dev/scikit-image/src/skimage/morphology/footprints.py :978

Signature

def   star ( a dtype = <class 'numpy.uint8'> )

Summary

Generates a star shaped footprint.

Extended Summary

Start has 8 vertices and is an overlap of square of size 2*a + 1 with its 45 degree rotated version. The slanted sides are 45 or 135 degrees to the horizontal axis.

Parameters

a : int

Parameter deciding the size of the star structural element. The side of the square array returned is 2*a + 1 + 2*floor(a / 2).

Returns

footprint : ndarray

The footprint where elements of the neighborhood are 1 and 0 otherwise.

Other Parameters

dtype : dtype-like, optional

The data type of the footprint.

Aliases

  • skimage.morphology.star