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