tidy3d.plugins.autograd.functions.grey_closing

Contents

tidy3d.plugins.autograd.functions.grey_closing#

class grey_closing[source]#

Bases:

Perform grey closing on an array.

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

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

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

  • mode (_pad_modes, optional) – The padding mode to use. Default is β€œreflect”.

  • maxval (float, optional) – Value to assume for infinite elements in the kernel. Default is 1e4.

Returns:

The result of the grey closing operation.

Return type:

NDArray

Inherited Common Usage