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
MeanorLoGis 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
dimensionalityto choose betweenWavelets2DandWavelets3D.Riesz-transformed LoGacceptsriesz_orderand optionalstructure_tensor_sigma_mm;Simoncelliaccepts an optionalriesz_order.
- Returns:
filter – Configured concrete filter instance.
- Return type:
BaseFilter