ps_round#

ps_round(r, ndim, smooth=True)[source]#

Creates round structuring element with the given radius and dimensionality

Parameters:
  • r (scalar) – The desired radius of the structuring element

  • ndim (int) – The dimensionality of the element, either 2 or 3.

  • smooth (boolean) – Indicates whether the faces of the sphere should have the little nibs (True) or not (False, default)

Returns:

strel – A 3D numpy array of the structuring element

Return type:

ndarray

Examples

Click here to view online example.