iaf.filter

Filters and functions.

iaf.filter.std_filter(img: ndarray, support: int = 3) ndarray[source]

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 – Filtered image.

Return type:

np.ndarray

iaf.filter.var_filter(img: ndarray, support: int = 3) ndarray[source]

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 – Filtered image.

Return type:

np.ndarray