skimage 0.17.2

Other ParametersParametersReturnsBackRef
square(width, dtype=<class 'numpy.uint8'>)

Every pixel along the perimeter has a chessboard distance no greater than radius (radius=floor(width/2)) pixels.

Other Parameters

dtype : data-type

The data type of the structuring element.

Parameters

width : int

The width and height of the square.

Returns

selem : ndarray

A structuring element consisting only of ones, i.e. every pixel belongs to the neighborhood.

Generates a flat, square-shaped structuring element.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.morphology.grey.opening skimage.morphology.grey.white_tophat skimage.filters.rank.bilateral.pop_bilateral skimage.morphology.grey.dilation skimage.filters.rank.generic.pop skimage.morphology.grey.erosion skimage.morphology.grey.black_tophat skimage.filters.rank.generic.threshold skimage.filters.rank.generic.sum skimage.morphology.grey.closing

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/morphology/selem.py#6
type: <class 'function'>
Commit: