Skip to main content

wavelet_denoise

Function wavelet_denoise 

Source
pub fn wavelet_denoise<T>(
    image: &ArrayBase<ViewRepr<&T>, Dim<[usize; 2]>>,
    wavelet: &WaveletFilter<T>,
    threshold: T,
    levels: usize,
    mode: BorderMode,
) -> Result<ArrayBase<OwnedRepr<T>, Dim<[usize; 2]>>, NdimageError>
where T: Float + FromPrimitive + Debug + Clone + Send + Sync + 'static,
Expand description

Wavelet-based denoising using soft thresholding

This function performs denoising using the following steps:

  1. Multi-level wavelet decomposition
  2. Soft thresholding of detail coefficients
  3. Wavelet reconstruction