tidy3d.plugins.autograd.invdes.filters.AbstractFilter#
- class AbstractFilter[source]#
Bases:
Tidy3dBaseModel,ABCAn abstract class for creating and applying convolution filters.
- Parameters:
kernel_size (Union[PositiveInt, tuple[PositiveInt, ...]]) – Size of the kernel in pixels for each dimension.
normalize (bool = True) – Whether to normalize the kernel so that it sums to 1.
padding (Literal['constant', 'edge', 'reflect', 'symmetric', 'wrap'] = reflect) – The padding mode to use.
Attributes
Methods
from_radius_dl(radius, dl, **kwargs)Create a filter from radius and grid spacing.
get_kernel(size_px, normalize)Get the kernel for the filter.
- kernel_size#
- normalize#
- padding#