How to gain hard and soft threshold in discrete wavelet transform by integer samples
I gained samples of audio signal that have integer representation. I want to take dwt from samples and destroy them, by selected threshold. My problem is threshold choice.
Solution
You must perform the following steps:
Calculate the forward DWT, with any reasonable wavelet (say, CDF 5/3 or CDF 9/7) and either with real numbers or integers.
Estimate the noise variance σ2 from the finest wavelet coefficients d1 using .
Note that this estimation is valid for an additive noise with the normal (Gaussian) distribution.
Determine the noise threshold as ,
where the N is the length of the signal.
Perform the hard or soft thresholding using the estimated threshold.
Calculate the inverse DWT using the thresholded coefficients.
References
Donoho, D. L.; Johnstone, I. M.: Ideal Spatial Adaptation by Wavelet Shrinkage. Biometrika, vol. 81, no. 3, 1994, pp. 425–455.