ps_disk#

ps_disk(r, smooth=True)[source]#

Creates circular disk structuring element for morphological operations

Parameters:
  • r (float or int) – The desired radius of the structuring element

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

Returns:

disk – A 2D numpy bool array of the structring element

Return type:

ndarray

Examples

Click here to view online example.