Two-dimensional window design

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, design of optimal convolution functions, image enhancement so as to reduce the effects of data-dependent processing artifacts, optical apodization and antenna array design.
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 ( n 1 , n 2 ) {\displaystyle w(n_{1},n_{2})} with its Fourier transform denoted by W ( w 1 , w 2 ) {\displaystyle W(w_{1},w_{2})} . Let i ( n 1 , n 2 ) {\displaystyle i(n_{1},n_{2})} and I ( w 1 , w 2 ) {\displaystyle I(w_{1},w_{2})} denote the impulse and frequency response of an ideal filter and h ( n 1 , n 2 ) {\displaystyle h(n_{1},n_{2})} and H ( w 1 , w 2 ) {\displaystyle H(w_{1},w_{2})} denote the impulse and frequency response of a filter approximating the ideal filter, then we can approximate I ( w 1 , w 2 ) {\displaystyle I(w_{1},w_{2})} by h ( n 1 , n 2 ) {\displaystyle h(n_{1},n_{2})} . Since i ( n 1 , n 2 ) {\displaystyle i(n_{1},n_{2})} has an infinite extent it can be approximated as a finite impulse response by multiplying with a window function as shown below
and in the Fourier domain
The problem is to choose a window function with an appropriate shape such that H ( w 1 , w 2 ) {\displaystyle H(w_{1},w_{2})} is close to I ( w 1 , w 2 ) {\displaystyle I(w_{1},w_{2})} and in any region surrounding a discontinuity of I ( w 1 , w 2 ) {\displaystyle I(w_{1},w_{2})} , H ( w 1 , w 2 ) {\displaystyle H(w_{1},w_{2})} shouldn't contain excessive ripples due to the windowing.
There are four approaches for generating 2-D windows using a one-dimensional window as a prototype.
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 ( n 1 , n 2 ) = w 1 ( n 1 ) w 2 ( n 2 ) . {\displaystyle w(n_{1},n_{2})=w_{1}(n_{1})w_{2}(n_{2}).} The property of separability is exploited in this approach. The window formed has a square region of support and is separable in the two variables. In order to understand this approach, consider 1-D Kaiser window whose window function is given by
then the corresponding 2-D function is given by
where:
The Fourier transform of w ( n 1 , n 2 ) {\displaystyle w(n_{1},n_{2})} is the outer product of the Fourier transforms of w 1 ( n 1 ) and w 2 ( n 2 ) {\displaystyle w_{1}(n_{1}){\text{ and }}w_{2}(n_{2})} . Hence W ( w 1 , w 2 ) = W 1 ( w 1 ) W 2 ( w 2 ) {\displaystyle W(w_{1},w_{2})=W_{1}(w_{1})W_{2}(w_{2})} .
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 θ {\displaystyle \theta } i.e. f ( r , θ ) = f ( r ) . {\displaystyle f(r,\theta )=f(r).}
If w(n) denotes a good 1-D even symmetric window then the corresponding 2-D window function is
(where a {\displaystyle a} is a constant) and
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
where:
and
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 {\displaystyle n} but n 1 2 + n 2 2 {\displaystyle {\sqrt {n_{1}^{2}+n_{2}^{2}}}} value isn't an integer in general. To overcome this, the method of interpolation can be used to define values for w ( n 1 , n 2 ) {\displaystyle w(n_{1},n_{2})} for any arbitrary w ( n 1 2 + n 2 2 ) . {\displaystyle w\left({\sqrt {n_{1}^{2}+n_{2}^{2}}}\right).} Secondly, the 2-D FFT must be applicable to the 2-D window.
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. 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
The 2-D window function w 2 ( n 1 , n 2 ) {\displaystyle w_{2}(n_{1},n_{2})} can be obtained by computing the inverse inverse Fourier transform of W 2 ( w 1 , w 2 ) {\displaystyle W_{2}(w_{1},w_{2})} .
Another way to show the type-preserving rotation is when the relation W 1 ( w 1 ) = W 2 ( w 1 , w 2 ) a t w 2 = 0 {\displaystyle W_{1}(w_{1})=W_{2}(w_{1},w_{2})\ at\ w_{2}=0} is satisfied. This implies that a slice of the frequency response of 2-D window is equal to that of the 1-D window where the orientation of ( w 1 , w 2 ) {\displaystyle (w_{1},w_{2})} is arbitrary. In spatial domain, this relation is given by w 1 ( n ) = ∫ − ∞ ∞ w 2 ( n 1 , n 2 ) d n 2 {\displaystyle w_{1}(n)=\int _{-\infty }^{\infty }\!w_{2}(n_{1},n_{2})\,dn_{2}} . This implies that a slice of the frequency response W 2 ( w 1 , w 2 ) {\displaystyle W_{2}(w_{1},w_{2})} is the same as the Fourier transform of the one-directional integration of the 2-D window w 2 ( n 1 , n 2 ) {\displaystyle w_{2}(n_{1},n_{2})} .
The advantage of this approach is that the individual features of 1-D window response W 1 ( w 1 ) {\displaystyle W_{1}(w_{1})} are well preserved in the obtained 2-D window response W 2 ( w 1 , w 2 ) {\displaystyle W_{2}(w_{1},w_{2})} . Also, the circular symmetry is improved considerably in a discrete system. The drawback is that it's computationally inefficient due to the requirement of 2-D inverse Fourier transform and hence less useful in practice.
Approach IV
A new method was proposed to design a 2-D window by applying the McClellan transformation to a 1-D window. 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
Consider the McClellan transformation:
which is equivalent to
Substituting the above, we get the frequency response of the corresponding 2-D window
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 2 N {\displaystyle 2N} weights can be written as
By implementing this approach, the frequency response of the 2-D McClellan-transformed Tseng window is given by
where w ( n 1 , n 2 ) {\displaystyle w(n_{1},n_{2})} are the 2-D Tseng window coefficients.
This window finds applications in antenna array design for the detection of AM signals.
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 ) {\displaystyle w(r)} with a region of support given by | r | < a {\displaystyle |r|<a} where the window is set to unity at origin and w ( r ) = 0 {\displaystyle w(r)=0} for | r | > a . {\displaystyle |r|>a.} Using the Hankel transform, the frequency response of the window function is given by
where J 0 {\displaystyle J_{0}} is Bessel function identity.
The two-dimensional version of a circularly symmetric rectangular window is as given below
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
The two-dimensional mathematical representation of a Bartlett window is as shown below
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
The 2-D Kaiser window is represented by
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