bundles / skimage latest / 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: intParameter 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: ndarrayThe footprint where elements of the neighborhood are 1 and 0 otherwise.
Other Parameters
dtype: dtype-like, optionalThe data type of the footprint.
Aliases
-
skimage.morphology.star