create_filter#

zrad.filtering.factory.create_filter(filtering_method, **kwargs) → BaseFilter[source]#

Create a filter from GUI or configuration-style parameters.

Direct use of concrete filter classes such as Mean or LoG is the recommended Python API. This helper is intended for dynamic workflows where the filter family is selected by name, for example from GUI controls or saved configuration files.

Parameters:
  • filtering_method ({"Mean", "Laplacian of Gaussian", "Riesz-transformed LoG", "Laws Kernels", "Gabor", "Wavelets", "Simoncelli"}) – Filter family to instantiate.

  • **kwargs – Constructor parameters for the selected filter. For separable wavelets, include dimensionality to choose between Wavelets2D and Wavelets3D. Riesz-transformed LoG accepts riesz_order and optional structure_tensor_sigma_mm; Simoncelli accepts an optional riesz_order.

Returns:

filter – Configured concrete filter instance.

Return type:

BaseFilter