tidy3d.plugins.autograd.functions.grey_dilation

Contents

tidy3d.plugins.autograd.functions.grey_dilation#

class grey_dilation[source]#

Bases:

Perform grey dilation on an array.

Parameters:
  • array (NDArray) – The input array to perform grey dilation on.

  • size (Union[Union[int, Tuple[int, int]], None] = None) – The size of the structuring element. If None, structure must be provided.

  • structure (Union[NDArray, None] = None) – The structuring element. If None, size must be provided.

  • mode (PaddingType = "reflect") – The padding mode to use.

  • maxval (float = 1e4) – Value to assume for infinite elements in the kernel.

Returns:

The result of the grey dilation operation.

Return type:

NDArray

Raises:

ValueError – If both size and structure are None.

Inherited Common Usage