Next Article in Journal
Design of Realistic and Artistically Expressive 3D Facial Models for Film AIGC: A Cross-Modal Framework Integrating Audience Perception Evaluation
Previous Article in Journal
Denoising Algorithm for High-Resolution and Large-Range Phase-Sensitive SPR Imaging Based on PFA
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design Technique and Efficient Polyphase Implementation for 2D Elliptically Shaped FIR Filters

by
Doru Florin Chiper
1,2,3 and
Radu Matei
1,4,*
1
Faculty of Electronics, Telecommunications and Information Technology, “Gheorghe Asachi” Technical University of Iasi, 700506 Iasi, Romania
2
Technical Sciences Academy of Romania—ASTR, 700050 Iaşi, Romania
3
Academy of Romanian Scientists—AOSR, 030167 Bucharest, Romania
4
Institute of Computer Science, Romanian Academy—Iaşi Branch, 700481 Iaşi, Romania
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(15), 4644; https://doi.org/10.3390/s25154644
Submission received: 22 June 2025 / Revised: 18 July 2025 / Accepted: 24 July 2025 / Published: 26 July 2025
(This article belongs to the Section Sensing and Imaging)

Abstract

This paper presents a novel analytical approach for the efficient design of a particular class of 2D FIR filters, having a frequency response with an elliptically shaped support in the frequency plane. The filter design is based on a Gaussian shaped prototype filter, which is frequently used in signal and image processing. In order to express the Gaussian prototype frequency response as a trigonometric polynomial, we developed it into a Fourier series up to a specified order, given by the imposed approximation precision. We determined analytically a 1D to 2D frequency transformation, which was applied to the factored frequency response of the prototype, yielding directly the factored frequency response of a directional, elliptically shaped 2D filter, with specified selectivity and an orientation angle. The designed filters have accurate shapes and negligible distortions. We also designed a 2D uniform filter bank of elliptical filters, which was then applied in decomposing a test image into sub-band images, thus proving its usefulness as an analysis filter bank. Then, the original image was accurately reconstructed from its sub-band images. Very selective directional elliptical filters can be used in efficiently extracting straight lines with specified orientations from images, as shown in simulation examples. A computationally efficient implementation at the system level was also discussed, based on a polyphase and block filtering approach. The proposed implementation is illustrated for a smaller size of the filter kernel and input image and is shown to have reduced computational complexity due to its parallel structure, being much more arithmetically efficient compared not only to the direct filtering approach but also with the most recent similar implementations.

1. Introduction

In recent years, the technology, architecture and dedicated image processing algorithms for modern image sensors have known a spectacular development. For example, high-resolution image sensors for remote sensing applications must yield clear, low-noise images, mostly in visible but also in infrared or microwave domains. In order to provide the required high quality, relevant and precise information, images acquired by such sensors must undergo pre-processing stages using various enhancement and restoration operations. In this wide range of image processing tasks, digital filters and filter banks play a fundamental role, for instance, in analyzing images and decomposing them in a set of sub-band images, extracting relevant features and details. They are also extensively used in automotive, where high-speed image processing and feature extraction is highly demanded in real-time applications, such as driver assistance systems, etc.
Two-dimensional filters have been extensively investigated by many researchers in the vast field of digital signal and image processing due to their important applications in image processing, and a wide range of design techniques have been developed [1]. Unlike global numerical optimization algorithms, analytical design methods are based on 1D prototypes with imposed shapes and parameters, to which frequency transformations are applied, leading directly to the desired 2D filters. Perhaps the major benefit of the analytical approach is that the factored frequency response results, and the designed 2D filter is parametric and therefore easily adjustable.
There exists in the literature a wide variety of 2D filters, of the FIR or IIR type, with various shapes, each of them having applications in image processing tasks. One of the most currently used methods used in the analytical design of FIR filters is the McClellan transform [2,3]. Some important works in the field propose various computationally efficient 2D FIR filter structures also using frequency transformations, like multiplier-less circularly symmetric FIR filters using harmony search algorithms [4], sampling-kernel based interpolation [5], a design based on Gaussian approximation [6], and a single-parameter tunable 2-D Farrow structure [7]. Various transformations for the design of FIR and IIR filters are given in [8], and the efficient synthesis of 2D FIR filters with improved selectivity is approached in [9]. Two-dimensional filter banks of various types and shapes are widely used in essential applications, like texture analysis and segmentation, or feature extraction tasks. They decompose the frequency spectrum of the image into several sub-bands, which is required in coding applications, etc.
Different types of two-dimensional filter banks have been investigated [10], in particular directional [11] and nonuniform frequency plane partitioning [12]. An application of directional filter banks in fingerprints analysis is given in [13]. Elliptically shaped 2D filters, including directional ones, were approached in early papers such as [14,15]. A 2D wavelet filter bank with elliptical support was applied in iris recognition [16] and directional elliptical filters were used in robust human pose detection [17]. The design of 2D FIR filters with a circular and elliptical shape based on a swarm optimization algorithm is proposed in [18].
Gaussian separable filtering can also be combined with other methods, such as integral image techniques to construct a Gaussian pyramid following an SIFT algorithm; it may be followed, for instance, by Canny edge detection and dilation operations in order to obtain an optimized edge detection, with superior performances and reduced complexity, also suitable for real-time processing [19]. Such analytical design methods could also be extended to 3D image processing, with interesting applications in physics. For instance, paper [20] presents a 3D digital image correlation approach for accurately measuring strain and deformations in vinyl chloride-coated metal multilayer sheets.
Some computationally efficient structures of 2D FIR filters using block filtering, systolic arrays, etc., are elaborated on in [21,22].
Several analytical design techniques for various 2D filters have also been proposed in previous works. Thus, we studied a class of 2D FIR circular filter banks and their efficient implementation using a polyphase approach in [23], the design and applications of adjustable elliptical and circular 2D IIR filters in [24] and another type of directional elliptically shaped IIR filter, with applications in the detection of oriented straight lines and other details in images, in [25].
In this paper, an analytical design procedure is elaborated on for a particular class of 2D filter, specifically 2D FIR Gaussian elliptical filters. A uniform elliptical 2D filter bank is also designed, with a specified number of component filters, based on a corresponding 1D prototype with a Gaussian frequency response. This is easily approximated using Fourier series expansion. By simply shifting the low-pass filter to equally spaced peak frequencies, we also obtain band-pass filters, thus generating a uniform filter bank. We have determined a particular 1D to 2D frequency transformation, which is applied to the 1D prototype and yields directly the desired 2D filter with elliptically shaped support. The 2D filters result in accurate shapes and negligible distortions. The designed elliptical FB was tested on a greyscale image, which was decomposed into sub-band components, and then the original image was reconstructed very accurately from these components. In a particular case, very selective low-pass directional filters can detect and extract straight lines with specified orientation from images, as shown by the simulation results.
A novel and more efficient implementation solution is also proposed for the designed 2D FIR filter. It has a significantly lower complexity than a recent implementation in [21] while maintaining the same throughput. The proposed solution is based on a new algorithm for 2D FIR filtering with a smaller kernel of 3 × 3, which has been extended at a larger kernel size of 30 × 30 using a polyphase decomposition of the given 2D filtering operation and block filtering. In order to facilitate the reformulation of the algorithm for 2D FIR filtering for a polyphase implementation, we have introduced some auxiliary vectors. Thus, it was possible to extend the proposed 2D filtering algorithm for a significantly larger size.
This paper is organized as follows. Section 2 presents the analytical design technique, first approximating a Gaussian prototype using Fourier series, then generating an uniform Gaussian filter bank with a specified number of components, peak frequencies and bandwidths. Next, a specific 1D to 2D frequency transformation is determined, which will be applied to the given prototype and will lead directly to the desired elliptically shaped 2D filter with a specified orientation in the frequency plane. Next, several design examples are given, showing the 2D filter characteristics (the frequency response and contour plot), for the components of an elliptical filter bank, and then for very selective filters with various orientations. In Section 3, we present an example of image analysis and reconstruction using the elliptical filter bank by decomposing it into sub-band images. A simulation of straight line extraction from a test image, using narrow directional elliptical filters, is also given. The proposed filtering implementation at the system level, based on the polyphase and block structure, is described in Section 4. Some comparative discussions regarding the filter design and computational complexity of the proposed implementation are provided in Section 5. Finally, conclusions are given in the last section.

2. Analytical Design Technique for 2D Elliptical FIR Filters

In this main section, a novel analytical design procedure for a class of 2D FIR filters with elliptically shaped frequency response is presented. The proposed technique is based on a suitable 1D prototype with imposed specifications (peak frequency and bandwidth), to which 1D to 2D frequency mapping is applied, which directly leads to the desired 2D filter. We have chosen as a prototype a Gaussian-shaped filter, which has the useful property of scalability on the frequency axis. A uniform filter bank prototype is first derived, which yields a 2D elliptically shaped filter bank through the elaborated frequency mapping.

2.1. Design of Gaussian FIR Filter Prototype Based on Fourier Series Approximation

As is well known, the Gaussian filter function in the frequency domain can be expressed as G ω = exp σ 2 ω 2 / 2 , where parameter σ represents variance. In order to derive a simpler, more practical form, we will apply the substitution p = σ 2 / 2 , otherwise written as σ = 2 p . In this way, the low-pass filter with a Gaussian shape will be expressed in the more convenient form G L P ω = exp p · ω 2 . We consider that the Gaussian filter is defined by the range [ π , π ] as its support by extending it on the entire frequency axis as a periodic function with period 2 π . We derive the following approximation through a trigonometric polynomial, by developing the Gaussian G L P ω in Fourier series, up to a given order, N:
G L P ω = exp p · ω 2 1 2 p π · 1 + 2 · n = 1 N exp n 2 4 p · cos n ω = H L P ω
From this expression of the Gaussian low-pass prototype, we also obtain a band-pass (BP) prototype by shifting this low-pass filter to the symmetric frequencies ± ω 0 :
H B P ω = H L P ω ω 0 + H L P ω + ω 0 = exp p · ( ω ω 0 ) 2 + exp p · ( ω + ω 0 ) 2 1 p π · 1 + 2 · n = 1 N exp n 2 4 p · cos ( n ω 0 ) · cos n ω
Expressions (1) and (2) above can easily be calculated in a MATLAB routine. Next, the low-pass, band-pass and high-pass components of the specified FIR filter bank prototype will be derived.

2.2. The Design of a Gaussian Uniform FIR Filter Bank Prototype

In this section, a uniform, Gaussian filter bank (FB) prototype with seven-component filters will be designed, consisting in one low-pass (LP) filter, five band-pass (BP) filters and one high-pass (HP) filter.
As in every uniform filter bank, the peak frequencies are equally spaced on the frequency axis. For the 5 BP filters, we impose a bandwidth equal to B = π / 6 , while the LP and HP filters have each half of this bandwidth, namely B / 2 = π / 12 . The k-th ideal Gaussian band-pass filter is derived by shifting the low-pass prototype to the frequency ω 0 , k = k · ω 0 , and its frequency response has the expression
G B P k ω = G L P ω k ω 0 + G L P ω + k ω 0 = exp p · ( ω k ω 0 ) 2 + exp p · ( ω + k ω 0 ) 2
Next, scaling parameter p has to be calculated for the specified bandwidth value. For our purpose, the filter bandwidth is defined at 0.5 of the peak value (at 6 dB). The magnitude characteristics of any two consecutive, adjacent filters partially overlap and intersect at the value 0.5. Considering the LP filter given by G L P ω = exp p · ω 2 , we apply the condition G L P B / 2 = exp p · B 2 / 4 = 0.5 , also written exp p · B 2 / 4 = 2 ; thus, the value of scaling parameter p is p = 4 ln 2 / B 2 . Since the bandwidth of each component filter is B = π / 6 , we obtain the scaling parameter value p = 144 · ln 2 / π 2 10.1132 . The ideal uniform Gaussian filter bank is plotted in Figure 1a. For a very accurate approximation and a small ripple level, the Fourier series given by (1) and (2) was truncated at a number of N = 12 terms. The approximation order must be a trade-off between a small distortion level and a reasonable size of the filter matrices for a convenient implementation.
In the next step, the components of the uniform prototype filter bank are determined. Following the steps of the design method described above, knowing the bandwidths and peak frequencies of component filters, using Equations (1) and (2), the frequency responses of the FB components are calculated.
For instance, the LP Gaussian prototype, approximated by a truncated Fourier series using (1), results in
H L P ω = 0 . 0887063 + 0 . 173081 · cos ω + 0 . 1607092 · cos 2 ω + 0 . 1420237 · cos 3 ω + 0 . 119456 · cos 4 ω + 0 . 095628 · cos 5 ω + 0 . 0728597 · cos 6 ω + 0 . 052834 · cos 7 ω + 0 . 036465 · cos 8 ω + 0 . 0239533 · cos 9 ω + 0 . 0149755 · cos 10 ω + 0 . 008911 · cos 11 ω + 0 . 00504655 · cos 12 ω
Using trigonometric identities, this is further written as follows:
H L P ω = 10.3353344 · cos ω + 0.9923 cos ω + 0.931466 cos ω + 0.81361 cos ω + 0.646128 · cos ω + 0.4395183 cos ω + 0.206737 cos ω 0.03766 cos ω 0.278484 · cos ω 0.501253 cos ω 0.676875 ( cos ω ) 2 1.652607 · cos ω + 0.695704
Next, the frequency responses of the BP filter components of the bank are given as
H B P 1 ω = 20 . 6719213 · ( cos ω + 0 . 99237 ) ( cos ω + 0 . 93206 ) ( cos ω + 0 . 815269 ) ( cos ω + 0 . 649373 ) · ( cos ω + 0 . 444886 ) ( cos ω + 0 . 2148096 ) ( cos ω 0.026717 ) ( cos ω 0.242526 ) ( cos ω 1.009604 ) · ( cos ω 1.11825 ) ( ( cos ω ) 2 0.887092 · cos ω + 0.228733 )
H B P 2 ω = 20.67192 · ( cos ω + 0.992623 ) ( cos ω + 0.934318 ) ( cos ω + 0.82153 ) ( cos ω + 0.661733 ) · ( cos ω + 0.464866 ) ( cos ω + 0.273917 ) ( cos ω 0.983609 ) ( cos ω 0.998796 ) · ( cos ω ) 2 + 0.17237 · cos ω + 0.0519616 ( cos ω ) 2 1.897523 · cos ω + 0.90847
H B P 3 ω = 20.67192 · ( cos ω + 0.993351 ) ( cos ω + 0.9408166 ) ( cos ω + 0.838538 ) ( cos ω + 0.722343 ) · ( cos ω 0.722343 ) ( cos ω 0.838538 ) ( cos ω 0.9408166 ) ( cos ω 0.993351 ) · ( cos ω ) 2 + 1.191947 · cos ω + 0.387847 ) ( ( cos ω ) 2 1.191947 · cos ω + 0.387847 )
H B P 4 ω = 20.67192 · ( cos ω 0.992623 ) ( cos ω 0.934318 ) ( cos ω 0.82153 ) ( cos ω 0.661733 ) · ( cos ω 0 . 464866 ) ( cos ω 0 . 273917 ) ( cos ω + 0.983609 ) ( cos ω + 0.998796 ) · ( cos ω ) 2 - 0 . 17237 · cos ω + 0 . 0519616 ( cos ω ) 2 + 1 . 897523 · cos ω + 0 . 90847
H B P 5 ω = 20 . 6719213 · ( cos ω 0 . 99237 ) ( cos ω 0 . 93206 ) ( cos ω 0 . 815269 ) ( cos ω 0 . 649373 ) · ( cos ω 0 . 444886 ) ( cos ω 0 . 2148096 ) ( cos ω + 0.026717 ) ( cos ω + 0.242526 ) ( cos ω + 1.009604 ) · ( cos ω + 1 . 11825 ) ( ( cos ω ) 2 + 0.887092 · cos ω + 0.228733 )
H H P ω = 10.3353344 · cos ω 0.9923 cos ω 0.931466 cos ω 0.81361 cos ω 0.646128 · cos ω 0.4395183 cos ω 0.206737 cos ω + 0.03766 cos ω + 0.278484 · cos ω + 0.501253 cos ω + 0.676875 ( cos ω ) 2 + 1.652607 · cos ω + 0.695704
As can be noticed from the expressions of frequency responses given by (5)–(11), the filters of the prototype filter bank with symmetric peak frequencies with respect to the value ω = π / 2 (at the middle of the interval) have symmetric zeros, which is according to digital filter theory. For instance, the zeros of the fifth BP filter are the zeros of the first BP filter with a changed sign, the second and forth BP filter also have opposite zeros, etc. As the FB is made up of an odd number of filters, the middle (third) BP filter, with peak frequency ω 0 = π / 2 , has no pair, and its transfer function has pairs of complementary zeros. The uniform Gaussian prototype filter bank designed using the above procedure is plotted in Figure 1b and it looks very similar to its ideal counterpart in Figure 1a, with a very low level of ripple. In Table 1, the maximum ripple in the stop-band for all the filters of the filter bank are given. Due to the Gaussian shape, these filters have no ripple in the pass-band.

2.3. Design of 2D FIR Filters with Elliptically Shaped Frequency Response Using Frequency Transformation

In this work, we approached the analytical design of a particular class of anisotropic (directional) filters, with elliptically shaped support in the frequency plane. The shape of their characteristics is determined by specifying the values of the major and minor semi-axes of the ellipse (E and F). Their orientation is given by angle φ , formed by its longitudinal axis with the ω 1 -axis of the frequency plane. In the following paragraphs, we determine the expression of the 1D to 2D frequency transformation that leads to 2D elliptically shaped filters.
According to the proposed analytical design technique, a 2D filter with an elliptically shaped frequency response is obtained by applying to the specified 1D prototype the following 1D to 2D frequency transformation ω 2 S φ ( ω 1 , ω 2 ) , with the expression
ω 2 S φ ( ω 1 , ω 2 ) = ω 1 2 cos 2 φ E 2 + sin 2 φ F 2 + ω 2 2 sin 2 φ E 2 + cos 2 φ F 2 + ω 1 ω 2 sin ( 2 φ ) 1 F 2 1 E 2 = a 0 · ω 1 2 + b 0 · ω 2 2 + c 0 · ω 1 ω 2
In the above mapping, E and F are the values of major and minor semi-axes of the ellipse, respectively. The expressions of the coefficients a 0 , b 0 and c 0 are found by direct identification. In our case, applying this frequency mapping to a Gaussian filter with the specified peak frequency and bandwidth, we derive a 2D filter with elliptically shaped support in the frequency plane, depending on the parameters E, F and φ . These define the aspect of the ellipse and its orientation through the mapping (12).
A more convenient form of the frequency mapping (12) results using the simple identity ω 1 ω 2 = 0.5 · ( ω 1 + ω 1 ) 2 ω 1 2 ω 2 2 ; making this substitution in (12) and re-arranging, we obtain
ω 2 S φ ( ω 1 , ω 2 ) = a · ω 1 2 + b · ω 2 2 + c · ( ω 1 + ω 2 ) 2
Next, introducing the notations q = 1 / E 2 + 1 / F 2 , r = 1 / E 2 1 / F 2 , we derive the following expressions of the coefficients a, b and c:
a = a 0 0.5 c 0 = q + r · cos ( 2 φ ) + r · sin ( 2 φ )
b = b 0 0.5 c 0 = q r · cos ( 2 φ ) + r · sin ( 2 φ )
c = 0.5 c 0 = r · sin ( 2 φ )
Applying the general 1D to 2D mapping (13) to the ideal Gaussian prototype H P ( ω ) = exp ( p ω 2 ) , we obtain the ideal 2D frequency response:
H E ( ω 1 , ω 2 ) = exp p · a · ω 1 2 + b · ω 2 2 + c · ( ω 1 + ω 2 ) 2
The Gaussian 1D prototype, with specified selectivity, was approximated as a factored trigonometric polynomial in variable cos ω as in Relations (5)–(11). We will next determine the following frequency mapping, which is derived from (13):
cos ω cos a · ω 1 2 + b · ω 2 2 + c · ( ω 1 + ω 2 ) 2 = cos S φ ( ω 1 , ω 2 )
The final purpose is to find a 1D to 2D mapping of the form cos ω F ( z 1 , z 2 ) , which can lead directly to the transfer function of a 2D digital filter with the desired shape.
In this step, the efficient Chebyshev series approximation is used, since it has the major advantage of yielding a precise and uniform approximation of a given function on a specified range of values. Using the symbolic calculation software MAPLE 6.02 and an intermediate change in variable, we derive the following accurate approximation (for ω > 0 , specifically ω [ 0 , π ] ):
cos ω 0 . 996696 0.486389 · ω + 0 . 0332286 · ω 2
This approximation is plotted in Figure 2a in blue and is practically superposed on the exact function cos ω , which shows that the approximation is very precise.
Considering Equation (18) as well, we obtain
cos S φ ( ω 1 , ω 2 ) 0 . 996696 0.486389 · S φ ( ω 1 , ω 2 ) + 0 . 0332286 · S φ 2 ( ω 1 , ω 2 )
Using again the Chebyshev series method, the following low-order trigonometric approximation for the function ω 2 results in
ω 2 2 . 734863 3 . 003487 · cos ω + 0 . 274406 · cos 2 ω
This approximation is plotted as the blue curve in Figure 2b, while the exact function ω 2 is plotted in red. It can be noticed that the approximation is very accurate at least on the interval [ 2 , 2 ] , and it tends to diverge visibly towards the margins of the interval.
Regarding this marginal error, even if it is large towards the limits of the interval, it does not affect the designed filters much since the component filters of the bank are derived from a narrow-band low-pass filter, and the marginal errors cancel out. Therefore, it is essential that the approximation is very precise on a sufficiently large interval around zero, as the plot in Figure 2b shows.
The above approximation is then written separately for the frequency variables ω 1 and ω 2 and their sum ω 1 + ω 2 as follows:
ω 1 2 2 . 734863 3 . 003487 · cos ω 1 + 0 . 274406 · cos 2 ω 1
ω 2 2 2 . 734863 3 . 003487 · cos ω 2 + 0 . 274406 · cos 2 ω 2
( ω 1 + ω 2 ) 2 2 . 734863 3 . 003487 · cos ( ω 1 + ω 2 ) + 0 . 274406 · cos 2 ( ω 1 + ω 2 )
The next design step is to substitute Relations (22)–(24) into (13), obtaining an expression of S φ ( ω 1 , ω 2 ) which is then introduced in (20); finally, a trigonometric expression of the function cos S φ ( ω 1 , ω 2 ) in the variables cos ω 1 and cos ω 2 is determined. Considering this two-variable function as a 2D discrete Fourier transform, by directly identifying the corresponding coefficients, we finally reach a matrix of size 5 × 5 , with the general form, symmetric with respect to the central element:
S φ = 0 0 α 5 0 α 7 0 0 α 3 α 4 0 α 6 α 2 α 1 α 2 α 6 0 α 4 α 3 0 0 α 7 0 α 5 0 0
where the matrix elements have the following expressions, which depend on the ellipse semi-axes parameters E and F and on the angle of orientation, φ :
α 1 = 5.469726 · q + 2.734863 · r · sin 2 φ
α 2 = 1.501744 · q 1.501744 · r · ( sin 2 φ + cos 2 φ )
α 3 = 1.501744 · q + 1.501744 · r · ( c o s 2 φ sin 2 φ )
α 4 = 1.501744 · r · sin 2 φ
α 5 = 0.137203 · q + 0.137203 · r · ( s i n 2 φ cos 2 φ )
α 6 = 0.137203 · q + 0.137203 · r · ( s i n 2 φ + cos 2 φ )
α 7 = 0.137203 · r · sin 2 φ
Because the parametric matrix, S φ , in (25) corresponds to the function S φ ( ω 1 , ω 2 ) , then taking into account Equation (20), the function cos S φ ( ω 1 , ω 2 ) will in turn correspond to matrix S E φ of size 9 × 9 , according to the following relation:
S E φ 0 . 996696 · S 0 0.486389 · S φ 1 + 0 . 0332286 · S φ S φ
where by the symbol , we denote the matrix convolution operation. In the above relation, S 0 is a 9 × 9 null matrix, with a central element of value one. The matrix S φ 1 ( 9 × 9 ) is obtained by bordering S φ ( 5 × 5 ) with zero values up to size 9 × 9 .
Taking into account Expressions (5)–(11) for the factored frequency responses of the 1D prototype filter bank components, we can express them in the following form, which is, in general, a product of first-order and second-order factors:
H P ( ω ) = k · i = 1 n ( cos ω + b i ) · j = 1 m ( ( cos ω ) 2 + b 1 j · cos ω + b 2 j )
In (34), the coefficients b i , b 1 , j and b 2 , j are generic coefficients which result in each factor in the prototype frequency response H P ( ω ) , while k is the constant resulting in front.
In the next step, simply by substituting in each factor of the general frequency response (34) the variable cos ω with the function cos S φ ( ω 1 , ω 2 ) derived as before, we find directly the factored frequency response of any 2D elliptically filter, generally denoted as H E ( ω 1 , ω 2 ) and containing both first-order and second-order factors:
H E ( ω 1 , ω 2 ) = k · i = 1 n ( S + b i ) · j = 1 m ( S 2 + b 1 j · S + b 2 j )
where S is a concise notation for the two-variable function S φ ( ω 1 , ω 2 ) . Thus, the large kernel H corresponding to the filter function H E ( ω 1 , ω 2 ) can be expressed directly as a convolution product of smaller matrices, corresponding to each factor from (35):
H = k · ( S 1 S i S n ) ( P 1 P j P m )
Matrix Expression (36) corresponds to the factored frequency response (35). Using matrix S E φ of size 9 × 9 given in (25) and taking into account Equations (22)–(24), each of the matrices S i from (36) is derived by adding coefficient b i occurring in first-order factors in (34) to the center element in matrix S E φ . Matrix P j , corresponding to second-order factors, is
P j = S E φ S E φ + b 1 j · S E φ 1 + b 2 j · S E φ 0
where S E φ 0 is a null matrix of size 17 × 17 with a central element of value one. Matrix S E φ 1   ( 17 × 17 ) results from bordering matrix S E φ (size 9 × 9 ) with zeros, symmetrically on all sides; here, the symbol * denotes matrix convolution.
Another advantage of the proposed method is that it yields the 2D filter frequency response directly factored, which may be a major advantage in a cascade structure (sequential) implementation of these filters. Some design examples of 2D elliptical filters are presented as follows.

2.4. Design Examples of 2D FIR Filters with Elliptical Shape

As a first design example using the proposed analytical technique, we have applied the frequency transformation determined above to each component of the prototype filter bank of a Gaussian shape, with the frequency responses given by Expressions (6)–(11). For the aspect ratio (between the semi-axes of the ellipse), we considered the value E / F = 2 and the orientation angle of value φ = π / 6 . It can be noticed from Figure 3 that the resulting elliptical filters have a very accurate elliptical shape, steep transition and negligible ripple in the stop-band region.
If the aspect ratio of the ellipse (the ratio of semi-axes) E / F is given a larger value, a very stretched ellipse is obtained, and the corresponding 2D elliptically shaped filters will be very narrow, with a very selective directional characteristic. In Figure 4, the frequency responses and contour plots were displayed for four low-pass very selective directional filters. They have the semi-axes values E = 16 and F = 1 and four orientation angles, namely φ = π / 5 , φ = π / 6 , φ = π / 8 and φ = π / 12 . As will be shown, such filters can be applied in detecting straight lines and other oriented objects in images.
The next section presents two important applications of the designed 2D elliptical filters, namely the analysis of a test image by the filter bank and the detection of oriented straight lines from an image, using very selective directional filters.

3. Applications and Simulation Results

This section presents a simulation example of the decomposition and reconstruction of a real-life test image using the designed elliptical uniform filter bank and a quantitative evaluation of the reconstruction quality, using specific measures. Then, a simulation example of directional filtering using very selective low-pass elliptical filters, with various orientation angles in the frequency plane, is given. This shows the capability of these narrow filters in extracting oriented straight lines from images.

3.1. Image Analysis Using the Designed Elliptical Uniform Filter Bank

In this section, we show a useful application of the uniform elliptically shaped FIR filter bank designed through the proposed analytical technique. The following simulation will be performed on a grayscale test image of size 643 × 643 shown in Figure 5a, representing some branches of trees without foliage in winter time. This particular test image was chosen due to its structure of fine details, represented by the tree ramifications. The image was filtered by passing it through the six components of the filter bank (one low-pass filter and five band-pass filters). In this case, the elliptical uniform filter bank actually decomposes the test image into sub-band images, thus behaving as a usual analysis filter bank. The original image shown in Figure 5a is first low-pass filtered by the filter H E L P , which has a relatively narrow bandwidth, both transversally and longitudinally, for the specified values of the ellipse semi-axes. Figure 5b showing the output of the LP filter is very blurred, and the fine details, like thin twigs, can be no longer distinguished. Next, Figure 5c–f showing the outputs of the first four band-pass filters contain specific details, with higher and higher frequencies, corresponding to the selected region from the frequency plane.
As in every synthesis filter bank, the original test image that was decomposed by the analysis FB can be reconstructed by adding the sub-band component images. For instance, (g) is created by summing the first two component (b) and (c). Next, (h) is obtained through the summation of the first three components, namely (b–d), and so on. It can be observed that even the partially reconstructed (h) has regained in some measure its finer details. By summing all the six-component images, the reconstructed (i) will be obtained. It can be noticed that (i) is visually, from a subjective point of view, quite close to the original image, as it displays even the finest details quite clearly. This proves experimentally that the designed elliptically shaped uniform filter bank practically behaves and can be used as analysis filter bank for decomposing images into sub-band components.
Next, a quantitative analysis of the quality of image decomposition and reconstruction is performed using specific measures.

3.2. Quantitative Evaluation of Filtering Performance Using Relative Energy, RMSE and PSNR

In order to evaluate the relevance of image decomposition using the designed elliptical uniform filter bank, we can also evaluate the energy of each component sub-band image using the well-known formula E k = i = 1 M j = 1 N p i j , where the image is of size M × N. We will use the more useful expression of the relative energy as a percentage:
E R k = 100 M · N · i = 1 M j = 1 N p i j   %
Calculating the energies of the seven filtered images created as the output of the designed filter bank, the values given in Table 2 are obtained; summing these values, we find out that they add up to 93.13%. It can also be noticed that about 53% of the image energy is contained in the low-pass component (in the frequency domain around zero), while almost 82% is contained in the first four components at the output of LP filter and first three BP filters. As can be seen from the bar plot in Figure 6, the relative energies of the sub-band images decrease monotonically.
In this way, the decomposition of the test image into sub-band images can also be described in terms of image energy. For the designed elliptical filter bank, the monotonical decrease in the energies of the sub-band images, the highest energy corresponding to the LP filter, explains the fact that the original image can be gradually reconstructed by successively summing up the sub-band images from low to high frequencies and that the higher frequency components have the least effect on the recovered image.
The simulation results of the image reconstruction for its component sub-band images show that the original test image is recovered with more and more precision by adding up the components, from the low-pass component to the high-pass one. Even if visually the reconstructed images seem more and more similar to the original one, it would be useful to evaluate their performance in a quantitative manner as well, using some objective metrics commonly applied in image processing.
The most appropriate measures for our purpose would be the root mean squared error (RMSE) and, derived from it, the peak signal-to-noise ratio (PSNR), which is the ratio between the maximum value or power of a signal and the power of noise that affects the signal. In our case, the images are not actually affected by noise. Therefore, we consider as “noise” the difference or error between the intermediate reconstructed image and the original image. The larger the value of the PSNR, the more similar the reconstructed image is to the original image, and the smaller the reconstruction error is.
Because, usually, signals or images have a wide dynamic range, the PSNR is most commonly expressed as a logarithmic quantity in decibels (dB).
Given a grayscale image, I, unaffected by noise, and its noisy or distorted version, J, the RMSE is defined mathematically as
R M S E = 1 M × N · i = 0 M 1 j = 0 N 1 I ( i , j ) J ( i , j ) 2
where by I ( i , j ) and J ( i , j ) we denote the value of the current pixel (i,j) from the two images, respectively. Based on the root mean squared error, the PSNR (in decibels) is defined by the expression
P S N R = 20 · log 10 M a x ( I ) / R M S E
In the above formula, M a x ( I ) is the maximum possible pixel value of the image. In the most common situation, when pixels are represented on 8 bits, this value is 255. Thus, in calculating the RMSE and PSNR, noisy image J ( i , j ) in (39) will be assimilated to the intermediate reconstructed image, with a given degree of distortion (in our case, blurring) compared to the ideal image, I ( i , j ) .
The gradually reconstructed images are denoted as follows, Ir1_2, Ir1_3, Ir1_4, Ir1_5, Ir1_6, and Ir1_7, where Ir1_2 is the image obtained by summing the first two components (LP and BP1), Ir1_3 is the image obtained by summing the first three components, and so on, while Ir1_7 is obtained by summing all seven components. In Table 3, the resulting values for the RMSE and PSNR, using Expressions (39) and (40), are displayed. Therefore, the PSNR obtained by adding up all component sub-band images is 21.79 dB. In future work, we will try to improve this figure by a better design and optimization of the 2D elliptical filter bank.

3.3. Application of Selective Directional Filtering in Oriented Straight Line Detection

The following set of simulations highlight the effect of very selective directional filtering on images containing oriented details. As is well known in image processing, the spectrum of a straight line from an image also has the shape of a straight line in the frequency plane ( ω 1 , ω 2 ) , passing through the origin and orthogonal to the line direction.
Let us consider the image of size 690 × 690 pixels shown in Figure 7a, representing a structure of metallic beams, seen in perspective. This image is relevant for our directional filtering example, as it contains many straight lines oriented in various directions.
The logarithmic FFT spectrum of this image is displayed in Figure 7b. It has an interesting structure, consisting of fine straight lines of various orientations, corresponding to the various straight lines in the image. Taking into account the spectrum structure, the directional filtering can be easily understood. Thus, for a specified orientation angle of the directional filter, only the lines whose spectra overlap along the axis with the narrow filter characteristic will be preserved unaltered in the output image. The lines with other orientation will be more or less blurred. Lines with the spectrum perpendicular to the filter axis will be practically deleted due to blurring.
Applying a very selective Gaussian elliptical filter, like the ones shown in Figure 4, with various orientation angles (as specified in the figure), the filtered images in Figure 7c–g are obtained. For a specified orientation of the filter, different straight lines (various edges of metallic beams and other linear details) are outlined, while others are more or less affected by blurring, depending on the angle of orientation.
In the following section, an efficient implementation at the system level is proposed.

4. Polyphase Implementation of Designed 2D Elliptical FIR Filters

In the following, an efficient implementation is proposed at the system level for the designed 2D FIR elliptically shaped filters, relying on a polyphase decomposition of a 2D filtering operation with a convolution kernel of a relatively large size. In order to handle convolution with such a large kernel, block processing [21,22] and a polyphase decomposition approach are used in this work.
Firstly, using sub-expression sharing techniques, we obtain a fast algorithm that computes four outputs with a three-tap FIR filter for a 3 × 4 filtering operation, with a minimum number of multiplications. It has been shown that the minimal filtering algorithm for computing m outputs with an r-tap FIR filter, which we call F(m, r), requires µ(F(m, r)) = m + r − 1 multiplications [24]. Then, we can nest minimal 1D algorithms to form minimal 2D algorithms for computing 4 × 4 outputs with an 3 × 3 kernel filter [25]. These require the design of an efficient 2D filtering algorithm with a 3 × 3 kernel, but which can compute 4 × 4 output samples in parallel. In this section, a set of matrix equations describing the proposed novel filtering algorithm is presented. The obtained algorithm has been verified in MATLAB, version R2017a.
Thus, two partial output images, denoted as Y 0 and Y 1 , given by Equations (41) and (42), are obtained:
Y 0 = A 0 A 0 A 0 A 0 O 4 × 7 A 0 A 0 O 4 × 7 O 4 × 7 A 0 A 0 A 0 O 4 × 7 A 0 A 0 O 4 × 7 × d i a g A 1 O 7 × 3 O 7 × 3 1 / 4 · A 1 1 / 4 · A 1 1 / 4 · A 1 1 / 4 · A 1 1 / 4 · A 1 1 / 4 · A 1 1 / 2 · A 1 O 7 × 3 1 / 2 · A 1 × r e v ( H T ) × × A 2 O 7 × 6 O 7 × 6 O 7 × 6 A 2 O 7 × 6 O 7 × 6 A 2 A 2 A 2 A 2 O 7 × 6 O 7 × 6 A 2 A 2 A 2 A 2 O 7 × 6 O 7 × 6 A 2 A 2 A 2 A 2 O 7 × 6 × X 2 D
Y 1 = A 0 O 4 × 7 O 4 × 7 A 0 A 0 O 4 × 7 A 0 O 4 × 7 O 4 × 7 A 0 A 0 A 0 × d i a g 1 / 2 · A 1 1 / 2 · A 1 1 / 2 · A 1 O 7 × 3 1 / 2 · A 1 O 7 × 3 O 7 × 3 O 7 × 3 A 1 × r e v ( H T ) × × O 7 × 6 A 2 O 7 × 6 A 2 O 7 × 6 O 7 × 6 O 7 × 6 A 2 A 2 A 2 A 2 O 7 × 6 O 7 × 6 A 2 O 7 × 6 O 7 × 6 O 7 × 6 A 2 × X 2 D
In the above equations, r e v ( H T ) means the reversed version of vector H T , in which its elements are flipped (mirrored) horizontally.
Using the previous partial results, Y 0 and Y 1 , we next compute the output vector containing 16 samples of the 2D filtering operation using the following equation:
Y = Y 0 + Y 1
where the output samples are given by
Y = Y 00 Y 01 Y 02 Y 03 Y 10 Y 11 Y 12 Y 13 Y 20 Y 21 Y 22 Y 23 Y 30 Y 31 Y 32 Y 33 T
and the block matrices A 0 , A 1 and A 2 have the following structure:
A 0 = 1 1 1 1 1 0 0 0 1 1 0 1 1 0 0 1 1 1 1 0 0 0 1 1 0 1 1 1                   A 1 = 1 0 0 1 / 4 1 / 4 1 / 4 1 / 4 1 / 4 1 / 4 1 / 2 0 1 / 2 1 / 2 1 / 2 1 / 2 0 1 / 2 0 0 0 1                 A 2 = 1 0 0 0 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 1 0 0 0 1 1 1 1 0 0 1 0 0 0 1
and O 4 × 7 , O 7 × 3 , O 7 × 6 are zero matrices of size 4 × 7 , 7 × 3 , and 7 × 6 , respectively.
Also, we have vector H of the form
H = h 00 h 01 h 02 h 10 h 11 h 12 h 20 h 21 h 22 T
while input vector X 2 D has the following structure:
X 2 D = x 00 x 01 x 05 x 10 x 11 x 15 x 50 x 51 x 52 x 53 x 54 x 55 T
The above algorithm for a 2D FIR filtering operation has been derived in order to reduce the number of operations, especially multiplications, due to the fact that there are redundant operations in the direct implementation of a 2D FIR filter. Using a new 2D algorithm, we significantly reduced the number of the multiplications not only compared with the direct implementation of a 2D FIR filter but also as compared with a recently proposed algorithm [23]. Using an efficient subexpression sharing technique, it was possible to obtain an increased reduction in the arithmetic complexity especially of the number of multiplications, as can be seen in the above algorithm for a 2D FIR filtering operation.
Using a block polyphase decomposition and the previous fast algorithm, we can obtain an efficient algorithm for the computation of the 2D FIR filter with a large kernel. In order to extend 2D filtering operations at a larger kernel, a block processing approach using polyphase decomposition will be used. In order to obtain 2D polyphase implementation using the proposed 2D algorithm from Equations (41)–(43), a decimation factor of 3 was used. With this value, a 12 × 12 input matrix was obtained.
For an easier understanding of our method, our discussion was restricted to a particular case where the kernel matrix was 9 × 9 and the input matrix was 12 × 12. However, the obtained results can be easily extended for our designed filter matrix. In order to use our previous algorithm for a 2D filter, a decimation factor of 3 was applied, both for the kernel matrix and for the input matrix.
Equations (41)–(43) can now be reformulated for a polyphase block implementation as will be shown below. Vector h is replaced with a new vector, defined as
h 2 D = H 22 H 21 H 20 H 12 H 11 H 10 H 02 H 01 H 00 T
Vectors H 00 , H 01 , H 02 , H 10 , H 11 , H 12 , H 20 , H 21 and H 22 for the case where the kernel matrix is 9 × 9 and the input matrix is 12 × 12 are defined below.
First, vector H i , j has the following generic, parameterized form:
H i , j = h 6 + i , 6 + j h 6 + i , 3 + j h 6 + i , j h 3 + i , 6 + j h 3 + i , 3 + j h 3 + i , j h i , 6 + j h i , 3 + j h i , j
from which we derive nine vectors obtained for i, j = 0, 1, 2; for instance, the following vectors are derived for the indicated indices i and j:
H 00 = h 6 , 6 h 6 , 3 h 6 , 0 h 3 , 7 h 3 , 3 h 3 , 0 h 0 , 6 h 0 , 3 h 0 , 0
H 01 = h 6 , 7 h 6 , 4 h 6 , 1 h 3 , 7 h 3 , 4 h 3 , 1 h 0 , 7 h 0 , 4 h 0 , 1
H 21 = h 8 , 7 h 8 , 4 h 8 , 1 h 5 , 7 h 5 , 4 h 5 , 1 h 2 , 7 h 2 , 4 h 2 , 1
Applying decimation with 3 instead of the kernel matrix of size 9 × 9, we obtain nine matrices of size 3 × 3. For example, for H 01 T using decimation with factor 3, the following 3 × 3 block matrix was obtained:
H 21 = h 21 h 24 h 27 h 51 h 54 h 57 h 81 h 84 h 87
We take the rows of matrix H 21 and concatenate them, and then by reversing the order of the elements, vector H 21 is obtained:
H 21 = h 8 , 7 h 8 , 4 h 8 , 1 h 5 , 7 h 5 , 4 h 5 , 1 h 2 , 7 h 2 , 4 h 2 , 1
Vector x 2 D is also replaced with vector X 2 D , defined as
X 2 D = X 00 X 01 X 05 X 10 X 11 X 15 X 50 X 51 X 52 X 53 X 54 X 55 T
Vectors X i , j , have the following generic, parameterized form:
X i , j = x 6 + i , 6 + j x 6 + i , 3 + j x 6 + i , j x 3 + i , 6 + j x 3 + i , 3 + j x 3 + i , j x i , 6 + j x i , 3 + j x i , j
From this general form, by giving successive values (0, 1, 2,…,5) to indices i and j, all 36 vectors are derived. For instance, the following vectors are obtained for the indicated index values:
X 12 = x 7 , 8 x 7 , 5 x 7 , 2 x 4 , 8 x 4 , 5 x 4 , 2 x 1 , 8 x 1 , 5 x 1 , 2   ( i = 1 , j = 2 )
X 23 = x 8 , 9 x 8 , 6 x 8 , 3 x 5 , 9 x 5 , 6 x 5 , 3 x 2 , 9 x 2 , 6 x 2 , 3   ( i = 2 , j = 3 )
X 31 = x 9 , 7 x 9 , 4 x 9 , 1 x 6 , 7 x 6 , 4 x 6 , 1 x 3 , 7 x 3 , 4 x 3 , 1   ( i = 3 , j = 1 )
X 45 = x 10 , 11 x 10 , 8 x 10 , 5 x 7 , 11 x 7 , 8 x 7 , 5 x 4 , 1 x 4 , 8 x 4 , 5   ( i = 4 , j = 5 )
Applying decimation with a factor 3, instead of the input matrix of 12 × 12, we obtain nine matrices of size 3 × 3. As an example, for vector X21, using decimation with a factor of 3, the following 3 × 3 block matrix results:
X 21 = x 21 x 24 x 27 x 51 x 54 x 57 x 81 x 84 x 87
At this step, we take the rows of matrix X 21 , concatenate them, and then by reversing the order of the elements, the following matrix X 21 is obtained:
X 21 = x 8 , 7 x 8 , 4 x 8 , 1 x 5 , 7 x 5 , 4 x 5 , 1 x 2 , 7 x 2 , 4 x 2 , 1
Thus, we decomposed a 2D FIR filtering operation with a 9 × 9 kernel into 49 inner products, as shown below.
In the preprocessing stage, it is first necessary to obtain, from a 12 × 12 input matrix, matrix X i j of size 3 × 3, using a decimation operation. Then, by taking the rows of matrix X i j , vectors X i j will be obtained, as has been shown previously for matrix X 21 .
Using polyphase decomposition and the obtained equations for the 2D FIR filter (41)–(43), the following equations are used for the polyphase implementation of our 2D FIR filter with a 9 × 9 kernel:
Y 0 = A 0 A 0 A 0 A 0 O 4 × 7 A 0 A 0 O 4 × 7 O 4 × 7 A 0 A 0 A 0 O 4 × 7 A 0 A 0 O 4 × 7 × d 2 D         Y 1 = A 0 O 4 × 7 O 4 × 7 A 0 A 0 O 4 × 7 A 0 O 4 × 7 O 4 × 7 A 0 A 0 A 0 × d 2 D
where O 4 × 7 is a null matrix of size 4 × 7, Y = Y 0 + Y 1 , and also, we have the following vectors:
d 2 D = d 00 d 01 d 02 d 03 d 04 d 05 d 06 d 10 d 11 d 12 d 13 d 14 d 15 d 16 d 20 d 21 d 22 d 23 d 24 d 25 d 26 d 30 d 31 d 32 d 33 d 34 d 35 d 36
d 2 D = d 40 d 41 d 42 d 43 d 44 d 45 d 46 d 50 d 51 d 52 d 53 d 54 d 55 d 56 d 60 d 61 d 62 d 63 d 64 d 65 d 66
In order to obtain the final output samples, a postprocessing stage is required, in which the partial results Y 0 and Y 1 are added.
To determine the elements of vector d 2 D , we first compute
H C 1 = B 1 O 63 × 27 O 63 × 27 1 / 4 · B 1 1 / 4 · B 1 1 / 4 · B 1 1 / 4 · B 1 1 / 4 · B 1 1 / 4 · B 1 1 / 2 · B 1 O 63 × 27 1 / 2 · B 1 × H 22 H 21 H 20 H 12 H 11 H 10 H 02 H 01 H 00 T
X C 1 = B 2 O 63 × 54 O 63 × 54 O 63 × 54 B 2 O 63 × 54 O 63 × 54 B 2 B 2 B 2 B 2 O 63 × 54 O 63 × 54 B 2 B 2 B 2 B 2 O 63 × 54 O 63 × 54 B 2 B 2 B 2 B 2 O 63 × 54 × X 2 D
Then, vectors H C 1 and X C 1 are split into smaller sections of nine elements, and the elements of auxiliary vector d 2 D are computed using an inner product operation, as follows:
d 00 = H C 1 ( 1 : 9 ) X C 1 ( 1 : 9 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . d 06 = H C 1 ( 55 : 63 ) X C 1 ( 55 : 63 ) d 10 = H C 1 ( 64 : 72 ) X C 1 ( 64 : 72 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . d 16 = H C 1 ( 118 : 126 ) X C 1 ( 118 : 126 ) d 20 = H C 1 ( 127 : 135 ) X C 1 ( 127 : 135 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . d 26 = H C 1 ( 181 : 189 ) X C 1 ( 181 : 189 ) d 30 = H C 1 ( 190 : 198 ) X C 1 ( 190 : 198 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . d 36 = H C 1 ( 244 : 252 ) X C 1 ( 244 : 252 )
where “ ” denotes the inner product operation.
In a similar way, the elements of auxiliary vector d 2 D are computed by splitting the two vectors, H C 1 and X C 1 , into smaller sections of nine elements, using an inner product operation. Vectors H C 2 and X C 2 result from the following equations:
H C 2 = 1 / 2 · B 1 1 / 2 · B 1 1 / 2 · B 1 O 63 × 27 1 / 2 · B 1 O 63 × 27 O 63 × 27 O 63 × 27 B 1 × H 22 H 21 H 20 H 12 H 11 H 10 H 2 H 01 H 00 T
X C 2 = O 63 × 54 B 2 O 63 × 54 B 2 O 63 × 54 O 63 × 54 O 63 × 54 B 2 B 2 B 2 B 2 O 63 × 54 O 63 × 54 B 2 O 63 × 54 O 63 × 54 O 63 × 54 B 2 × X 2 D
with B 1 = A 1 I 9 and B 2 = A 2 I 9 , where matrix I 9 is the 9 × 9 identity matrix (with ones on the main diagonal and zeros elsewhere), with the structure
I 9 = 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1
and O 63 × 54 and O 63 × 27 are zero matrices of sizes 63 × 54 and 63 × 27, respectively. Then, we can compute, as before, the intermediate values:
d 40 = H C 2 ( 1 : 9 ) X C 2 ( 1 : 9 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . d 46 = H C 2 ( 55 : 63 ) X C 2 ( 55 : 63 ) d 50 = H C 2 ( 64 : 72 ) X C 2 ( 64 : 72 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . d 56 = H C 2 ( 118 : 126 ) X C 2 ( 118 : 126 ) d 60 = H C 2 ( 127 : 135 ) X C 2 ( 127 : 135 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . d 66 = H C 2 ( 181 : 189 ) X C 2 ( 181 : 189 )
Also, as can be seen from Equations (68) and (72), in order to introduce polyphase decomposition, it was necessary to introduce a post-processing block that performs a segmentation of vectors H C 1 , H C 2 , X C 1 , and X C 2 in segments of nine elements that are used in 49 inner product operations.
The two auxilliary vectors, d 2 D and d 2 D , were introduced to facilitate the reformulation of the algorithm for 2D FIR filtering, with polyphase implementation.
This polyphase algorithm was developed for a 2D FIR filtering operation, with the aim to reduce computational complexity, since it is well known that there are redundant operations in the direct implementation of 2D convolution. In the direct approach, there are, for instance, overlapping input data blocks. For this reason, eliminating redundancy as much as possible is essential for reducing the number of arithmetic operations. The novel approach proposed here, using a subexpression sharing technique, allows for an efficient implementation structure with a high degree of parallelism and therefore an increased speed of operation.

5. Discussion

The proposed design method for 2D elliptically shaped filters is entirely analytical, without using any global numerical optimization techniques. Analytical design techniques lead to closed-form and parametric filters, with adjustable, tunable frequency responses. To the best of the authors’ knowledge, analytical designs for 2D FIR elliptical filter banks have not been previously studied. For this reason, a rigorous comparison in terms of performance with other elliptical filters found in the literature, like [14,15,16,17,18], is quite difficult to make since the design approaches, filter characteristics and purposes are very different.
For instance, paper [18] approaches the design and optimization of the performance of 2D FIR filters with circular and elliptical symmetry. However, it differs significantly from our analytical design method since it uses a global optimization approach, based on a particular, very efficient meta-heuristic algorithm, namely the Salp-Swarm optimization algorithm. As in every numerical optimization algorithm, it starts from an initial set of random parameters, regarded as a population, which is updated over a number of iterations until some fitness condition is met, specifically an imposed maximum and average ripple in the pass-band and stop-band. The 2D FIR filter kernel resulting from the optimization process cannot be, in general, decomposed and the frequency response cannot be factored, as in our analytical method.
For the elliptically shaped filter, the authors have chosen some fixed semi-axes values (the aspect ratio) and the ellipse axes are parallel with the frequency plane axes. Also, in [18], only maximally flat, low-pass circular and elliptical filters with a wide band have been designed. By comparison, in our paper, we have designed narrow-band elliptically shaped filters based on a Gaussian prototype (of the LP, BP and HP type, forming an uniform filter bank) and they are oriented at a specified angle in the frequency plane. In particular, we have designed an elliptical Gaussian filter bank based on a uniform 1D prototype with specified peak frequencies and bandwidths.
However, the filters can be roughly compared regarding the maximum ripple in the stop-band. Due to the specific Gaussian shape, our filters have no ripple in the pass-band. The stop-band ripple of the derived 2D filters would be rather difficult to measure exactly, but in principle, its maximum values are approximately the ones of their prototypes, given in Table 1 from Section 2. It can be noticed that these maximum stop-band ripple values are lower than the ones of the elliptical filters designed in [18].
The elliptically shaped filter bank designed in this work can be regarded as a continuation of the work [23], in which circular 2D FIR filter banks were designed. However, the design technique is more complex for elliptical filters, the expression of the frequency transformation being more complicated than in the circular case. As with circular filter banks, we have analyzed a test image, decomposing and then reconstructing it relatively accurate from its sub-band components. This suggests the eventual possibility of using such filters in image coding. Referring to existing works on related topics, other analytical techniques for designing 2D elliptically shaped filters of the IIR type were previously proposed in [24,25].
For this application, we chose the Gaussian filter as a prototype for the 2D filter bank, due to its well-known advantages. Among others, it can be easily and efficiently approximated and can also be scaled on the frequency axis to modify its selectivity. Because its frequency response is of a zero phase, the frequency components of an image will not be phase-shifted, and thus, the filter will not produce image distortions. The resulting filters have accurate shapes, with negligible distortions.
The proposed solution was based on a new efficient algorithm for a 2D FIR filtering operation with lower arithmetic complexity for a smaller kernel of 3 × 3, which was then extended at a larger kernel size of 30 × 30 using a polyphase decomposition of the given 2D filtering operation and block filtering.
In order to facilitate the reformulation of the algorithm for 2D FIR filtering for a polyphase implementation, we introduced some auxiliary vectors. So, it was possible to extend the proposed algorithm 2D algorithm for a significantly larger size.
Using the proposed algorithm we have significantly reduced the complexity of the algorithm while maintaining the same throughput of 16 output samples at a time, as in [23]. Thus, instead of 100 inner products as in [23], we have only 49 inner products in the proposed algorithm. In the simpler case that was used, where the kernel size was 9 × 9, each inner product involved nine multiplications. Thus, instead of 900 multiplications as in [23], we now have only 49 × 9 = 441 multiplications. This advantage is even more important in the case of hardware implementation.

6. Conclusions

The proposed design technique for 2D elliptically shaped filter banks is fully analytical, without using any complicated numerical optimization algorithms. It is mainly based on a 1D to 2D frequency transformation which is especially developed using various approximations and is applied to the 1D prototype, yielding directly a factored 2D frequency response, which may be useful in a sequential implementation. Equivalently, the overall filter kernel results were directly decomposed as a convolution product of smaller matrices. The major advantage of this novel design approach is that the resulting filter is parametric. The filter specifications (the selectivity and orientation angle) appear explicitly in the filter kernel and the filter is adjustable. Thus, for any given specifications, the filter is determined directly, and there is no need to resume every time the entire design process. This approach leads to filters with accurate shapes and low distortions. As shown through simulations, the uniform elliptical filter bank decomposes an image into sub-band components, with increasing frequency content and decreasing energy.
Then, by adding these sub-band images one by one, starting from the low-frequency component, the initial image is gradually reconstructed. By summing all the sub-band images, the reconstructed image is visually quite close to the original test image, the finest details being quite clearly visible. The reconstruction quality was evaluated numerically using measures such as the RMSE and PSNR.
Regarding the implementation part, the proposed solution based on the polyphase and block filtering approach is very efficient and leads to a filter structure with reduced arithmetical complexity. This is true compared not only to the direct filtering approach (which can be very complex for large filter kernels and large images) but also to the most recent similar solution presented in [23].
In a future continuation of this work, we will study more rigorously the design of 2D elliptical filter banks and their applications in image analysis, in particular, focusing on the improvement of image reconstruction quality.

Author Contributions

Conceptualization, R.M. and D.F.C.; methodology, D.F.C. and R.M.; software, D.F.C. and R.M.; validation, D.F.C. and R.M.; formal analysis, R.M. and D.F.C.; investigation, D.F.C. and R.M.; resources, D.F.C. and R.M.; writing, original draft preparation; writing, review and editing, R.M. and D.F.C.; project administration, R.M.; funding acquisition, R.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by a National Research Grant—ARUT of the TUIASI, project number GnaC2023_250/2024.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lu, W.; Antoniou, A. Two-Dimensional Digital Filters; CRC Press: New York, NY, USA, 1992. [Google Scholar]
  2. Shyu, J.; Pei, S.; Huang, Y. Design of variable two-dimensional FIR digital filters by McClellan transformation. IEEE Trans. Circ. Syst. I 2009, 56, 574–582. [Google Scholar] [CrossRef]
  3. Wang, Y.; Yue, J.; Su, Y.; Liu, H. Design of two-dimensional zero-phase FIR digital filter by McClellan transformation and interval global optimization. IEEE Trans. Circ. Syst. II Express Briefs 2013, 60, 167–171. [Google Scholar] [CrossRef]
  4. Manuel, M.; Elias, E. Design of sharp 2D multiplier-less circularly symmetric FIR filter using harmony search algorithm and frequency transformation. J. Signal Inf. Proc. 2012, 3, 344–351. [Google Scholar] [CrossRef]
  5. Kim, K.J.; Kim, J.H.; Nam, S.W. Design of computationally efficient 2D FIR filters using sampling-kernel-based interpolation and frequency transformation. Electron. Lett. 2015, 51, 1326–1328. [Google Scholar] [CrossRef]
  6. Capizzi, G.; Sciuto, G.L. A novel 2-D FIR filter design methodology based on a Gaussian-based approximation. IEEE Signal Process. Lett. 2019, 26, 362–366. [Google Scholar] [CrossRef]
  7. Bindima, T.; Elias, E. Design and implementation of low complexity 2-D variable digital FIR filters using single-parameter-tunable 2-D Farrow structure. IEEE Trans. Circuits Syst. I Regul. Pap. 2018, 65, 618–627. [Google Scholar] [CrossRef]
  8. Stavrou, V.N.; Tsoulos, I.G.; Mastorakis, N.E. Transformations for FIR and IIR filters’ design. Symmetry 2021, 13, 533. [Google Scholar] [CrossRef]
  9. Apostolov, P.S.; Yurukov, B.P.; Stefanov, A.K. An easy and efficient method for synthesizing two-dimensional finite impulse response filters with improved selectivity. IEEE Signal Proc. Mag. 2017, 34, 180–183. [Google Scholar] [CrossRef]
  10. Lin, Y.P.; Vaidyanathan, P.P. Theory and design of two-dimensional filter banks: A review. Multidim. Syst. Sign. Process. 1996, 7, 263–330. [Google Scholar] [CrossRef]
  11. Shi, G.; Liang, L.; Xie, X. Design of directional filter banks with arbitrary number of subbands. IEEE Trans. Signal Process. 2009, 57, 4936–4941. [Google Scholar] [CrossRef]
  12. Liang, L.; Shi, G.; Xie, X. Nonuniform directional filter banks with arbitrary frequency partitioning. IEEE Trans. Image Process. 2010, 20, 283–288. [Google Scholar] [CrossRef]
  13. Hendre, M.; Patil, S.; Abhyankar, A. Directional filter bank-based fingerprint image quality. Pattern Anal. Appl. 2022, 25, 379–393. [Google Scholar] [CrossRef]
  14. Nguyen, D.; Swamy, M. Approximation design of 2-D digital filters with elliptical magnitude response of arbitrary orientation. IEEE Trans. Circuits Syst. 1986, 33, 597–603. [Google Scholar] [CrossRef]
  15. Keerthi, C.L.; Ramachandran, V.L. Study of elliptical symmetry in 2D IIR Butterworth digital filters. In Proceedings of the 47th IEEE Midwest Symposium on Circuits and Systems, MWSCAS 2004, Hiroshima, Japan, 25–28 July 2004; Volume 2, pp. 77–80. [Google Scholar] [CrossRef]
  16. Abdul-Jabbar, J.M.; Abdulkader, Z.N. Iris recognition using 2-D elliptical-support wavelet filter bank. In Proceedings of the 3rd International Conference on Image Processing Theory, Tools and Applications (IPTA), Istanbul, Turkey, 15–18 October 2012; pp. 359–363. [Google Scholar] [CrossRef]
  17. Kim, T.; Cho, S.; Yoon, J.; Kim, D. Pose Robust Human Detection in Depth Image Using Four Directional 2D Elliptical Filters. In Proceedings of the 2009 11th IEEE International Symposium on Multimedia, San Diego, CA, USA, 14–16 December 2009; pp. 130–135. [Google Scholar] [CrossRef]
  18. Das, T.P.; Dhabal, S.; Venkateswaran, P. Optimal Design of Circularly Symmetric and Elliptical 2d-Fir Filter Based on Salp Swarm Optimization Algorithm. In Proceedings of the 2022 IEEE International Women in Engineering (WIE) Conference on Electrical and Computer Engineering (WIECON-ECE), Naya Raipur, India, 30–31 December 2022; pp. 317–322. [Google Scholar] [CrossRef]
  19. Li, Y.; Zhang, D. Toward Efficient Edge Detection: A Novel Optimization Method Based on Integral Image Technology and Canny Edge Detection. Processes 2025, 13, 293. [Google Scholar] [CrossRef]
  20. Zhang, D.H.; Li, Y.Q.; Xie, G.Z.; Zhang, D.Q.; Wu, S.; Liu, J.X. Digital image correlation method for measuring deformations of vinyl chloride-coated metal multilayer sheets. Mod. Phys. Lett. B 2019, 33, 1950050. [Google Scholar] [CrossRef]
  21. Mertzios, B.G. Fast block implementation of two-dimensional FIR digital filters by systolic arrays. Int. J. Electron. 1992, 73, 1233–1246. [Google Scholar] [CrossRef]
  22. Aziz, M.; Boussakta, S.; McLernon, D.C. High performance 2D parallel block-filtering system for real-time imaging applications using the sharc ADSP21060. Real-Time Imaging 2003, 9, 151–161. [Google Scholar] [CrossRef]
  23. Matei, R.; Chiper, D.F. Analytic Design Technique for 2D FIR Circular Filter Banks and Their Efficient Implementation Using Polyphase Approach. Sensors 2023, 23, 9851. [Google Scholar] [CrossRef]
  24. Matei, R. Design and applications of adjustable 2D digital filters with elliptical and circular symmetry. Analog. Integr. Circuits Signal Process. 2023, 114, 345–358. [Google Scholar] [CrossRef]
  25. Matei, R. Analytical Design of Elliptically-Shaped 2D Recursive Filters. In Proceedings of the 2018 IEEE 61st International Midwest Symposium on Circuits and Systems (MWSCAS), Windsor, ON, Canada, 5–8 August 2018; pp. 964–967. [Google Scholar] [CrossRef]
Figure 1. (a) Ideal Gaussian uniform FB prototype; (b) designed Gaussian uniform FB prototype for 2D FB.
Figure 1. (a) Ideal Gaussian uniform FB prototype; (b) designed Gaussian uniform FB prototype for 2D FB.
Sensors 25 04644 g001
Figure 2. (a) The function cos ω (plotted in red) and its approximation (in blue)—they are practically superposed; (b) the function ω 2 (in red) and its trigonometric approximation using Chebyshev series (in blue).
Figure 2. (a) The function cos ω (plotted in red) and its approximation (in blue)—they are practically superposed; (b) the function ω 2 (in red) and its trigonometric approximation using Chebyshev series (in blue).
Sensors 25 04644 g002
Figure 3. Frequency responses and corresponding contour plots for the component filters of the 2D elliptically shaped FIR filter bank, with the aspect ratio E / F = 2 and orientation angle φ = π / 6 : (a) low-pass filter H E L P ( ω 1 , ω 2 ) ; (bf) band-pass filters H E B P k ( ω 1 , ω 2 ) , with k = 1,…,5.
Figure 3. Frequency responses and corresponding contour plots for the component filters of the 2D elliptically shaped FIR filter bank, with the aspect ratio E / F = 2 and orientation angle φ = π / 6 : (a) low-pass filter H E L P ( ω 1 , ω 2 ) ; (bf) band-pass filters H E B P k ( ω 1 , ω 2 ) , with k = 1,…,5.
Sensors 25 04644 g003
Figure 4. Frequency responses (above) and contour plots (below) for very selective directional low-pass elliptical filters with semi-axes values E = 16 and F = 1 and orientation angles: (a) φ = π / 5 ; (b) φ = π / 6 ; (c) φ = π / 8 ; (d) φ = π / 12 .
Figure 4. Frequency responses (above) and contour plots (below) for very selective directional low-pass elliptical filters with semi-axes values E = 16 and F = 1 and orientation angles: (a) φ = π / 5 ; (b) φ = π / 6 ; (c) φ = π / 8 ; (d) φ = π / 12 .
Sensors 25 04644 g004
Figure 5. Image analysis using the elliptically shaped filter bank: (a) original “Trees_in_winter” image; (b) LP-filtered; (cf) BP-filtered with BPF1, BPF2, BPF3, BPF4, respectively; (g,h) recovered image by summing first 2 and 3 components; (i) recovered image by summing all 7 components (sub-band images).
Figure 5. Image analysis using the elliptically shaped filter bank: (a) original “Trees_in_winter” image; (b) LP-filtered; (cf) BP-filtered with BPF1, BPF2, BPF3, BPF4, respectively; (g,h) recovered image by summing first 2 and 3 components; (i) recovered image by summing all 7 components (sub-band images).
Sensors 25 04644 g005aSensors 25 04644 g005b
Figure 6. Relative energies calculated for the 7 images resulting from the output of the uniform elliptical filter bank.
Figure 6. Relative energies calculated for the 7 images resulting from the output of the uniform elliptical filter bank.
Sensors 25 04644 g006
Figure 7. (a) Grayscale test image “steel structure”; (b) its logarithmic FFT spectrum magnitude; (ch) directionally filtered output images for orientation angles: (c) φ = π / 6 ; (d) φ = π / 8 ; (e) φ = π / 10 ; (f) φ = π / 4 ; (g) φ = 0 ; (h) φ = π / 12 ; (i) φ = π / 3 .
Figure 7. (a) Grayscale test image “steel structure”; (b) its logarithmic FFT spectrum magnitude; (ch) directionally filtered output images for orientation angles: (c) φ = π / 6 ; (d) φ = π / 8 ; (e) φ = π / 10 ; (f) φ = π / 4 ; (g) φ = 0 ; (h) φ = π / 12 ; (i) φ = π / 3 .
Sensors 25 04644 g007aSensors 25 04644 g007b
Table 1. The maximum stop-band ripple for the components of the filter bank.
Table 1. The maximum stop-band ripple for the components of the filter bank.
Filter TypeLPBP1BP2BP3BP4BP5HP
Maximum ripple in stop-band0.002980.004590.003610.0024210.0046010.004410.00321
Table 2. Relative energies (in %) for the 7 images resulting from the output of the uniform elliptical filter bank.
Table 2. Relative energies (in %) for the 7 images resulting from the output of the uniform elliptical filter bank.
Relative EnergyER1ER2ER3ER4ER5ER6ER7
Value (%)53.36413.8918.3466.21544.56513.61363.1323
Table 3. Values of RMSE and PSNR (in dB) for the 6 partially reconstructed images.
Table 3. Values of RMSE and PSNR (in dB) for the 6 partially reconstructed images.
Partially Reconstructed ImageIr1_2Ir1_3Ir1_4Ir1_5Ir1_6Ir1_7
RMSE102.158.1537.5927.8323.4920.75
PSNR (dB)7.9612.8416.6319.2420.7121.79
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Chiper, D.F.; Matei, R. Design Technique and Efficient Polyphase Implementation for 2D Elliptically Shaped FIR Filters. Sensors 2025, 25, 4644. https://doi.org/10.3390/s25154644

AMA Style

Chiper DF, Matei R. Design Technique and Efficient Polyphase Implementation for 2D Elliptically Shaped FIR Filters. Sensors. 2025; 25(15):4644. https://doi.org/10.3390/s25154644

Chicago/Turabian Style

Chiper, Doru Florin, and Radu Matei. 2025. "Design Technique and Efficient Polyphase Implementation for 2D Elliptically Shaped FIR Filters" Sensors 25, no. 15: 4644. https://doi.org/10.3390/s25154644

APA Style

Chiper, D. F., & Matei, R. (2025). Design Technique and Efficient Polyphase Implementation for 2D Elliptically Shaped FIR Filters. Sensors, 25(15), 4644. https://doi.org/10.3390/s25154644

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop