ArticleslgStudy

science

Discrete wavelet transform

Discrete wavelet transform is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Discrete wavelet transform rather than just read about it. In short: 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).

Discrete wavelet transform — main illustration
Discrete wavelet transform — illustration

Key takeaways

  • Discrete wavelet transform belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Discrete wavelet transform to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Discrete wavelet transform from memory before moving on to harder problems.

Reference excerpt

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).

Definition

One level of the transform The DWT of a signal x is calculated by passing it through a series of filters. First the samples are passed through a low-pass filter with impulse response g resulting in a convolution of the two:

y[n]=(x∗g)[n]=∑k=−∞∞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.:

ylow[n]=∑k=−∞∞x[k]g[2n−k] yhigh[n]=∑k=−∞∞x[k]h[2n−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 ↓

(y↓k)[n]=y[kn] the above summation can be written more concisely.

ylow=(x∗g)↓2 yhigh=(x∗h)↓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.

Cascading and filter banks This decomposition is repeated to further increase the frequency resolution and the approximation coefficients decomposed with high- and low-pass filters and then down-sampled. This is represented as a binary tree with nodes representing a sub-space with a different time-frequency localisation. The tree is known as a filter bank.

At each level in the above diagram the signal is decomposed into low and high frequencies. Due to the decomposition process the input signal must be a multiple of 2n where n is the number of levels. For example a signal with 32 samples, frequency range 0 to fn and 3 levels of decomposition, 4 output scales are produced:

Relationship to the mother wavelet The filterbank implementation of wavelets can be interpreted as computing the wavelet coefficients of a discrete set of child wavelets for a given mother wavelet ψ(t). In the case of the discrete wavelet transform, the mother wavelet is shifted and scaled by powers of two ψj,k(t)=12jψ(t−k2j2j) where j is the scale parameter and k is the shift parameter, both of which are integers. Recall that the wavelet coefficient γ of a signal x(t) is the projection of x(t) onto a wavelet, and let x(t) be a signal of length 2N. In the case of a child wavelet in the discrete family above, γjk=∫−∞∞x(t)12jψ(t−k2j2j)dt Now fix j at a particular scale, so that γjk is a function of k only. In light of the above equation, γjk can be viewed as a convolution of x(t) with a dilated, reflected, and normalized version of the mother wavelet, h(t)=12jψ(−t2j), sampled at the points 1,2j,2⋅2j,...,2N. 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 ψ(t). As an example, consider the discrete Haar wavelet, whose mother wavelet is ψ=[1,−1]. Then the dilated, reflected, and normalized version of this wavelet is h[n]=12[−1,1], which is, indeed, the highpass decomposition filter for the discrete Haar wavelet transform.

Time complexity The filterbank implementation of the Discrete Wavelet Transform takes only O(N) in certain cases, as compared to O(N log N) for the fast Fourier transform. Note that if g[n] and h[n] are both a constant length (i.e. their length is independent of N), then x∗h and x∗g each take O(N) time. The wavelet filterbank does each of these two O(N) convolutions, then splits the signal into two branches of size N/2. But it only recursively splits the upper branch convolved with g[n] (as contrasted with the FFT, which recursively splits both the upper branch and the lower branch). This leads to the following recurrence relation

T(N)=2N+T(N2) 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]=[−22,22]g[n]=[22,22] 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).

Examples

Haar wavelets

The first DWT was invented by Hungarian mathematician Alfréd Haar. For an input represented by a list of 2n numbers, the Haar wavelet transform may be considered to pair up input values, storing the difference and passing the sum. This process is repeated recursively, pairing up the sums to prove the next scale, which leads to 2n−1 differences and a final sum.

Daubechies wavelets

The most commonly used set of discrete wavelet transforms was formulated by the Belgian mathematician Ingrid Daubechies in 1988. This formulation is based on the use of recurrence relations to generate progressively finer discrete samplings of an implicit mother wavelet function; each resolution is twice that of the previous scale. In her seminal paper, Daubechies derives a family of wavelets, the first of which is the Haar wavelet. Interest in this field has exploded since then, and many variations of Daubechies' original wavelets were developed.

The dual-tree complex wavelet transform (DCWT)

… excerpt ends here. Continue reading the full article.

Illustrations

Discrete wavelet transform: An example of the 2D discrete wavelet transform that is used in JPEG2000. 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.[clarification needed]
An example of the 2D discrete wavelet transform that is used in JPEG2000. 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.[clarification needed]
Discrete wavelet transform: Block diagram of filter analysis
Block diagram of filter analysis
Discrete wavelet transform: A 3 level filter bank
A 3 level filter bank
Discrete wavelet transform: Frequency domain representation of the DWT
Frequency domain representation of the DWT
Discrete wavelet transform: An example of computing the discrete Haar wavelet coefficients for a sound signal of someone saying "I Love Wavelets."  The original waveform is shown in blue in the upper left, and the wavelet coefficients are shown in black in the upper right.  Along the bottom are shown three zoomed-in regions of the wavelet coefficients for different ranges.
An example of computing the discrete Haar wavelet coefficients for a sound signal of someone saying "I Love Wavelets." The original waveform is shown in blue in the upper left, and the wavelet coefficients are shown in black in the upper right. Along the bottom are shown three zoomed-in regions of the wavelet coefficients for different ranges.

Worked examples

Example 1 — a first encounter with Discrete wavelet transform

Start with the simplest possible case. Write down what Discrete wavelet transform claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Discrete wavelet transform before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Discrete wavelet transform ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Discrete wavelet transform

In research
Discrete wavelet transform appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Discrete wavelet transform in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Discrete wavelet transform is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital signal processing, Discrete transforms, Numerical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Discrete wavelet transform outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Discrete wavelet transform” →

How to study Discrete wavelet transform in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Discrete wavelet transform means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Discrete wavelet transform out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Discrete wavelet transform in simple terms?

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…

Why does Discrete wavelet transform matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Discrete wavelet transform?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Discrete wavelet transform.

Tags

  • Digital signal processing
  • Discrete transforms
  • Numerical analysis
  • Wavelets

Keep exploring