Wiener deconvolution explained

In mathematics, Wiener deconvolution is an application of the Wiener filter to the noise problems inherent in deconvolution. It works in the frequency domain, attempting to minimize the impact of deconvolved noise at frequencies which have a poor signal-to-noise ratio.

The Wiener deconvolution method has widespread use in image deconvolution applications, as the frequency spectrum of most visual images is fairly well behaved and may be estimated easily.

Wiener deconvolution is named after Norbert Wiener.

Definition

Given a system:

y(t)=(h*x)(t)+n(t)

where

*

denotes convolution and:

x(t)

is some original signal (unknown) at time

t

.

h(t)

is the known impulse response of a linear time-invariant system

n(t)

is some unknown additive noise, independent of

x(t)

y(t)

is our observed signal

Our goal is to find some

g(t)

so that we can estimate

x(t)

as follows:

\hat{x}(t)=(g*y)(t)

where

\hat{x}(t)

is an estimate of

x(t)

that minimizes the mean square error

\epsilon(t)=E\left|x(t)-\hat{x}(t)\right|2

,

with

E

denoting the expectation.The Wiener deconvolution filter provides such a

g(t)

. The filter is most easily described in the frequency domain:

G(f)=

H*(f)S(f)
|H(f)|2S(f)+N(f)

where:

G(f)

and

H(f)

are the Fourier transforms of

g(t)

and

h(t)

,

S(f)=E|X(f)|2

is the mean power spectral density of the original signal

x(t)

,

N(f)=E|V(f)|2

is the mean power spectral density of the noise

n(t)

,

X(f)

,

Y(f)

, and

V(f)

are the Fourier transforms of

x(t)

, and

y(t)

, and

n(t)

, respectively,

{}*

denotes complex conjugation.

The filtering operation may either be carried out in the time-domain, as above, or in the frequency domain:

\hat{X}(f)=G(f)Y(f)

and then performing an inverse Fourier transform on

\hat{X}(f)

to obtain

\hat{x}(t)

.

Note that in the case of images, the arguments

t

and

f

above become two-dimensional; however the result is the same.

Interpretation

The operation of the Wiener filter becomes apparent when the filter equation above is rewritten:

\begin{align} G(f)&=

1
H(f)

\left[

1
1+1/(|H(f)|2SNR(f))

\right] \end{align}

Here,

 1/H(f)

is the inverse of the original system,

SNR(f)=S(f)/N(f)

is the signal-to-noise ratio, and

|H(f)|2SNR(f)

is the ratio of the pure filtered signal to noise spectral density. When there is zero noise (i.e. infinite signal-to-noise), the term inside the square brackets equals 1, which means that the Wiener filter is simply the inverse of the system, as we might expect. However, as the noise at certain frequencies increases, the signal-to-noise ratio drops, so the term inside the square brackets also drops. This means that the Wiener filter attenuates frequencies according to their filtered signal-to-noise ratio.

The Wiener filter equation above requires us to know the spectral content of a typical image, and also that of the noise. Often, we do not have access to these exact quantities, but we may be in a situation where good estimates can be made. For instance, in the case of photographic images, the signal (the original image) typically has strong low frequencies and weak high frequencies, while in many cases the noise content will be relatively flat with frequency.

Derivation

As mentioned above, we want to produce an estimate of the original signal that minimizes the mean square error, which may be expressed:

\epsilon(f)=E\left|X(f)-\hat{X}(f)\right|2

.

The equivalence to the previous definition of

\epsilon

, can be derived using Plancherel theorem or Parseval's theorem for the Fourier transform.

If we substitute in the expression for

\hat{X}(f)

, the above can be rearranged to

\begin{align} \epsilon(f)&=E\left|X(f)-G(f)Y(f)\right|2\\ &=E\left|X(f)-G(f)\left[H(f)X(f)+V(f)\right]\right|2\\ &=E|\left[1-G(f)H(f)\right]X(f)-G(f)V(f)|2 \end{align}

If we expand the quadratic, we get the following:

\begin{align}\epsilon(f)&=[1-G(f)H(f)][1-G(f)H(f)]*E|X(f)|2\\ &{}-[1-G(f)H(f)]G*(f)E\{X(f)V*(f)\}\\ &{}-G(f)[1-G(f)H(f)]*E\{V(f)X*(f)\}\\ &{}+G(f)G*(f)E|V(f)|2 \end{align}

However, we are assuming that the noise is independent of the signal, therefore:

E\{X(f)V*(f)\}=E\{V(f)X*(f)\}=0

Substituting the power spectral densities

S(f)

and

N(f)

, we have:

\epsilon(f)=[1-G(f)H(f)][1-G(f)H(f)]*S(f)+G(f)G*(f)N(f)

To find the minimum error value, we calculate the Wirtinger derivative with respect to

G(f)

and set it equal to zero.

d\epsilon(f)
dG(f)

=0G*(f)N(f)-H(f)[1-G(f)H(f)]*S(f)=0

This final equality can be rearranged to give the Wiener filter.

See also

References

External links