Class DenoiseBayesShrink_F32

  • All Implemented Interfaces:
    DenoiseWavelet<boofcv.struct.image.GrayF32>

    public class DenoiseBayesShrink_F32
    extends SubbandShrink<boofcv.struct.image.GrayF32>

    Denoises images using an adaptive soft-threshold in each sub-band computed using Bayesian statistics.

    Wavelet coefficients are modified using a standard soft-thresholding technique. The threshold is computing using an adaptively for each sub-band, as follows:
    T = σ2/σX
    where σ is the noise standard deviation and σX is the signal standard deviation.

    S. Change, B. Yu, M. Vetterli, "Adaptive Wavelet Thresholding for Image Denoising and Compression" IEEE Tran. Image Processing, Vol 9, No. 9, Sept. 2000

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Number computeThreshold​(boofcv.struct.image.GrayF32 subband)
      Compute the threshold for the specified subband.
      void denoise​(boofcv.struct.image.GrayF32 transform, int numLevels)
      Removes noise from the multi-level wavelet transform.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DenoiseBayesShrink_F32

        public DenoiseBayesShrink_F32​(ShrinkThresholdRule<boofcv.struct.image.GrayF32> rule)
    • Method Detail

      • computeThreshold

        protected java.lang.Number computeThreshold​(boofcv.struct.image.GrayF32 subband)
        Description copied from class: SubbandShrink
        Compute the threshold for the specified subband.
        Specified by:
        computeThreshold in class SubbandShrink<boofcv.struct.image.GrayF32>
        Parameters:
        subband - Subband whose threshold is being computed.
        Returns:
      • denoise

        public void denoise​(boofcv.struct.image.GrayF32 transform,
                            int numLevels)
        Description copied from interface: DenoiseWavelet
        Removes noise from the multi-level wavelet transform.
        Parameters:
        transform - Transform of the original image.
        numLevels - NUmber of levels in the transform.