rectangle

rectangle

skimage.morphology.rectangle(width, height, dtype=) [source]

Generates a flat, rectangular-shaped structuring element.

Every pixel in the rectangle generated for a given width and given height belongs to the neighborhood.

Parameters:

width : int

The width of the rectangle.

height : int

The height of the rectangle.

Returns:

selem : ndarray

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

Other Parameters:

dtype : data-type

The data type of the structuring element.

doc_scikit_image
2017-01-12 17:23:03
Comments
Leave a Comment

Please login to continue.