fdtdx.circular_brush#
- fdtdx.circular_brush(diameter, size=None)[source]#
Creates a circular binary mask/brush for morphological operations.
- Parameters:
diameter (float) – Diameter of the circle in grid units.
size (int | None, optional) – Optional size of the output array. If None, uses ceil(diameter) rounded up to next odd number.
- Returns:
Binary array containing a circular mask where True indicates points within the circle diameter.
- Return type:
jax.Array