processing.filtering.hard_filter

pywi.processing.filtering.hard_filter.filter_planes(wavelet_planes, method='hard_filtering', thresholds=[0.0, 0.0], detect_only_positive_structures=False)[source]

Filter the wavelet planes.

The last plane (called residuals) is kept unmodified.

Parameters:
  • wavelet_planes (list of array_like) – The wavelet planes to filter, including the last residual plane.
  • method (str, optional) – The filtering method to use. So far, only the ‘hard_filtering’ and ‘ksigma_hard_filtering’ methods are implemented.
  • thresholds (list of float) – Thresholds used for the plane filtering.
  • detect_only_positive_structures (bool) – Detect only positive structures.
Returns:

Return a list containing the filtered wavelet planes.

Return type:

list