Package boofcv.alg.denoise.wavelet
Class DenoiseBayesShrink_F32
- java.lang.Object
-
- boofcv.alg.denoise.wavelet.SubbandShrink<boofcv.struct.image.GrayF32>
-
- boofcv.alg.denoise.wavelet.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
-
-
Field Summary
-
Fields inherited from class boofcv.alg.denoise.wavelet.SubbandShrink
rule
-
-
Constructor Summary
Constructors Constructor Description DenoiseBayesShrink_F32(ShrinkThresholdRule<boofcv.struct.image.GrayF32> rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.NumbercomputeThreshold(boofcv.struct.image.GrayF32 subband)Compute the threshold for the specified subband.voiddenoise(boofcv.struct.image.GrayF32 transform, int numLevels)Removes noise from the multi-level wavelet transform.-
Methods inherited from class boofcv.alg.denoise.wavelet.SubbandShrink
performShrinkage
-
-
-
-
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:SubbandShrinkCompute the threshold for the specified subband.- Specified by:
computeThresholdin classSubbandShrink<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:DenoiseWaveletRemoves noise from the multi-level wavelet transform.- Parameters:
transform- Transform of the original image.numLevels- NUmber of levels in the transform.
-
-