tidy3d.plugins.autograd.invdes.make_filter

Contents

tidy3d.plugins.autograd.invdes.make_filter#

class make_filter[source]#

Bases:

Create a filter function based on the specified kernel type and size.

Parameters:
  • filter_type (KernelType) – The type of kernel to create (circular or conic).

  • size (Union[int, Tuple[int, ...]]) – The size of the kernel in pixels for each dimension. Can be a scalar or a tuple.

  • normalize (bool, optional) – Whether to normalize the kernel so that it sums to 1. Default is True.

  • padding (PadMode, optional) – The padding mode to use. Default is “reflect”.

Returns:

A function that applies the created filter to an input array.

Return type:

function

Inherited Common Usage