ps_ball

ps_ball(r, smooth=True)[source]

Creates spherical ball structuring element for morphological operations

Parameters
  • r (scalar) – 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

ball – A 3D numpy array of the structuring element

Return type

3D-array

Examples

Click here to view online example.