GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Discrete wavelet transform

The original image is high-pass filtered, yielding the three large images, each describing local changes in brightness (details) in the original image. It is then low-pass filtered and downscaled, yielding an approximation image; this image is high-pass filtered to produce the three smaller detail images, and low-pass filtered to produce the final approximation image in the upper-left. In numerical analysis and functional analysis, a discrete wavelet transform (DWT) is any wavelet transform for which the wavelets are discretely sampled. As with other wavelet transforms, a key advantage it has over Fourier transforms is temporal resolution: it captures both frequency and location information... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

. The original image is high-pass filtered, yielding the three large images, each describing local changes in brightness (details) in the original image. It is then low-pass filtered and downscaled, yielding an approximation image; this image is high-pass filtered to produce the three smaller detail images, and low-pass filtered to produce the final approximation image in the upper-left. ]] In numerical analysis and functional analysis, a discrete wavelet transform (DWT) is any wavelet transform for which the wavelets are discretely sampled. As with other wavelet transforms, a key advantage it has over Fourier transforms is temporal resolution: it captures both frequency and location information (location in time). y[n] = (x * g)[n] = \sum\limits_{k = - \infty }^\infty {x[k] g[n - k]} The signal is also decomposed simultaneously using a high-pass filter h . The outputs give the detail coefficients (from the high-pass filter) and approximation coefficients (from the low-pass). It is important that the two filters are related to each other and they are known as a quadrature mirror filter. However, since half the frequencies of the signal have now been removed, half the samples can be discarded according to Nyquist's rule. The filter output of the low-pass filter g in the diagram above is then subsampled by 2 and further processed by passing it again through a new low-pass filter g and a high- pass filter h with half the cut-off frequency of the previous one, i.e.: y_{\mathrm{low}} [n] = \sum\limits_{k = - \infty }^\infty {x[k] g[2 n - k]} y_{\mathrm{high}} [n] = \sum\limits_{k = - \infty }^\infty {x[k] h[2 n - k]} This decomposition has halved the time resolution since only half of each filter output characterises the signal. However, each output has half the frequency band of the input, so the frequency resolution has been doubled. With the subsampling operator \downarrow (y \downarrow k)[n] = y[k n] the above summation can be written more concisely. y_{\mathrm{low}} = (x*g)\downarrow 2 y_{\mathrm{high}} = (x*h)\downarrow 2 However computing a complete convolution x*g with subsequent downsampling would waste computation time. The Lifting scheme is an optimization where these two computations are interleaved. \psi_{j,k}(t)= \frac{1}{\sqrt{2^j}} \psi \left( \frac{t - k 2^j}{2^j} \right) where j is the scale parameter and k is the shift parameter, both of which are integers. Recall that the wavelet coefficient \gamma of a signal x(t) is the projection of x(t) onto a wavelet, and let x(t) be a signal of length 2^N . In the case of a child wavelet in the discrete family above, \gamma_{jk} = \int_{-\infty}^{\infty} x(t) \frac{1}{\sqrt{2^j}} \psi \left( \frac{t - k 2^j}{2^j} \right) dt Now fix j at a particular scale, so that \gamma_{jk} is a function of k only. In light of the above equation, \gamma_{jk} can be viewed as a convolution of x(t) with a dilated, reflected, and normalized version of the mother wavelet, h(t) = \frac{1}{\sqrt{2^j}} \psi \left( \frac{-t}{2^j} \right) , sampled at the points 1, 2^j, 2\cdot{2^j}, ..., 2^{N} . But this is precisely what the detail coefficients give at level j of the discrete wavelet transform. Therefore, for an appropriate choice of h[n] and g[n] , the detail coefficients of the filter bank correspond exactly to a wavelet coefficient of a discrete set of child wavelets for a given mother wavelet \psi(t) . As an example, consider the discrete Haar wavelet, whose mother wavelet is \psi = [1, -1] . Then the dilated, reflected, and normalized version of this wavelet is h[n] = \frac{1}{\sqrt{2}} [-1, 1] , which is, indeed, the highpass decomposition filter for the discrete Haar wavelet transform. T(N) = 2N + T\left( \frac N 2 \right) which leads to an O(N) time for the entire operation, as can be shown by a geometric series expansion of the above relation. As an example, the discrete Haar wavelet transform is linear, since in that case h[n] and g[n] are constant length 2. h[n] = \left[\frac{-\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right] g[n] = \left[\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right] The locality of wavelets, coupled with the O(N) complexity, guarantees that the transform can be computed online (on a streaming basis). This property is in sharp contrast to FFT, which requires access to the entire signal at once. It also applies to the multi-scale transform and also to the multi-dimensional transforms (e.g., 2-D DWT). public static int[] discreteHaarWaveletTransform(int[] input) { // This function assumes that input.length=2^n, n>1 int[] output = new int[input.length]; for (int length = input.length / 2; ; length = length / 2) { // length is the current length of the working area of the output array. // length starts at half of the array size and every iteration is halved until it is 1. for (int i = 0; i The figure on the right shows an example of applying the above code to compute the Haar wavelet coefficients on a sound waveform. This example highlights two key properties of the wavelet transform: Natural signals often have some degree of smoothness, which makes them sparse in the wavelet domain. There are far fewer significant components in the wavelet domain in this example than there are in the time domain, and most of the significant components are towards the coarser coefficients on the left. Hence, natural signals are compressible in the wavelet domain. The wavelet transform is a multiresolution, bandpass representation of a signal. This can be seen directly from the filterbank definition of the discrete wavelet transform given in this article. For a signal of length 2^N , the coefficients in the range [2^{N-j}, 2^{N-j+1}] represent a version of the original signal which is in the pass-band \left[ \frac{\pi}{2^j}, \frac{\pi}{2^{j-1}} \right] . This is why zooming in on these ranges of the wavelet coefficients looks so similar in structure to the original signal. Ranges which are closer to the left (larger j in the above notation), are coarser representations of the signal, while ranges to the right represent finer details. Following the decomposition of the image file, the next step is to determine threshold values for each level from 1 to N. Birgé-Massart strategy is a fairly common method for selecting these thresholds. Using this process individual thresholds are made for N = 10 levels. Applying these thresholds are the majority of the actual filtering of the signal. The final step is to reconstruct the image from the modified levels. This is accomplished using an inverse wavelet transform. The resulting image, with white Gaussian noise removed is shown below the original image. When filtering any form of data it is important to quantify the signal-to-noise-ratio of the result. In this case, the SNR of the noisy image in comparison to the original was 30.4958%, and the SNR of the denoised image is 32.5525%. The resulting improvement of the wavelet filtering is a SNR gain of 2.0567%. Choosing other wavelets, levels, and thresholding strategies can result in different types of filtering. In this example, white Gaussian noise was chosen to be removed. Although, with different thresholding, it could just as easily have been amplified. To illustrate the differences and similarities between the discrete wavelet transform with the discrete Fourier transform, consider the DWT and DFT of the following sequence: (1,0,0,0), a unit impulse. The DFT has orthogonal basis (DFT matrix): \begin{bmatrix} 1 & 1 & 1 & 1\\ 1 & -i & -1 & i\\ 1 & -1 & 1 & -1\\ 1 & i & -1 & -i \end{bmatrix} while the DWT with Haar wavelets for length 4 data has orthogonal basis in the rows of: \begin{bmatrix} 1 & 1 & 1 & 1\\ 1 & 1 & -1 & -1\\ 1 & -1 & 0 & 0\\ 0 & 0 & 1 & -1 \end{bmatrix} (To simplify notation, whole numbers are used, so the bases are orthogonal but not orthonormal.) Preliminary observations include: Sinusoidal waves differ only in their frequency. The first does not complete any cycles, the second completes one full cycle, the third completes two cycles, and the fourth completes three cycles (which is equivalent to completing one cycle in the opposite direction). Differences in phase can be represented by multiplying a given basis vector by a complex constant. Wavelets, by contrast, have both frequency and location. As before, the first completes zero cycles, and the second completes one cycle. However, the third and fourth both have the same frequency, twice that of the first. Rather than differing in frequency, they differ in location — the third is nonzero over the first two elements, and the fourth is nonzero over the second two elements. \begin{align} (1,0,0,0) &= \frac{1}{4}(1,1,1,1) + \frac{1}{4}(1,1,-1,-1) + \frac{1}{2}(1,-1,0,0) \qquad \text{Haar DWT}\\ (1,0,0,0) &= \frac{1}{4}(1,1,1,1) + \frac{1}{4}(1,i,-1,-i) + \frac{1}{4}(1,-1,1,-1) + \frac{1}{4}(1,-i,-1,i) \qquad \text{DFT} \end{align} The DWT demonstrates the localization: the (1,1,1,1) term gives the average signal value, the (1,1,–1,–1) places the signal in the left side of the domain, and the (1,–1,0,0) places it at the left side of the left side, and truncating at any stage yields a downsampled version of the signal: \begin{align} &\left(\frac{1}{4},\frac{1}{4},\frac{1}{4},\frac{1}{4}\right)\\ &\left(\frac{1}{2},\frac{1}{2},0,0\right)\qquad\text{2-term truncation}\\ &\left(1,0,0,0\right) \end{align} , showing the time domain artifacts (undershoot and ringing) of truncating a Fourier series.]] The DFT, by contrast, expresses the sequence by the interference of waves of various frequencies – thus truncating the series yields a low-pass filtered version of the series: \begin{align} &\left(\frac{1}{4},\frac{1}{4},\frac{1}{4},\frac{1}{4}\right)\\ &\left(\frac{3}{4},\frac{1}{4},-\frac{1}{4},\frac{1}{4}\right)\qquad\text{2-term truncation}\\ &\left(1,0,0,0\right) \end{align} Notably, the middle approximation (2-term) differs. From the frequency domain perspective, this is a better approximation, but from the time domain perspective it has drawbacks – it exhibits undershoot – one of the values is negative, though the original series is non-negative everywhere – and ringing, where the right side is non-zero, unlike in the wavelet transform. On the other hand, the Fourier approximation correctly shows a peak, and all points are within 1/4 of their correct value, though all points have error. The wavelet approximation, by contrast, places a peak on the left half, but has no peak at the first point, and while it is exactly correct for half the values (reflecting location), it has an error of 1/2 for the other values. This illustrates the kinds of trade-offs between these transforms, and how in some respects the DWT provides preferable behavior, particularly for the modeling of transients. Embed the two pseudorandom sequences with a gain factor α in the DCT-transformed 4x4 blocks of the selected DWT coefficient sets of the host image. Instead of embedding in all coefficients of the DCT block, it is applied only to the mid-band DCT coefficients. If X is denoted as the matrix of the mid-band coefficients of the DCT transformed block, then embedding is done with watermark bit 0, and X' is updated as X+∝*PN 0 ,watermarkbit=0 and done with watermark bit 1 and X' is updated as X+∝*PN 1 . Inverse DCT (IDCT) is done on each block after its mid-band coefficients have been modified to embed the watermark bits. To produce the watermarked host image, Perform the inverse DWT (IDWT) on the DWT-transformed image, including the modified coefficient sets. The multiplicative (or geometric) discrete wavelet transform is a variant that applies to an observation model {\bf y} = f { {\bf X} } involving interactions of a positive regular function f and a multiplicative independent positive noise X , with \mathbb{E} X = 1 . Denote {\cal W} , a wavelet transform. Since f { {\bf X} } = f + {f ({\bf X} -1)} , then the standard (additive) discrete wavelet transform {\cal W^+} is such that {\cal W^+} {\bf y} = {\cal W^+} f + {\cal W^+} {f ({\bf X} -1)}, where detail coefficients {\cal W^+} {f ({\bf X} -1)} cannot be considered as sparse in general, due to the contribution of f in the latter expression. In the multiplicative framework, the wavelet transform is such that {\cal W^\times} {\bf y} = \left({\cal W^\times} f\right) \times \left({\cal W^\times} { {\bf X}}\right). This 'embedding' of wavelets in a multiplicative algebra involves generalized multiplicative approximations and detail operators: For instance, in the case of the Haar wavelets, then up to the normalization coefficient \alpha , the standard {\cal W^+} approximations (arithmetic mean) c_{k} = \alpha(y_{k} + y_{k-1}) and details (arithmetic differences) d_{k} = \alpha(y_{k} - y_{k-1}) become respectively geometric mean approximations c_{k}^\ast = (y_{k} \times y_{k-1})^\alpha and geometric differences (details) d_{k}^\ast = \left(\frac{y_{k}}{y_{k-1}}\right)^\alpha when using {\cal W^\times} . libdwt, a cross-platform DWT library written in C Concise Introduction to Wavelets by René Puschinger de:Wavelet-Transformation#Diskrete Wavelet-Transformation fr:Ondelette#Transformée en ondelettes discrète

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Discrete wavelet transform". 1790742983. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377626411

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·