Digital Signal Processing Using MATLAB and Wavelets

Chapter 9.5.3 - Down-Sampling and Up-Sampling with Daubechies 4

This is why the coefficients from the Daubechies four-coefficient wavelet, when used without the down-sampler and up-sampler, ended up with $y[n] = 2 x[n-3]$. If the down-samplers and up-samplers are included, then the 2 term drops out. This is shown later. First, we will start, as usual, with Figure 9.12, an updated filter bank for four coefficients in each filter.

Figure 9.12: A filter bank with four taps per filter.

Signals $w[n]$ and $z[n]$ are just as they were earlier:

\begin{displaymath}w[n] = ax[n] + bx[n-1] + cx[n-2] + dx[n-3] \end{displaymath}

\begin{displaymath}z[n] = dx[n] - cx[n-1] + bx[n-2] - ax[n-3] . \end{displaymath}

Signals $w[n-k]$ and $z[n-k]$, are again found by replacing $n$ with $n-k$:

\begin{displaymath}w[n-k] = ax[n-k] + bx[n-k-1] + cx[n-k-2] + dx[n-k-3] \end{displaymath}

\begin{displaymath}z[n-k] = dx[n-k] - cx[n-k-1] + bx[n-k-2] - ax[n-k-3] . \end{displaymath}

Looking at $w_d[n]$ and $z_d[n]$, we again have to be careful about whether $n$ is even or odd. When $n$ is odd, there is no value for $w_d[n]$ or $z_d[n]$!

\begin{displaymath}w_d[n] = w[n], \;\; n\;\mathrm{is\;even} \end{displaymath}

\begin{displaymath}z_d[n] = z[n], \;\; n\;\mathrm{is\;even} \end{displaymath}

Signals $w_u[n]$ and $z_u[n]$ must be treated with equal caution:

\begin{displaymath}w_u[n] = w_d[n] = w[n], \;\; n\;\mathrm{is\;even} \end{displaymath}

\begin{displaymath}w_u[n] = 0, \;\; n\;\mathrm{is\;odd} \end{displaymath}

\begin{displaymath}z_u[n] = z_d[n] = z[n], \;\; n\;\mathrm{is\;even} \end{displaymath}

\begin{displaymath}z_u[n] = 0, \;\; n\; \mathrm{is \; odd.} \end{displaymath}

We have values for $w_u[n]$ and $z_u[n]$ for even and odd values of n. So when using these signals for $n$ and $n-1$, one of indices must be even, while the other is odd. Likewise, if $n$ is even, then so is $n-2$, $n-4$, etc. The final signals of each channel are:

\begin{displaymath}w_f[n] = d w_u[n] + c w_u[n-1] + b w_u[n-2] + a w_u[n-3] \end{displaymath}

\begin{displaymath}w_f[n] = d w[n] + 0 + b w[n-2] + 0, \;\; n\; \mathrm{is \; even} \end{displaymath}

\begin{displaymath}w_f[n] = 0 + c w[n-1] + 0 + a w[n-3], \;\; n\; \mathrm{is \; odd} \end{displaymath}

\begin{displaymath}z_f[n] = -a z_u[n] + b z_u[n-1] - c z_u[n-2] + d z_u[n-3] \end{displaymath}

\begin{displaymath}z_f[n] = -a z[n] + 0 - c z[n-2] + 0, \;\; n\; \mathrm{is \; even} \end{displaymath}

\begin{displaymath}z_f[n] = 0 + b z[n-1] + 0 + d z[n-3], \;\; n\; \mathrm{is \; odd.} \end{displaymath}

Keeping track of whether index $n$ is even or odd, we can find $y[n] = w_f[n] + z_f[n]$:

\begin{displaymath}y[n] = d w[n] + b w[n-2] - a z[n] - c z[n-2], \;\; n\; \mathrm{is \; even} \end{displaymath}

\begin{displaymath}y[n] = c w[n-1] + a w[n-3] + b z[n-1] + d z[n-3], \;\; n\; \mathrm{is \; odd.} \end{displaymath}

These expressions can be expanded, to put the output $y[n]$ in terms of the original input $x[n]$:

\begin{eqnarray*}
y[n] &=& d(a x[n] + b x[n-1] + c x[n-2] + d x[n-3]) \& & ...
...- c x[n-4] + b x[n-5] - a x[n-6]), \;\; n\; \mathrm{is \; odd.}
\end{eqnarray*}


Simplifying:

\begin{eqnarray*}
y[n] &=& ad x[n] + bd x[n-1] + cd x[n-2] + dd x[n-3] \& &...
...cd x[n-4] + bd x[n-5] - ad x[n-6], \;\; n\; \mathrm{is \; odd.}
\end{eqnarray*}


Eliminating terms that cancel each other out, and simplifying further:

\begin{eqnarray*}
y[n] &=& ac x[n-1] + bd x[n-1] \& & + aa x[n-3] + bb x[n-...
... \& & + ac x[n-5] + bd x[n-5], \;\; n\; \mathrm{is \; odd.}
\end{eqnarray*}


In this final step, we notice two things. First, the expressions are the same regardless of whether $n$ is even or odd, so now we can represent it as a single statement:

\begin{eqnarray*}
y[n] &=& aa x[n-3] + bb x[n-3] + cc x[n-3] + dd x[n-3] \& & + ac x[n-1] + bd x[n-1] + ac x[n-5] + bd x[n-5] .
\end{eqnarray*}

Second, we see that we have $x[n-1]$ and $x[n-5]$ terms again, but that these can be eliminated if we require $ac = -bd$. Assuming this is the case, we have our final expression for $y[n]$:

\begin{displaymath}y[n] = (aa + bb + cc + dd) x[n-3] . \end{displaymath}

If we compare this result to the earlier case (without down-sampling) we see that the difference is a factor of 2. This explains why the sum of the squares of the Daubechies coefficients, $(aa + bb + cc + dd)$ equals 1. When that is the case, $y[n] = x[n-3]$, or $y[n]$ is simply a copy of $x[n]$, delayed by 3 time units.

< Previous Excerpt Next Excerpt >
Purchase This Book

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: DSP Boards
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.