Windowing is a process where an index-limited sequence has its maximum energy concentrated in a finite frequency interval. This can be extended to an N-dimension where the N-D window has the limited support and maximum concentration of energy in a separable or non-separable N-D passband. The design of an N-dimensional window particularly a 2-D window finds applications in various fields such as spectral estimation of multidimensional signals, design of circularly symmetric and quadrantally symmetric non-recursive 2D filters,[1] design of optimal convolution functions, image enhancement so as to reduce the effects of data-dependent processing artifacts, optical apodization and antenna array design.[2]
Due to the various applications of multi-dimensional signal processing, the various design methodologies of 2-D windows is of critical importance in order to facilitate these applications mentioned above, respectively.
Consider a two-dimensional window function (or window array)
w(n1,n2)
W(w1,w2)
i(n1,n2)
I(w1,w2)
h(n1,n2)
H(w1,w2)
I(w1,w2)
h(n1,n2)
i(n1,n2)
h(n1,n2)=i(n1,n2)w(n1,n2)
and in the Fourier domain
H(w1,w2)=
1 | |
(2\pi)2 |
[I(w1,w2)**W(w1,w2)]
The problem is to choose a window function with an appropriate shape such that
H(w1,w2)
I(w1,w2)
I(w1,w2)
H(w1,w2)
There are four approaches for generating 2-D windows using a one-dimensional window as a prototype.[3]
Approach I
One of the methods of deriving the 2-D window is from the outer product of two 1-D windows, i.e.,
w(n1,n2)=w1(n1)w2(n2).
w[n]= \left\{ \begin{matrix}
| ||||||||||
\right)} |
{I0(\pi\alpha)}, &0\leqn\leqN-1\ \\ 0&otherwise\\ \end{matrix} \right.
then the corresponding 2-D function is given by
w(n1,n2)=\left\{\begin{matrix}
| ||||||||||
\right)I |
0\left(\alpha\sqrt{1-(
n2 | |
a |
2(\alpha)}, | |
) | |
0 |
&|n1|\leqslanta,|n2|\leqslanta\ 0 &otherwise\ \end{matrix}\right.
where:
r=
2} | |
\sqrt{n | |
2 |
The Fourier transform of
w(n1,n2)
w1(n1)andw2(n2)
W(w1,w2)=W1(w1)W2(w2)
Approach II
Another method of extending the 1-D window design to a 2-D design is by sampling a circularly rotated 1-D continuous window function. A function is said to possess circular symmetry if it can be written as a function of its radius, independent of
\theta
f(r,\theta)=f(r).
If w(n) denotes a good 1-D even symmetric window then the corresponding 2-D window function is
w(n1,n2)=
2}\right) | |
w\left(\sqrt{n | |
2 |
for
2}\right| | |
\left|\sqrt{n | |
2 |
\leqslanta
(where
a
w(n1,n2)=0for\left|
2} | |
\sqrt{n | |
2 |
\right|>a
The transformation of the Fourier transform of the window function in rectangular co-ordinates to polar co-ordinates results in a Fourier–Bessel transform expression which is called as Hankel transform. Hence the Hankel transform is used to compute the Fourier transform of the 2-D window functions.
If this approach is used to find the 2-D window from the 1-D window function then their Fourier transforms have the relation
1 | |
2\pi |
H(w1,w2)**W(w1,w2)=H(w)*W(w)
where:
H(w)= \left\{ \begin{matrix} 1, &w\geq0\\ 0,&w<0\\ \end{matrix} \right.
and
H(w1,w2)= \left\{ \begin{matrix} 1, &w1\geq0andallw2\\ 0,&w1<0andallw2 \end{matrix} \right.
w(n1,n2)=\left\{\begin{matrix}
| ||||||||||||||||
a2 |
This is the most widely used approach to design the 2-D windows.
2-D filter design by windowing using window formulations obtained from the above two approaches will result in the same filter order. This results in an advantage for the second approach since its circular region of support has fewer non-zero samples than the square region of support obtained from the first approach which in turn results in computational savings due to reduced number of coefficients of the 2-D filter. But the disadvantage of this approach is that the frequency characteristics of the 1-D window are not well preserved in 2-D cases by this rotation method. It was also found that the mainlobe width and sidelobe level of the 2-D windows are not as well behaved and predictable as their 1-D prototypes. While designing a 2-D window there are two features that have to be considered for the rotation. Firstly, the 1-D window is only defined for integer values of
n
2} | |
\sqrt{n | |
2 |
w(n1,n2)
2}\right). | |
w\left(\sqrt{n | |
2 |
Approach III
Another approach is to obtain 2-D windows by rotating the frequency response of a 1-D window in Fourier space followed by the inverse Fourier transform.[6] In approach II, the spatial-domain signal is rotated whereas in this approach the 1-D window is rotated in a different domain (e.g., frequency-signal).
Thus the Fourier transform of the 2-D window function is given by
W2(w1,w2)=W1\left(\sqrt{(w
2)}\right). | |
2 |
The 2-D window function
w2(n1,n2)
W2(w1,w2)
Another way to show the type-preserving rotation is when the relation
W1(w1)=W2(w1,w2) at w2=0
(w1,w2)
w1(n)=
infty | |
\int | |
-infty |
w2(n1,n2)dn2
W2(w1,w2)
w2(n1,n2)
The advantage of this approach is that the individual features of 1-D window response
W1(w1)
W2(w1,w2)
Approach IV
A new method was proposed to design a 2-D window by applying the McClellan transformation to a 1-D window.[7] Each coefficient of the resulting 2-D window is the linear combination of coefficients of the corresponding 1-D window with integer or power of 2 weighting.
Consider a case of even length, then the frequency response of the 1-D window of length N can be written as
W1(w)=
N/2 | |
\sum | |
n=1 |
w(n)\cos[(n-0.5)w].
Consider the McClellan transformation:
\cos(w)=0.5\cos(w1)+0.5\cos(w2)+0.5\cos(w1)\cos(w2)-0.5
which is equivalent to
\cos(0.5w)=\cos(0.5w1)\cos(0.5w2)for0\leq w\leq\pi,0\leq w1\leq\pi,0\leq w2\leq\pi.
Substituting the above, we get the frequency response of the corresponding 2-D window
W2(w1,w2)=
N/2 | |
\sum | |
n1=1 |
N/2 | |
\sum | |
n2=1 |
w2(n1,n2)\cos[(n1-0.5)w1]\cos[(n2-0.5)w2].
From the above equation, the coefficients of the 2-D window can be obtained.
To illustrate this approach, consider the Tseng window. The 1-D Tseng window of
2N
W(w)=\exp(-jw/2)
N2w | ||
\sum | \cos\left(\left(n- | |
n |
1 | |
2 |
\right)w\right).
By implementing this approach, the frequency response of the 2-D McClellan-transformed Tseng window is given by
W(w1,w2)=\exp(-j(w1+w2)/2)
N | |
\sum | |
n1=1 |
N | |
\sum | |
n2=1 |
4w(n1,n2)\cos\left(\left(n
|
\right)w1\right)
\cos\left(\left(n | ||||
|
\right)w2\right)
where
w(n1,n2)
This window finds applications in antenna array design for the detection of AM signals.[8]
The advantages include simple and efficient design, nearly circularly symmetric frequency response of the 2-D window, preserving of the 1-D window prototype features. However, when this approach is used for FIR filter design it was observed that the 2-D filters designed were not as good as those originally proposed by McClellan.
Using the above approaches, the 2-D window functions for few of the 1-D windows are as shown below. When Hankel transform is used to find the frequency response of the window function, it is difficult to represent it in a closed form. Except for rectangular window and Bartlett window, the other window functions are represented in their original integral form. The two-dimensional window function is represented as
w(r)
|r|<a
w(r)=0
|r|>a.
W(f)=
infty | |
\int | |
0 |
rw(r)J0(fr)dr.
where
J0
The two-dimensional version of a circularly symmetric rectangular window is as given below[9]
w(r)=\left\{\begin{array}{ll} 1, &|r|\leqslanta\ 0, &|r|>a\ \end{array}\right.
The window is cylindrical with the height equal to one and the base equal to 2a. The vertical cross-section of this window is a 1-D rectangular window.
The frequency response of the window after substituting the window function as defined above, using the Hankel transform, is as shown below
W(f)=
infty | |
\int | |
0 |
rJ0(fr)dr
The two-dimensional mathematical representation of a Bartlett window is as shown below[9]
w(r)=\left\{\begin{array}{cl} 1-
|r| | |
a |
, &|r|\leqslanta\ 0, &|r|>a \end{array}\right.
The window is cone-shaped with its height equal to 1 and the base is a circle with its radius 2a. The vertical cross-section of this window is a 1-D triangle window.
The Fourier transform of the window using the Hankel transform is as shown below
W(f)=
infty | |
\int | |
0 |
r\left(1-
|r| | |
a |
\right)J0(fr)dr
The 2-D Kaiser window is represented by[9]
w(r)=\left\{\begin{array}{cl}
| ||||||||||
\right)}{I |
0(\alpha)}, &|r|\leqslanta\\[4pt]0, &otherwise \end{array}\right.
The cross-section of the 2-D window gives the response of a 1-D Kaiser Window function.
The Fourier transform of the window using the Hankel transform is as shown below
W(f)=
infty | |
\int | |
0 |
r\left(\tfrac{I0\left(\alpha\sqrt{1-((
r | |
a |
2}\right)}{I | |
) | |
0(\alpha)}\right) |
J0(fr)dr