Module iaf.filter

Filters and functions.

Functions

def std_filter(img: numpy.ndarray, support: int = 3) ‑> numpy.ndarray

Perform 2D standard-deviation filtering.

Parameters

img : np.ndarray
Image to be processed
support : int
Defines the kernel size ([support, support]) (Optional, default = 3)

Returns

filt : np.ndarray
Filtered image.
def var_filter(img: numpy.ndarray, support: int = 3) ‑> numpy.ndarray

Perform 2D variance filtering.

Parameters

img : np.ndarray
Image to be processed
support : int
Defines the kernel size ([support, support]) (Optional, default = 3)

Returns

filt : np.ndarray
Filtered image.