# Multidimensional filter design and implementation

(Redirected from Multidimensional filter design)

Many concepts in one–dimensional signal processing are similar to concepts in multidimensional signal processing. However, many familiar one–dimensional procedures do not readily generalize to the multidimensional case and some important issues associated with multidimensional signals and systems do not appear in the one–dimensional special case.

## Motivation and applications

Most of the signals we witness in real life exist in more than one dimension, be they image, video or sound among many others. A multidimensional (M-D) signal can be modeled as a function of ${\displaystyle M}$  independent variables, where ${\displaystyle M}$  is greater than or equal to 2. Certain concepts for multidimensional signal processing vary from one dimensional signal processing. For example, The computational complexity for multi-dimensional case is higher as it involves more dimensions. Also, assumptions of causality do not hold good for the multi-dimensional case.

A multidimensional (M-D) signal can be modeled as a function of ${\displaystyle M}$  independent variables, where ${\displaystyle M}$  is greater than or equal to 2. These signals may be categorized as continuous, discrete, or mixed. A continuous signal can be modeled as a function of independent variables which range over a continuum of values, example – an audio wave traveling in space.A continuous signal in the multi-dimensional case can be represented in the time domain as ${\displaystyle x(t_{1},t_{2},...t_{M})}$ .The number of arguments within the parenthesis indicates the number of dimensions of the signal.The signal in this case is of n dimensions. A discrete signal, on the other hand, can be modeled as a function defined only on a set of points, such as the set of integers.A discrete signal of ${\displaystyle M}$ -dimensions can be represented in the spatial domain as ${\displaystyle x(n_{1},n_{2},...n_{M})}$ . A mixed signal is a multidimensional signal that is modeled as a function of some continuous variables and some discrete ones, for example an ensemble of time waveforms recorded from an array of electrical transducers is a mixed signal. The ensemble can be modeled with one continuous variable, time, and one or more discrete variables to index the transducers.

Filtering is an application that is performed on signals whenever certain frequencies are to be removed so as to suppress interfering signals and reduce background noise. A mixed filter is a kind of filter that is different from the traditional Finite Impulse Response(FIR) and Infinite impulse response(IIR) filters and these three filters are explained here in detail. We can combine the M-D Discrete Fourier transform(DFT) method and the M-D linear difference equation(LDE) method to filter the M-D signals. This results in the so-called combined DFT/LDE filtering technique in which the Discrete Fourier Transform is performed in some of the dimensions prior to Linear Difference Equation filtering which is performed later in the remaining dimensions. Such kind of filtering of M-D signals is referred to as Mixed domain(MixeD) filtering and the filters that perform such kind of filtering are referred to as MixeD Multidimensional Filters.[1]

Combining Discrete Transforms with Linear Difference Equations for implementing the Multidimensional filters proves to be computationally efficient and straightforward to design with low memory requirements for spatio-temporal applications such as video processing. Also the Linear Difference equations of the MixeD filters are of lower dimensionality as compared to normal multidimensional filters which results in simplification of the design and increase in the stability.[2]

Multidimensional Digital filters are finding applications in many fields such as image processing, video processing, seismic tomography, magnetic data processing, Computed tomography (CT), RADAR, Sonar and many more.[3] There is a difference between 1-D and M-D digital filter design problems. In the 1-D case, the filter design and filter implementation issues are distinct and decoupled. The 1-D filter can first be designed and then particular network structure can be determined through the appropriate manipulation of the transfer function. In the case of M-D filter design, the multidimensional polynomials cannot be factored in general. This means that an arbitrary transfer function can generally not be manipulated into a form required by a particular implementation. This makes the design and implementation of M-D filters more complex than the 1-D filters.

## Problem statement and basic concepts[4]

Multidimensional filters not unlike their one dimensional counterparts can be categorized as

• Finite impulse response filters
• Infinite impulse response filters
• Mixed filters

In order to understand these concepts,it is necessary to understand what an impulse response means.An impulse response is basically the response of the system when the input to that system is a Unit impulse function. An impulse response in the spatial domain can be represented as ${\displaystyle h(n_{1},n_{2},....n_{n})}$ .

A Finite Impulse Response (FIR), or non-recursive filter has an impulse response with a finite number of non-zero samples. This makes their impulse response always absolutely summable and thus FIR filters are always stable. ${\displaystyle x\left({\underline {n}}\right)}$  is the multidimensional input signal and ${\displaystyle y\left({\underline {n}}\right)}$  is the multidimensional output signal. For a ${\displaystyle m}$  dimensional spatial domain, the output ${\displaystyle y}$  can be represented as

${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)=\sum _{l_{1}=0}^{L_{1}-1}\sum _{l_{2}=0}^{L_{2}-1}...\sum _{l_{m}=0}^{L_{m}-1}a(l_{1},l_{2},...,l_{m})x(n_{1}-l_{1},n_{2}-l_{2},...,n_{m}-l_{m})}$

The above difference equation can be represented in the Z-domain as follows

${\displaystyle Y(z_{1},z_{2},....z_{m})=\sum _{l_{1}=0}^{L_{1}-1}\sum _{l_{2}=0}^{L_{2}-1}...\sum _{l_{m}=0}^{L_{m}-1}a(l_{1},l_{2},....l_{m})X(z_{1},z_{2},...z_{m})z_{1}^{-l_{1}}z_{2}^{-l_{2}}......z_{m}^{-l_{m}}}$ ,

where ${\displaystyle X(z_{1},z_{2},...z_{m})}$  and ${\displaystyle Y(z_{1},z_{2},....z_{m})}$  are the Z-transform of ${\displaystyle x(n_{1},n_{2},...n_{m})}$ , and ${\displaystyle y(n_{1},n_{2},...n_{m})}$  respectively.

The transfer function ${\displaystyle H(z_{1},z_{2},...z_{m})}$  is given by,

${\displaystyle H(z_{1},z_{2},....z_{m})=Y(z_{1},z_{2},...z_{m})/X(z_{1},z_{2},....z_{m})}$

In the case of FIR filters the transfer function consists of only numerator terms as the denominator is unity due to the absence of feedback.

An Infinite Impulse Response (IIR), or recursive filter (due to feedback) has infinite-extent impulse response. Its input and output satisfy a multidimensional difference equation of finite order. IIR filters may or may not be stable and in many cases are less complex to realize when compared to FIR filters. The promise of IIR filters is a potential reduction in computation compared to FIR filters when performing comparable filtering operations. by, feeding back output samples, we can use a filter with fewer coefficients (hence less computations) to implement a desired operation. On the other hand, IIR filters pose some potentially significant implementation and stabilization problems not encountered with FIR filters. The design of an M-D recursive filter is quite different from the design of a 1-D filter which is due to the increased difficulty of assuring stability. For a ${\displaystyle m}$  dimensional domain, the output ${\displaystyle y}$  can be represented as

${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)=\sum _{l_{1}=0}^{L_{1}-1}\sum _{l_{2}=0}^{L_{2}-1}...\sum _{l_{m}=0}^{L_{m}-1}a(l_{1},l_{2},...,l_{m})x(n_{1}-l_{1},n_{2}-l_{2},...,n_{m}-l_{m})-\sum _{m_{1}=0}^{M_{1}-1}\sum _{m_{2}=0}^{M_{2}-1}...\sum _{m_{m}=0}^{M_{m}-1}b(m_{1},m_{2},...,m_{m})y(n_{1}-m_{1},n_{2}-m_{2},...,n_{m}-m_{m})}$

${\displaystyle Y(z_{1},z_{2},....z_{m})=\sum _{l_{1}=0}^{L_{1}-1}\sum _{l_{2}=0}^{L_{2}-1}...\sum _{l_{m}=0}^{L_{m}-1}a(l_{1},l_{2},....l_{m})X(z_{1},z_{2},...z_{m})z_{1}^{-l_{1}}z_{2}^{-l_{2}}......z_{m}^{-l_{m}}-\sum _{m_{1}=0}^{M_{1}-1}\sum _{m_{2}=0}^{M_{2}-1}...\sum _{m_{m}=0}^{M_{m}-1}b(m_{1},m_{2},....m_{m})Y(z_{1},z_{2},...z_{m})z_{1}^{-m_{1}}z_{2}^{-m_{2}}......z_{m}^{-m_{m}}}$

The transfer function in this case will have both numerator and denominator terms due to the presence of feedback.

Although multidimensional difference equations represent a generalization of 1-D difference equations, they are considerably more complex and quite different. A number of important issues associated with multidimensional difference equations, such as the direction of recursion and the ordering relation, are really not an issue in the 1-D case. Other issues such as stability, although present in the 1-D case, are far more difficult to understand for multidimensional systems

Multidimensional(M-D) filtering may also be achieved by carrying out the P-dimensional Discrete Fourier transform (DFT) over P of the dimensions where (P<M) and spatio-temporal (M - P) dimensional Linear Difference Equation (LDE) filtering over the remaining dimensions. This is referred to as the combined DFT/LDE method. Such an implementation is referred to as mixed filter implementation. Instead of using Discrete Fourier Transform(DFT), other transforms such as Discrete Cosine Transform(DCT) and Discrete Hartley Transform(DHT) can also be used, depending on the application. The Discrete Cosine Transform(DCT) is often preferred for the transform coding of images because of its superior energy-compaction property while Discrete Hartley Transform(DHT) is useful when a real-valued sequence is to be mapped onto a real-valued spectrum.[2]

In general, the M-D Linear Difference Equation (LDE) filter method convolves a real M-D input sequence x(n(M)) with a M-D unit impulse sequence h(n(M))to obtain a desired M-D output sequence y(n(M)).
y(n(M)) = x(n(M)) ${\displaystyle *{\overset {M}{\cdots }}*}$  h(n(M)),
where ${\displaystyle *{\overset {M}{\cdots }}*}$  refers to the M-D convolutional(convolution) operator and (n(M)) refers to the M-D signal domain index vector.
If a sequence is zero for some i and for all ${\displaystyle n_{i}}$  > ${\displaystyle L_{i}}$ , where ${\displaystyle L_{i}<}$  ${\displaystyle \infty }$ , that sequence is said to be duration bounded in the ith dimension. A multiplicative operator (R(M)) may be used to obtain from (x(M)) a M-D sequence that is duration bounded. An M-D sequence, ${\displaystyle {\bar {x}}\ }$ (n(M)) = x(n(M))R(n(M)) is duration bounded in the first P dimensions if R(n(M)) = 1 ${\displaystyle \forall }$  r(P) where r(P) ${\displaystyle \subset }$  n(M) and ${\displaystyle r_{i}}$  ${\displaystyle \leq }$  ${\displaystyle L_{i}<}$  ${\displaystyle \infty }$ , i = 1,2,3....P where P ${\displaystyle \leq }$  M and 0 otherwise .

The MixeD filter method requires that the M-D input sequence be duration bounded in P of the M dimensions. The index (n(M)) is then ordered so that ${\displaystyle \left(n_{1},n_{2},...,n_{p}\right)}$  corresponds to the duration-bounded dimensions. The MixeD filtering method involves a P-dimensional(P-D) discrete forward transform operation F(k(P))[.] on ${\displaystyle {\bar {x}}\ }$ (n(M)) over the first P variables ${\displaystyle \left(n_{1},n_{2},...,n_{p}\right)}$  , which we can write as X(k(P),n(M-P)) = F(k(P))[${\displaystyle {\bar {x}}\ }$ (n(M))]. Examples of F(k(P))[.] are the P-Dimensional DFT, DCT and DHT. According to the MixeD filter method, each complex sequence, X(k(P),n(M-P)) is filtered by a (M - P)-dimensional LDE. The LDE filters have impulse responses h(k(P),n(M-P)). Finally the complex output sequences of the LDE filters, i.e. Y(k(P),n(M-P)) are inverse transformed using the operator F−1(k(P))[.], to give the final M-D filtered output signal, ${\displaystyle {\bar {y}}\ }$ (n(M)).
The three step process can be summarized as follows,[1]
Step 1. X(k(P),n(M-P)) = F(k(P))[${\displaystyle {\bar {x}}\ }$ (n(M))]
Step 2. Y(k(P),n(M-P)) = X(k(P),n(M-P)) ${\displaystyle *{\overset {M-P}{\cdots }}*}$  h(k(P),n(M-P))
Step 3. ${\displaystyle {\bar {y}}\ }$ (n(M)) = F−1(k(P))[Y(k(P),n(M-P))]
The crucial step in the MixeD filter design is the 2nd step. This is because filtering takes place in this step. Since there is no filtering involved in Steps 1 and 3, there is no need to weigh the transform coefficients.
The block diagram which shows the MixeD filter method can be seen below.

## FIR filter implementation

### Direct convolution

Output of any Linear Shift Invariant (LSI) filter can be determined from its input by means of the convolution sum. There are a finite number of non-zero samples and the limits of summation are finite for a FIR filter. The convolution sum serves as an algorithm that enables us to compute the successive output samples of the filter. As an example, let is assume that the filter has support over the region {(${\displaystyle n_{1}}$ ,${\displaystyle n_{2}}$ ,...,${\displaystyle n_{m}}$ ): ${\displaystyle 0}$ ${\displaystyle n_{1}}$  < ${\displaystyle N_{1}}$  , ${\displaystyle 0}$ ${\displaystyle n_{2}}$  < ${\displaystyle N_{2}}$ ,...,${\displaystyle 0}$ ${\displaystyle n_{m}}$  < ${\displaystyle N_{m}}$  }, the output samples can be computed using[4]

${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)=\sum _{k_{1}=0}^{N_{1}-1}\sum _{k_{2}=0}^{N_{2}-1}...\sum _{k_{m}=0}^{N_{m}-1}h(k_{1},k_{2},...,k_{m})x(n_{1}-k_{1},n_{2}-k_{2},...,n_{m}-k_{m})}$

If all input samples are available, the output samples can be computed in any order or can also be computed simultaneously. However, if only selected samples of the output are desired, only those samples need to be computed. The number of multiplications and additions for one desired output sample is (${\displaystyle N_{1}}$ .${\displaystyle N_{2}}$ ...${\displaystyle N_{m}}$ ) and (${\displaystyle N_{1}}$ .${\displaystyle N_{2}}$ ...${\displaystyle N_{m}}$ )–${\displaystyle 1}$  respectively.

For the 2D case, the computation of ${\displaystyle y\left(n_{1},n_{2}\right)}$  depends on input samples from (${\displaystyle N_{1}}$ ${\displaystyle 1}$ ) previous columns of the input and the (${\displaystyle N_{2}}$ ${\displaystyle 1}$ ) previous rows. If the input samples arrive row by row, we need sufficient storage to store ${\displaystyle N_{2}}$  rows of the input sequence. If the input is available column by column instead, we need to store ${\displaystyle N_{1}}$  columns of the input. A zero phase filter with a real impulse response satisfies ${\displaystyle h\left(n_{1},n_{2}\right)}$  = ${\displaystyle h\left(-n_{1},-n_{2}\right)}$ , which means that each sample can be paired with another of identical value. In this case we can use the arithmetic distributive law to interchange some of the multiplications and additions, to reduce the number of multiplications necessary to implement the filter, but the number of multiplications is still proportional to the filter order. Specifically, if the region of support for the filter is assumed to be rectangular and centered at the origin, we have

${\displaystyle y\left(n_{1},n_{2}\right)=\sum _{k_{1}=-N_{1}}^{N_{1}}\sum _{k_{2}=-N_{2}}^{N_{2}}h(k_{1},k_{2})x(n_{1}-k_{1},n_{2}-k_{2})}$

${\displaystyle y\left(n_{1},n_{2}\right)=\sum _{k_{1}=-N_{1}}^{N_{1}}\sum _{k_{2}=1}^{N_{2}}h(k_{1},k_{2})[x(n_{1}-k_{1},n_{2}-k_{2})+x(n_{1}+k_{1},n_{2}+k_{2})]+\sum _{k_{1}=1}^{N_{1}}h(k_{1},0)[x(n_{1}-k_{1},n_{2})+x(n_{1}+k_{1},n_{2})]+h(0,0)x(n_{1},n_{2})}$

Using the above equation to implement an FIR filter requires roughly one-half the number of multiplications of an implementation, although both implementations require the same number of additions and the same amount of storage. If the impulse response of an FIR filter possess other symmetries, they can be exploited in a similar fashion to reduce further the number of required multiplications.

### Discrete Fourier transform implementations of FIR filters

The FIR filter can also be implemented by means of the Discrete Fourier transform (DFT). This can be particularly appealing for high-order filters because the various Fast Fourier transform algorithms permit the efficient evaluation of the DFT. The general form of DFT for multidimensional signals can be seen below, where ${\displaystyle N}$  is periodicity matrix, ${\displaystyle x({\underline {n}})}$  is the multidimensional signal in the space domain, ${\displaystyle X({\underline {k}})}$  is the DFT of ${\displaystyle x({\underline {n}})}$  in frequency domain, ${\displaystyle I_{N}}$  is a region containing |${\displaystyle detN}$ | samples in ${\displaystyle n}$  domain, and ${\displaystyle J_{N}}$  is a region containing |${\displaystyle detN^{T}}$ | (${\displaystyle =detN}$ ) frequency samples.[4]

${\displaystyle X\left({\underline {k}}\right)=\sum _{n\epsilon I_{n}}x\left({\underline {n}}\right)e^{-j{\underline {k}}^{T}\left(2\pi {\underline {N}}^{-1}\right){\underline {n}}}}$

Let ${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)}$  be the linear convolution of a finite-extent sequence ${\displaystyle x\left(n_{1},n_{2},...,n_{m}\right)}$  with the impulse response ${\displaystyle h\left(n_{1},n_{2},...,n_{m}\right)}$  of an FIR filter.

${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)=x\left(n_{1},n_{2},...,n_{m}\right)*h\left(n_{1},n_{2},...,n_{m}\right)}$

On computing Fourier Transform of both sides of this expression, we get

${\displaystyle Y\left(w_{1},w_{2},...,w_{m}\right)=X\left(w_{1},w_{2},...,w_{m}\right)}$ ${\displaystyle H\left(w_{1},w_{2},...,w_{m}\right)}$

There are many possible definitions of the M-D discrete Fourier transform, and that all of these correspond to sets of samples of the M-D Fourier transform; these DFT's can be used to perform convolutions as long their assumed region of support contains the support for ${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)}$ . Let us assume that ${\displaystyle Y\left(w_{1},w_{2},...,w_{m}\right)}$  is sampled on a ${\displaystyle N_{1}}$ x${\displaystyle N_{2}}$ x...x${\displaystyle N_{m}}$  rectangular lattice of samples, and let

${\displaystyle Y\left(k_{1},k_{2},...,k_{m}\right)=Y\left(w_{1},w_{2},...,w_{m}\right)|w_{1}={\frac {2\pi k_{1}}{N_{1}}};w_{2}={\frac {2\pi k_{2}}{N_{2}}};...;w_{m}={\frac {2\pi k_{m}}{N_{m}}}}$

Therefore, ${\displaystyle Y\left(k_{1},k_{2},...,k_{m}\right)=X\left(k_{1},k_{2},...,k_{m}\right)}$ ${\displaystyle H\left(k_{1},k_{2},...,k_{m}\right)}$ .

To compute (${\displaystyle N_{1}}$ x${\displaystyle N_{2}}$ x...x${\displaystyle N_{m}}$ )-point DFT's of ${\displaystyle x}$  and ${\displaystyle h}$  requires that both sequences have their regions of support extended with samples of value zero. If ${\displaystyle {\hat {y}}\left(n_{1},n_{2},...,n_{m}\right)}$  results from the inverse DFT of the product ${\displaystyle X\left(k_{1},k_{2},...,k_{m}\right)}$ .${\displaystyle H\left(k_{1},k_{2},...,k_{m}\right)}$  , then ${\displaystyle {\hat {y}}\left(n_{1},n_{2},...,n_{m}\right)}$  will be the circular convolution of ${\displaystyle h\left(n_{1},n_{2},...,n_{m}\right)}$  and ${\displaystyle x\left(n_{1},n_{2},...,n_{m}\right)}$ . If ${\displaystyle N_{1}}$ , ${\displaystyle N_{2}}$ ,..., ${\displaystyle N_{m}}$  are chosen to be at least equal to the size of ${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)}$ , then ${\displaystyle {\hat {y}}\left(n_{1},n_{2},...,n_{m}\right)=y\left(n_{1},n_{2},...,n_{m}\right)}$ . This implementation technique is efficient with respect to computation, however it is prodigal with respect to storage as this method requires sufficient storage to contain all ${\displaystyle N_{1}}$ x${\displaystyle N_{2}}$ x...x${\displaystyle N_{m}}$  points of the signal ${\displaystyle x\left(n_{1},n_{2},...,n_{m}\right)}$ . In addition, we must store the filter response coefficients ${\displaystyle H\left(k_{1},k_{2},...,k_{m}\right)}$ . By direct convolution the number of rows of the input that needs to be stored depends on the order of the filter. However, with the DFT the whole input must be stored regardless of the filter order.

For the 2D case, and assuming that ${\displaystyle H\left(k_{1},k_{2}\right)}$  is pre-computed, the number of real multiplications needed to compute ${\displaystyle y\left(n_{1},n_{2}\right)}$  is

${\displaystyle 2}$ x${\displaystyle N_{1}}$ x${\displaystyle N_{2}}$ x${\displaystyle \log _{2}}$ ${\displaystyle N_{1}}$ x${\displaystyle N_{2}}$  ${\displaystyle +}$  ${\displaystyle 2}$ x${\displaystyle N_{1}}$ x${\displaystyle N_{2}}$ ; ${\displaystyle N_{1}}$  and ${\displaystyle N_{2}}$  are powers of 2

### Block convolution

The arithmetic complexity of the DFT implementation of an FIR filter is effectively independent of the order of the filter, while the complexity of a direct convolution implementation is proportional to the filter order. So, the convolution implementation would be more efficient for the lower filter order. As, the filter order increases, the DFT implementation would eventually become more efficient.[4]

The problem with the DFT implementation is that it requires a large storage. The block convolution method offers a compromise. With these approaches the convolutions are performed on sections or blocks of data using DFT methods. Limiting the size of these blocks limits the amount of storage required and using transform methods maintains the efficiency of the procedure.

The simplest block convolution method is called the overlap-add technique. We begin by partitioning 2-D array, ${\displaystyle x\left(n_{1},n_{2}\right)}$ , into (${\displaystyle N_{1}}$ x${\displaystyle N_{2}}$ ) point sections, where the section indexed by the pair (${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ ) is defined as below:

${\displaystyle x_{k_{1}k_{2}}\left(n_{1},n_{2}\right)=x\left(n_{1},n_{2}\right){\text{if }}k_{1}N_{1}\leq n_{1}<(k_{1}+1)N_{1}{\text{and }}k_{2}N_{2}\leq n_{2}<(k_{2}+1)N_{2}}$

The regions of support for the different sections do not overlap, and collectively they cover the entire region of support of the array ${\displaystyle x\left(n_{1},n_{2}\right)}$ . Thus,

${\displaystyle x\left(n_{1},n_{2}\right)=\sum _{k_{1}}\sum _{k_{2}}x_{k_{1}k_{2}}\left(n_{1},n_{2}\right)}$

Because the operation of discrete convolution distributes with respect to addition, ${\displaystyle y\left(n_{1},n_{2}\right)}$  can be written as follows:

${\displaystyle y\left(n_{1},n_{2}\right)=x\left(n_{1},n_{2}\right)**h\left(n_{1},n_{2}\right)=\left(\sum _{k_{1}}\sum _{k_{2}}x_{k_{1}k_{2}}\left(n_{1},n_{2}\right)\right)**h\left(n_{1},n_{2}\right)=\sum _{k_{1}}\sum _{k_{2}}\left(x_{k_{1}k_{2}}\left(n_{1},n_{2}\right)**h\left(n_{1},n_{2}\right)\right)=\sum _{k_{1}}\sum _{k_{2}}y_{k_{1}k_{2}}\left(n_{1},n_{2}\right)}$

Figure (a) shows the section of the input array ${\displaystyle x_{21}\left(n_{1},n_{2}\right)}$ . Figure (b) shows the region of support of the convolution of that section with ${\displaystyle h}$  that is ${\displaystyle y_{21}\left(n_{1},n_{2}\right)}$ .

The block output ${\displaystyle y_{k_{1}k_{2}}\left(n_{1},n_{2}\right)}$  is the convolution of ${\displaystyle h\left(n_{1},n_{2}\right)}$  with block ${\displaystyle \left(k_{1},k_{2}\right)}$  of ${\displaystyle x\left(n_{1},n_{2}\right)}$ . The result of the block convolution must be added together to produce the complete filter output ${\displaystyle y\left(n_{1},n_{2}\right)}$ . As the support of ${\displaystyle y_{k_{1}k_{2}}\left(n_{1},n_{2}\right)}$  is greater than the support of ${\displaystyle x_{k_{1}k_{2}}\left(n_{1},n_{2}\right)}$ , the output blocks will of necessity overlap, but the degree of that overlap is limited.

The convolutions of the ${\displaystyle x_{k_{1}k_{2}}\left(n_{1},n_{2}\right)}$  and ${\displaystyle h(n_{1},n_{2})}$  can be evaluated by means of discrete Fourier transforms, provided that the size of the transform is large enough to support ${\displaystyle y_{k_{1}k_{2}}\left(n_{1},n_{2}\right)}$ . By controlling the block size we can limit the size of the DFTs, which reduces the required storage.

The overlap-save method is an alternative block convolution technique. When the block size is considerably larger than the support of ${\displaystyle h}$ , the samples of ${\displaystyle y}$  in the center of each block are not overlapped by samples from neighboring blocks. Similarly, when a sequence ${\displaystyle x}$  is circularly convolved with another, ${\displaystyle h}$ , which has a much smaller region of support, only a subset of the samples of that circular convolution will show the effects of the spatial aliasing. The remaining samples of the circular convolution will be identical to the samples of the linear convolution. Thus if an ${\displaystyle (N_{1}}$ ×${\displaystyle N_{2})}$  -point section of ${\displaystyle x\left(n_{1},n_{2}\right)}$  is circularly convolved with an ${\displaystyle (M_{1}}$ ×${\displaystyle M_{2})}$  -point impulse response using an ${\displaystyle (N_{1}}$ ×${\displaystyle N_{2})}$  -point DFT, the resulting circular convolution will contain a cluster of ${\displaystyle \left(N_{1}-M_{1}+1\right)}$  ×${\displaystyle \left(N_{2}-M_{2}+1\right)}$  samples which are identical to samples of the linear convolution, ${\displaystyle y}$ . The whole output array can be constructed form these "good" samples by carefully choosing the regions of support for the input sections. If the input sections are allowed to overlap, the "good" samples of the various blocks can be made to abut. The overlap-save method thus involves overlapping input sections, whereas the overlap-add method involves overlapping output sections.

The figure above shows the overlap-save method. The shaded region gives those samples of ${\displaystyle y}$  for which both the ${\displaystyle (N_{1}}$ ×${\displaystyle N_{2})}$  circular convolution and the linear convolution of ${\displaystyle x}$  with ${\displaystyle h}$  are identical.

For both the overlap-add and overlap-save procedures, the choice of block size affects the efficiency of the resulting implementation. It affects the amount of storage needed, and also affects the amount of computation.

## FIR filter design

### Minimax design of FIR filters

The frequency response of a multi-dimensional filter is given by,

${\displaystyle H(w_{1},w_{2},...w_{n})=\sum _{n_{1}=0}^{N_{1}-1}\sum _{n_{2}=0}^{N_{2}-1}...\sum _{n_{n}=0}^{N_{n}-1}h(n_{1},n_{2},....n_{n})e^{-jw_{1}n_{1}}e^{-jw_{2}n_{2}}.....e^{-jw_{n}n_{n}}}$

where ${\displaystyle h(n_{1},n_{2},....n_{n})}$  is the impulse response of the designed filter for size ${\displaystyle N_{1}\times N_{2}\times .....N_{n}}$

The frequency response of the ideal filter is given by

${\displaystyle I(w_{1},w_{2},...w_{n})=\sum _{n_{1}=-\infty }^{\infty }\sum _{n_{2}=-\infty }^{\infty }...\sum _{n_{n}=-\infty }^{\infty }i(n_{1},n_{2},....n_{n})e^{-jw_{1}n_{1}}e^{-jw_{2}n_{2}}.....e^{-jw_{n}n_{n}}}$

where ${\displaystyle i(n_{1},n_{2},...n_{n})}$  is the impulse response of the ideal filter.

The error measure is given by subtracting the above two results i.e.

${\displaystyle E(w_{1},w_{2},....w_{n})=H(w_{1},w_{2},.....w_{n})-I(w_{1},w_{2},.....w_{n})}$

The maximum of this error measure is what needs to be minimized.There are different norms available for minimizing the error namely:

${\displaystyle L_{2}norm}$  given by the formula

${\displaystyle E_{2}=[1/(2\pi )^{n}\int \limits _{-\pi }^{\pi }\int \limits _{-\pi }^{\pi }...\int \limits _{-\pi }^{\pi }\left\vert E(w_{1},w_{2},...w_{n})\right\vert ^{2}dw_{1}dw_{2}...dw_{n}]^{1/2}}$

${\displaystyle L_{p}norm}$  given by the formula

${\displaystyle E_{p}=[1/(2\pi )^{n}\int \limits _{-\pi }^{\pi }\int \limits _{-\pi }^{\pi }...\int \limits _{-\pi }^{\pi }\left\vert E(w_{1},w_{2},...w_{n})\right\vert ^{p}dw_{1}dw_{2}...dw_{n}]^{1/p}}$

if p =2 we get the ${\displaystyle L_{2}norm}$  and if p tends to ${\displaystyle \infty }$  we get the ${\displaystyle L_{\infty }}$  norm.The ${\displaystyle L_{\infty }}$  norm is given by,

${\displaystyle E_{\infty }=\max _{(w_{1},w_{2},...w_{n}\in B)}\left\vert E(w_{1},w_{2},...w_{n})\right\vert }$

When we say minimax design the ${\displaystyle L_{\infty }}$  norm is what comes to mind.

### Design using transformation

Another method to design a multidimensional FIR filter is by the transformation from 1-D filters. This method was first developed by McClellan as other methods were time consuming and cumbersome. The first successful implementation was achieved by Mecklenbrauker and Mersereau[5][6] and was later revised by McClellan and Chan.[7] For a zero phase filter the one phase impulse response is given by[4]

${\displaystyle h(\ {\underline {n}})=h^{*}(-\ {\underline {n}})}$

where ${\displaystyle h^{*}(-\ {\underline {n}})}$  represents the complex conjugate of ${\displaystyle h(\ {\underline {n}})}$ .

Let ${\displaystyle H(\ {\underline {w}})}$  be the frequency response of ${\displaystyle h(\ {\underline {n}})}$ .Assuming ${\displaystyle h(\ {\underline {n}})}$  is even,we can write

${\displaystyle H(w)=\sum _{n=0}^{N}a_{n}cos(wn)}$

where ${\displaystyle a_{n}}$  is defined as ${\displaystyle a_{n}=h(0)}$  if n=0 and ${\displaystyle a_{n}=2h(n)}$  if n${\displaystyle \neq }$ 0.Also ${\displaystyle cos(wn)}$  is a polynomial of degree n known as the Chebyshev polynomial.

The variable is ${\displaystyle cos(w)}$  and the polynomial can be represented by ${\displaystyle T_{n}(cos(w))}$ .

Thus ${\displaystyle H(w)=\sum _{n=0}^{N}a(n)T_{n}(cos(w))}$  is the required 1-D frequency response in terms of Chebyshev polynomial ${\displaystyle T_{n}(cos(w))}$ .

If we consider ${\displaystyle F(w_{1},w_{2},...w_{n})}$  to be a transformation function where${\displaystyle F(w_{1},w_{2},...w_{n})}$  maps to ${\displaystyle cos(w)}$ ,then we get,

${\displaystyle H(w_{1},w_{2},....w_{n})=\sum _{n=0}^{N}a_{n}T_{n}[F(w_{1},w_{2},...w_{n})]}$

The contours and the symmetry of ${\displaystyle H(w_{1},w_{2},.....w_{n})}$  depend on that of ${\displaystyle F(w_{1},w_{2},....w_{n})}$ . ${\displaystyle F(w_{1},w_{2},....w_{n})}$  is also called the mapping function.

The values of ${\displaystyle H(w_{1},w_{2},...w_{n})}$  can be obtained from the values of the 1_D prototype ${\displaystyle H(w)}$ .

The conditions for choosing the mapping function are

• · It must be a valid frequency response of a md filter
• · It should be real
• · It should lie between -1 and 1.

Considering a two dimensional case to compute the size of ${\displaystyle H(w_{1},w_{2})}$ , If the 1-D prototype has size ${\displaystyle (2N+1)}$  and the mapping function has size ${\displaystyle (2Q+1)*(2Q+1)}$ ,then the size of the desired ${\displaystyle H(w_{1},w_{2})}$  will be ${\displaystyle (2NQ+1)*(2NQ+1)}$

The main advantages of this method are

• Easy to implement
• ·Easy to understand 1-D concepts
• ·Optimal filter design is possible

### Implementation of filters designed using transformations

Methods such as Convolution or implementation using the DFT can be used for the implementation of FIR filters. However, for filters of moderate order another method can be used which justifies the design using transformation.Consider the equation for a 2-dimensional case,

${\displaystyle H(w_{1},w_{2})=\sum _{n=0}^{N}a_{n}T_{n}[F(w_{1},w_{2})]}$

where,${\displaystyle T_{n}[F(w_{1},w_{2})]}$  is a Chebyshev polynomial.These polynomials are defined as,

${\displaystyle T_{0}[x]=1}$

${\displaystyle T_{1}[x]=x}$

${\displaystyle T_{n}[x]=2xT_{n-1}[x]-T_{n-2}[x].}$

Using this we can form a digital network to realize the 2-D frequency response as shown in the figure below.Replacing x by ${\displaystyle F(w_{1},w_{2})}$  we get,

${\displaystyle T_{n}[F(w_{1},w_{2})]=2F(w_{1},w_{2})T_{n-1}[F(w_{1},w_{2})]-T_{n-2}[F(w_{1},w_{2})]}$

Since each of these signals can be generated from two lower order signals, a ladder network of N outputs can be formed such that frequency response between the input and nth output is ${\displaystyle T_{n}[F(w_{1},w_{2})}$  .By weighting these outputs according to the equation mentioned below, The filter ${\displaystyle H(w_{1},w_{2})}$  can be realized.

${\displaystyle H(w_{1},w_{2})=\sum _{n=0}^{N}a_{n}T_{n}[F(w_{1},w_{2})]}$

This realization is as shown in the figure below.

In the figure,the filters F define the transformation function and h(n) is the impulse response of the 1-D prototype filter .

### Trigonometric sum-of-squares optimization

Here we discuss a method for multidimensional FIR filter design via sum-of-squares formulations of spectral mask constraints. The sum-of-squares optimization problem is expressed as a semidefinite program with low-rank structure, by sampling the constraints using discrete sine and cosine transforms. The resulting semidefinite program is then solved by a customized primal-dual interior-point method that exploits low-rank structure. This leads to substantial reduction in the computational complexity, compared to general-purpose semidefinite programming methods that exploit sparsity.[8]

A variety of one-dimensional FIR filter design problems can be expressed as convex optimization problems over real trigonometric polynomials, subject to spectral mask constraints. These optimization problems can be formulated as semidefinite programs (SDPs) using classical sum-of-squares (SOS) characterizations of nonnegative polynomials, and solved efficiently via interior-point methods for semidefinite programming.

For the figure above, FIR filter in frequency domain with d=2; n1=n2=5 and has 61 sampling points. The extension of these techniques to multidimensional filter design poses several difficulties. First, SOS characterization of multivariate positive trigonometric polynomials may require factors of arbitrarily high degree. Second, difficulty stems from the large size of the semidefinite programming problems obtained from multivariate SOS programs. Most recent research on exploiting structure in semidefinite programming has focused on exploiting sparsity of the coefficient matrices. This technique is very useful for SDPs derived from SOS programs and are included in several general purpose semidefinite programming packages.

Let ${\displaystyle Z_{d}}$  and ${\displaystyle N_{d}}$  denote the sets of d-vectors of integers and natural numbers, respectively. For a vector ${\displaystyle x}$ , we define ${\displaystyle diag\left(x\right)}$  as the diagonal matrix with ${\displaystyle x_{i}}$  as its ith diagonal entry. For a square matrix ${\displaystyle X}$ , ${\displaystyle diag\left(X\right)}$  is a vector with the ${\displaystyle i^{th}}$  entry ${\displaystyle Xii}$ . The matrix inequality ${\displaystyle A>\geq B}$  denotes that ${\displaystyle A-B}$  is positive definite (semidefinite). ${\displaystyle Tr\left(A\right)}$  denotes the trace of a symmetric matrix ${\displaystyle A}$ .

${\displaystyle R}$  is a ${\displaystyle d}$ -variate trigonometric polynomial of degree ${\displaystyle n\epsilon Z_{d}}$ , with real symmetric coefficients ${\displaystyle x_{k}}$  = ${\displaystyle x_{-k}}$

${\displaystyle R\left(w\right)=\sum _{k=-n}^{n}x_{k}e^{-jk^{T}w}}$

The above summation is over all integer vectors ${\displaystyle k}$  that satisfy ${\displaystyle -n\leq k\leq n}$ , where the inequalities between the vectors are interpreted element-wise. ${\displaystyle R}$  is positive on ${\displaystyle [-\pi ,\pi ]^{d}}$ , then it can be expressed as sum of squares of trigonometric polynomials

${\displaystyle H_{l}\left(w\right)=\sum _{l=1}^{r}|H_{l}\left(w\right)|^{2}}$

${\displaystyle H_{l}\left(w\right)=\sum _{k=0}^{n_{l}}h_{l,k}e^{-jk^{T}w}}$

2-D FIR Filter Design as SOS Program: ${\displaystyle H}$  is taken to be the frequency response of a 2-D linear phase FIR filter with filter order ${\displaystyle n=\left(n_{1},n_{2}\right)}$ , with filter coefficients ${\displaystyle h_{k}}$  = ${\displaystyle h_{-k}}$ .

${\displaystyle H\left(w\right)=\sum _{k=-n}^{n}h_{k}e^{-jk^{T}w}}$

We want to determine the filter coefficients ${\displaystyle h_{k}}$  that maximize the attenuation ${\displaystyle \delta _{s}}$  in the stopband ${\displaystyle D_{s}}$  for a given maximum allowable ripple (${\displaystyle \delta _{p}}$ ) in the passband ${\displaystyle D_{p}}$ . The optimization problem is to minimize ${\displaystyle \delta _{s}}$  by subjecting to the following conditions

${\displaystyle |1-H\left(w\right)|\leq \delta _{p},\,\,w\epsilon D_{p}}$

${\displaystyle |H\left(w\right)|\leq \delta _{s},\,\,w\epsilon D_{s}}$

where the scalar ${\displaystyle \delta _{s}}$  and the filter coefficients ${\displaystyle h_{k}}$  are the problem variables. These constraints are as shown below

${\displaystyle R_{1}\left(w\right)=H\left(w\right)-1+\delta _{p}\geq 0,\,\,w\epsilon D_{p}}$

${\displaystyle R_{2}\left(w\right)=1-H\left(w\right)+\delta _{p}\geq 0,\,\,w\epsilon D_{p}}$

${\displaystyle R_{3}\left(w\right)=H\left(w\right)+\delta _{s}\geq 0,\,\,w\epsilon D_{s}}$

${\displaystyle R_{4}\left(w\right)=H\left(w\right)-\delta _{s}\geq 0,\,\,w\epsilon D_{s}}$

If the passband and stopband are defined, then we can replace each positive polynomial ${\displaystyle R_{i}}$  by a weighted sum of squares expression. Limiting the degrees of the sum-of-squares polynomials to ${\displaystyle n}$  then gives sufficient conditions for feasibility. We call the resulting optimization problem a sum-of-squares program and can be solved via semidefinite programming.

## Iterative implementation for M-D IIR filters

In some applications, where access to all values of signal is available (i.e. where entire signal is stored in memory and is available for processing), the concept of "feedback" can be realized. The iterative approach uses the previous output as feedback to generate successively better approximations to the desired output signal.[4]

In general, the IIR frequency response can be expressed as

${\displaystyle H\left(w_{1},w_{2},...,w_{m}\right)={\frac {A\left(w_{1},w_{2},...,w_{m}\right)}{B\left(w_{1},w_{2},...,w_{m}\right)}}={\frac {\sum _{l_{1}}\sum _{l_{2}}...\sum _{l_{m}}a\left(l_{1},l_{2},...,l_{m}\right)e^{-j\left(w_{1}l_{1}+w_{2}l_{2}+...+w_{m}l_{m}\right)}}{\sum _{k_{1}}\sum _{k_{2}}...\sum _{k_{m}}b\left(k_{1},k_{2},...,k_{m}\right)e^{-j\left(w_{1}k_{1}+w_{2}k_{2}+...+w_{m}k_{m}\right)}}}}$

where ${\displaystyle a\left(l_{1},l_{2},...,l_{m}\right)}$  and ${\displaystyle b\left(k_{1},k_{2},...,k_{m}\right)}$  are M-D finite extent coefficient arrays. The ratio is normalized so that ${\displaystyle b\left(0,0,...,0\right)=1}$

Now, let ${\displaystyle X\left(w_{1},w_{2},...,w_{m}\right)}$  represent the spectrum of a M-D input signal ${\displaystyle x\left(n_{1},n_{2},...,n_{m}\right)}$  and ${\displaystyle Y\left(w_{1},w_{2},...,w_{m}\right)}$  represent the spectrum of a M-D output signal ${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)}$ .

${\displaystyle Y\left(w_{1},w_{2},...,w_{m}\right)=A\left(w_{1},w_{2},...,w_{m}\right)X\left(w_{1},w_{2},...,w_{m}\right)+C\left(w_{1},w_{2},...,w_{m}\right)Y\left(w_{1},w_{2},...,w_{m}\right)}$

where ${\displaystyle C\left(w_{1},w_{2},...,w_{m}\right)}$  is a trigonometric polynomial defined as ${\displaystyle C\left(w_{1},w_{2},...,w_{m}\right)=1-B\left(w_{1},w_{2},...,w_{m}\right)}$

In the signal domain, the equation becomes ${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)=a\left(n_{1},n_{2},...,n_{m}\right)*x\left(n_{1},n_{2},...,n_{m}\right)+c\left(n_{1},n_{2},...,n_{m}\right)*y\left(n_{1},n_{2},...,n_{m}\right)}$

After making an initial guess, and then substituting the guess in the above equation iteratively, a better approximation of ${\displaystyle y\left(n_{1},n_{2},...,n_{m}\right)}$  can be obtained – ${\displaystyle y_{i}\left(n_{1},n_{2},...,n_{m}\right)=a\left(n_{1},n_{2},...,n_{m}\right)*x\left(n_{1},n_{2},...,n_{m}\right)+c\left(n_{1},n_{2},...,n_{m}\right)*y_{i-1}\left(n_{1},n_{2},...,n_{m}\right)}$

where ${\displaystyle i}$  denotes the iteration index

In the frequency domain, the above equation becomes ${\displaystyle Y_{i}\left(w_{1},w_{2},...,w_{m}\right)=A\left(w_{1},w_{2},...,w_{m}\right)X\left(w_{1},w_{2},...,w_{m}\right)+C\left(w_{1},w_{2},...,w_{m}\right)Y_{i-1}\left(w_{1},w_{2},...,w_{m}\right)}$

An IIR filter is BIBO stable if ${\displaystyle C\left(w_{1},w_{2},...,w_{m}\right)\neq 0}$

If we assume that ${\displaystyle |C\left(w_{1},w_{2},...,w_{m}\right)|<1}$  then

${\displaystyle \lim _{I\to \infty }Y_{I}\left(w_{1},w_{2},...,w_{m}\right)={\frac {A\left(w_{1},w_{2},...,w_{m}\right)X\left(w_{1},w_{2},...,w_{m}\right)}{1-C\left(w_{1},w_{2},...,w_{m}\right)}}=Y\left(w_{1},w_{2},...,w_{m}\right)}$

Thus, it can be said that, the frequency response ${\displaystyle H\left(w_{1},w_{2},...,w_{m}\right)}$  of a M-D IIR filter can be obtained by infinite number of M-D FIR filtering operations. The store operator stores the result of the previous iteration.

To be practical, an iterative IIR filter should require fewer computations, counting all iterations to achieve an acceptable error, compared to an FIR filter with similar performance.

## Existing approaches for IIR filter design

Similar to its 1-D special case, M-D IIR filters can have dramatically lower order than FIR filters with similar performance. This motivates the development of design techniques for M-D IIR filtering algorithms. This section presents brief overview of approaches for designing M-D IIR filters.

### Shank's method

This technique is based on minimizing the error functionals in the space domain. The coefficient arrays ${\displaystyle a\left(n_{1},n_{2},...,n_{m}\right)}$  and ${\displaystyle b\left(n_{1},n_{2},...,n_{m}\right)}$  are determined such that the output response ${\displaystyle y\left(n_{1},n_{2}\right)}$  of a filter matches the desired response ${\displaystyle d\left(n_{1},n_{2},...,n_{m}\right)}$ .[4]

Let us denote the error signal as

${\displaystyle e\left(n_{1},n_{2},...,n_{m}\right)=y\left(n_{1},n_{2},...,n_{m}\right)-d\left(n_{1},n_{2},...,n_{m}\right)}$

And let ${\displaystyle E\left(w_{1},w_{2},...,w_{m}\right)}$  denote it's the Fourier transform

${\displaystyle E\left(w_{1},w_{2},...,w_{m}\right)={\frac {A\left(w_{1},w_{2},...,w_{m}\right)X\left(w_{1},w_{2},...,w_{m}\right)}{B\left(w_{1},w_{2},...,w_{m}\right)}}-D\left(w_{1},w_{2},...,w_{m}\right)}$

By multiplying both sides by ${\displaystyle B\left(w_{1},w_{2},...,w_{m}\right)}$ , we get the modified error spectrum, converted in discrete domain as

${\displaystyle e'\left(n_{1},n_{2},...,n_{m}\right)=a\left(n_{1},n_{2},...,n_{m}\right)*x\left(n_{1},n_{2},...,n_{m}\right)-b\left(n_{1},n_{2},...,n_{m}\right)*d\left(n_{1},n_{2},...,n_{m}\right)}$

The total mean-squared error is obtained as

${\displaystyle e'_{2}\left(n_{1},n_{2},...,n_{m}\right)=\sum _{n_{1}}\sum _{n_{2}}...\sum _{n_{m}}[e'\left(n_{1},n_{2},...,n_{m}\right)]^{2}}$

Let the input signal be ${\displaystyle \delta \left(n_{1},n_{2},...,n_{m}\right)}$ . Now, the numerator coefficient ${\displaystyle a\left(n_{1},n_{2},...,n_{m}\right)}$  is zero outside region ${\displaystyle 0\leq n_{1}\leq N_{1}-1\,\&\,0\leq n_{2}\leq N_{2}-1...,0\leq n_{m}\leq N_{m}-1}$  because of the ROS of input signal.Then equation becomes

${\displaystyle e'\left(n_{1},n_{2},...,n_{m}\right)=-\sum _{q_{1}=0}^{M_{1}-1}\sum _{q_{2}=0}^{M_{2}-1}...\sum _{q_{m}=0}^{M_{m}-1}b\left(q_{1},q_{2},..,q_{m}\right)d\left(n_{1}-q_{1},n_{2}-q_{2}\right)\,;\,}$  for ${\displaystyle n_{1}\geq N_{1}-1}$  or ${\displaystyle n_{2}\geq N_{2}-1}$  or ... ${\displaystyle n_{m}\geq N_{m}-1}$

Substituting the result ${\displaystyle e'}$  into ${\displaystyle e_{2}'}$  and differentiating ${\displaystyle e'_{2}}$  with respect to denominator coefficients ${\displaystyle b\left(q_{1},q_{2},...,q_{n}\right)}$ , the linear set of equations is obtained as

${\displaystyle \sum _{m_{1}=0}^{M_{1}-1}\sum _{m_{2}=0}^{M_{2}-1}...\sum _{m_{m}=0}^{M_{m}-1}b\left(m_{1},m_{2},...,m_{m}\right)r\left(m_{1},m_{2},...,m_{m};q_{1},q_{2},...,q_{m}\right)=0\,;\,}$  for ${\displaystyle 0\leq m_{1}

Now, taking the double summation for the region "R" i.e. for ${\displaystyle n_{1}\geq N_{1}-1}$  and ${\displaystyle n_{2}\geq N_{2}-1}$  and ... ${\displaystyle n_{m}\geq N_{m}-1}$  shown in figure (shown for 2-D case), the coefficients ${\displaystyle b\left(n_{1},n_{2},...,n_{m}\right)}$  are obtained.

The coefficients ${\displaystyle a\left(n_{1},n_{2},...,n_{m}\right)}$  can be obtained from

${\displaystyle a\left(n_{1},n_{2},...,n_{m}\right)\approx b\left(n_{1},n_{2},...,n_{m}\right)*d\left(n_{1},n_{2},...,n_{m}\right)}$

The major advantage of Shank's method is that IIR filter coefficients can be obtained by solving linear equations. The disadvantage is that the mean squared error between ${\displaystyle y}$  and ${\displaystyle d}$  is not minimized. Also, the stability is not certain.

## Frequency-domain designs for IIR[4]

Shank's method is a spatial-domain design method. It is also possible to design IIR filters in the frequency domain. Here our aim would be to minimize the error in the frequency domain and not the spatial domain.Due to Parseval's theorem we observe that the mean squared error will be identical to that in the spatial domain.Parseval's theorem states that[4]

${\displaystyle \sum _{n_{1}}\sum _{n_{2}}...\sum _{n_{n}}[y(n_{1},n_{2},....n_{n})-d(n_{1},n_{2},....n_{n})]^{2}=1/(2\pi )^{n}\int \limits _{-\pi }^{\pi }\int \limits _{-\pi }^{\pi }....\int \limits _{-\pi }^{\pi }\left\vert Y(w_{1},w_{2},...w_{n})-D(w_{1},w_{2},...w_{n})\right\vert ^{2}dw_{1}dw_{2}..dw_{n}}$

Also the different norms that are used for FIR filter design such as ${\displaystyle L_{2}}$ ,${\displaystyle L_{p}}$  and ${\displaystyle L_{\infty }}$  can also be used for the design of IIR filters

${\displaystyle E_{p}=[1/(2\pi )^{n}\int \limits _{-\pi }^{\pi }\int \limits _{-\pi }^{\pi }...\int \limits _{-\pi }^{\pi }\left\vert E(w_{1},w_{2},...w_{n})\right\vert ^{p}dw_{1}dw_{2}...dw_{n}]^{1/p}}$

is the required equation for the ${\displaystyle L_{p}}$  norm and when p tends to ${\displaystyle \infty }$  we get the ${\displaystyle L_{\infty }}$  norm as explained above

${\displaystyle E_{\infty }=\max _{(w_{1},w_{2},...w_{n}\in B)}\left\vert E(w_{1},w_{2},...w_{n})\right\vert }$

• If there is any specification which is only partially complete, such as approximation of a magnitude response without the specification of phase response, this can be implemented with greater ease in the frequency domain rather than the space domain.
• Also the approximating function can be written in closed form as a function of the filter parameters, thus facilitating simpler derivation of partial derivatives.

The main disadvantage of this technique is that there is no guarantee for stability.

General minimization techniques as seen in the design of IIR filters in the spatial domain can be used in the frequency domain too.

One popular method for frequency domain design is the Magnitude and magnitude squared algorithms.

### Magnitude and magnitude squared design algorithm

In this section, we examine the technique for designing 2-D IIR filters based on minimizing error functionals in the frequency domain. The mean-squared error is given as

${\displaystyle {\frac {1}{\left(2\pi \right)^{m}}}\int _{-\pi }^{\pi }\int _{-\pi }^{\pi }...\int _{-\pi }^{\pi }|Y\left(w_{1},w_{2},...,w_{m}\right)-D\left(w_{1},w_{2},...,w_{m}\right)|^{2}dw_{1}dw_{2}...dw_{m}}$

The below function ${\displaystyle J_{a}}$  is the measure of difference between two complex functions - the desired response ${\displaystyle D\left(w_{1},w_{2},...,w_{m}\right)}$  and the actual response ${\displaystyle Y\left(w_{1},w_{2},...,w_{m}\right)}$ . Generally, we can define a complex function ${\displaystyle f}$  of ${\displaystyle Y}$  to approximate the desired response ${\displaystyle D}$ . Hence, the optimization task boils down to the task of minimizing ${\displaystyle f(Y)-D}$ .

${\displaystyle J_{a}=\sum _{k}W\left(w_{1k},w_{2k},...,w_{mk}\right)[f\left({\frac {A\left(w_{1k},w_{2k},...,w_{mk}\right)}{B\left(w_{1k},w_{2k},...,w_{mk}\right)}}\right)-D\left(w_{1k},w_{2k},...,w_{mk}\right)]^{2}}$

where ${\displaystyle W\left(w_{1},w_{2},...,w_{m}\right)}$  is the weighting function and ${\displaystyle \left(w_{1k},w_{2k},...w_{mk}\right)}$  are frequency domain samples selected for minimization. Now, consider a case, where we ignore the phase response of the filter i.e. we concentrate on only matching the magnitude (or square of magnitude) of the desired and actual filter response. Linearization can be used to find out the coefficients ${\displaystyle \{a\left(n_{1},n_{2},...,w_{m}\right)\,b\left(n_{1},n_{2},...,w_{m}\right)\}}$  that results in minimum value of ${\displaystyle J_{a}}$ . This will ensure that the filter form can be represented by a finite order difference equation. The stability of the filter depends on the function${\displaystyle Y\left(w_{1},w_{2},...,w_{m}\right)}$ .

The disadvantages of this method are,

• Stability cannot be guaranteed
• Depending on the function ${\displaystyle f}$ , the computations of partial derivatives will be cumbersome.

### Magnitude design with stability constraint

This design procedure includes a stability error ${\displaystyle J_{s}}$ , which is to be minimized together with the usual approximation error ${\displaystyle J_{a}}$ .[9] The stability error is a crude measure of how unstable a filter is. It is a type of penalty function. It should be zero for stable filters and large for the unstable filters. The filters can be designed by minimizing[4]

${\displaystyle J=J_{a}+aJ_{s}}$

${\displaystyle a}$  is a positive constraint which weights the relative importance of ${\displaystyle J_{a}}$  and ${\displaystyle J_{s}}$ . Ekstrom et al.[9] used the nonlinear optimization techniques to minimize ${\displaystyle J}$ . Their stability error was based on the difference between the denominator coefficient array and the minimum-phase array with the same autocorrelation function.

The minimum phase array can be determined by first computing the autocorrelation function of the denominator coefficient array ${\displaystyle b\left(n_{1},n_{2}\right)}$ .

${\displaystyle r_{b}\left(n_{1},n_{2}\right)=\sum _{q_{1}}\sum _{q_{2}}b\left(q_{1},q_{2}\right)b\left(q_{1}+n_{1},q_{2}+n_{2}\right)}$

After computing ${\displaystyle r_{b}}$ , its Fourier transform ${\displaystyle R_{b}\left(w_{1},w_{2}\right)}$  must be split into its minimum- and maximum-phase components. This is accomplished by spectral factorization using the complex cepstrum.

We form the cepstrum ${\displaystyle r_{b}\left(n_{1},n_{2}\right)}$  of the autocorrelation function is formed and multiplied by a non symmetric half-plane window ${\displaystyle w\left(n_{1},n_{2}\right)}$  to obtain the cepstrum,

${\displaystyle b_{mp}\left(n_{1},n_{2}\right)=r_{b}\left(n_{1},n_{2}\right)w\left(n_{1},n_{2}\right)}$

The subscript "mp" denotes that this cepstrum corresponds to a minimum phase sequence ${\displaystyle b_{mp}\left(n_{1},n_{2}\right)}$ .

If the designed filter is stable, its denominator coefficient array ${\displaystyle b(n_{1},n_{2})}$  is a minimum-phase sequence with non symmetric half-plane support. In this case, ${\displaystyle b(n_{1},n_{2})}$  is equal to ${\displaystyle b_{mp}(n_{1},n_{2})}$ ; otherwise it is not.

${\displaystyle J_{s}}$  can be denoted as,

${\displaystyle J_{s}=\sum _{n_{1}}\sum _{n_{2}}[b(n_{1},n_{2})-b_{mp}(n_{1},n_{2})]^{2}}$

In practice, ${\displaystyle J_{s}}$  is rarely driven to zero because of numerical errors in computing the cepstrum ${\displaystyle r_{b}\left(n_{1},n_{2}\right)}$ . In general, ${\displaystyle r_{b}\left(n_{1},n_{2}\right)}$  has infinite extent, and spatial aliasing results when the FFT is used to compute it. The degree of aliasing can be controlled by increasing the size of the FFT.

## Design and implementation of M-D zero-phase IIR filters

Often, especially in applications such as image processing, one may be required to design a filter with symmetric impulse response. Such filters will have a real-valued, or zero-phase, frequency response. Zero-phase IIR filter could be implemented in two ways, cascade or parallel.[4]

In the cascade approach, a filter whose impulse response is ${\displaystyle h\left(n_{1},n_{2}\right)}$  is cascaded with a filter whose impulse response is ${\displaystyle h\left(-n_{1},-n_{2}\right)}$ . The overall impulse response of the cascade is ${\displaystyle h\left(n_{1},n_{2}\right)**h\left(-n_{1},-n_{2}\right)}$ . The overall frequency response is a real and non-negative function,

${\displaystyle C\left(w_{1},w_{2}\right)=\left\vert H\left(w_{1},w_{2}\right)\right\vert ^{2}}$

The cascade approach suffers from some computational problems due to transient effects. The output samples of the second filter in the cascade are computed by a recursion which runs in the opposite direction from that of the first filter. For an IIR filter, its output has infinite extent, and theoretically an infinite number of its output samples must be evaluated before filtering with the ${\displaystyle h\left(-n_{1},-n_{2}\right)}$  can begin, even if the ultimate output is desired only over a limited region. Truncating the computations from the first filter can introduce errors. As a practical approach, the output form the first filter must be computed far enough out in space depending on the region-of-support of the numerator coefficient array ${\displaystyle a\left(n_{1},n_{2}\right)}$  and on the location of the to-be-computed second filter's output sample, so that any initial transient from the second filter will have effectively died out in the region of interest of the final output.

2. The parallel approach

In the parallel approach, the outputs of two non symmetric half-plane (OR four non-symmetric quarter-plane) IIR filters are added to form the final output signal. As in the cascade approach, the second filter is a space-reserved version of the first. The overall frequency response is given by,

${\displaystyle P\left(w_{1},w_{2}\right)=H\left(w_{1},w_{2}\right)+H^{*}\left(w_{1},w_{2}\right)=2{\text{ Re}}[H\left(w_{1},w_{2}\right)]}$

This approach avoids the problems of the cascade approach for zero-phase implementation. But, this approach is best suited for the 2-D IIR filters designed in the space domain, where the desired filter response ${\displaystyle d\left(n_{1},n_{2}\right)}$  can be partitioned into the proper regions of support.

For a symmetric zero-phase 2-D IIR filter, the denominator has a real positive frequency response.

${\displaystyle H\left(w_{1},w_{2},...,w_{m}\right)={\frac {A\left(w_{1},w_{2},...,w_{m}\right)}{B\left(w_{1},w_{2},...,w_{m}\right)}}}$

For 2-D zero-phase IIR filter, since

${\displaystyle a\left(n_{1},n_{2}\right)=a\left(-n_{1},-n_{2}\right)}$

${\displaystyle b\left(n_{1},n_{2}\right)=b\left(-n_{1},-n_{2}\right)}$

We can write,

${\displaystyle A\left(w_{1},w_{2}\right)=\sum _{n_{1}}\sum _{n_{2}}a'\left(n_{1},n_{2}\right)cos(w_{1}n_{1}+w_{2}n_{2})}$

${\displaystyle B\left(w_{1},w_{2}\right)=\sum _{n_{1}}\sum _{n_{2}}b'\left(m_{1},m_{2}\right)cos(w_{1}m_{1}+w_{2}m_{2})}$

We can formulate the mean-squared error functional that could be minimized by various techniques. The result of the minimization would yield the zero-phase filter coefficients ${\displaystyle {a'\left(n_{1},n_{2}\right),b'\left(n_{1},n_{2}\right)}}$ . We can use these coefficients to implement the designed filter then.

## Implementation of Mixed Multidimensional Filters

If the M-D transform transfer function, H(n(M)) = Y(n(M))/X(n(M)) for a particular class of inputs x(n(M)) and a particular transform is known, the design approximation problem becomes simple and we then have to find the (M-P) dimensional LDE's, one for each P-tuple that help in approximating all the complex (M-P) dimensional transform transfer functions, H(k(P),k(M-P)). But as the multidimensional approximation theory for dimensions greater than 2 is not well developed, the (M-P) dimensional approximation maybe a problem. The input and output sequences of each (M-P) dimensional LDE are complex and are given by X(k(P),k(M-P)) and Y(k(P),k(M-P)) respectively. The main design objective is to choose coefficients of the LDE in such a way that the complex (M-P) dimensional transform transfer function of the sequences X(k(P),k(M-P)) and Y(k(P),k(M-P)), are approximately in the ratio of H(k(P),k(M-P)) = H(n(M)). This can be very difficult unless certain transforms such as DFT, DCT and DHT are used. For the above-mentioned transforms, it is possible to find the (M-P) dimensional impulse response, h(k(P),n(M-P)) by approximating the Linear Difference Equations.
The following approaches can be used to implement Mixed Multidimensional filters:

### Using discrete Fourier transform (DFT)

For a multidimensional array ${\displaystyle x_{n_{1},n_{2},\dots ,n_{p}}}$  that is a function of p discrete variables ${\displaystyle n_{\ell }=0,1,\dots ,N_{\ell }-1}$  for ${\displaystyle \ell }$  in ${\displaystyle 1,2,\dots ,p}$ , the P-Dimensional Discrete Forward Fourier Transform is defined by:
F(k(P)) = ${\displaystyle \sum _{n_{1}=0}^{N_{1}-1}\left(\omega _{N_{1}}^{~k_{1}n_{1}}\sum _{n_{2}=0}^{N_{2}-1}\left(\omega _{N_{2}}^{~k_{2}n_{2}}\cdots \sum _{n_{p}=0}^{N_{p}-1}\omega _{N_{p}}^{~k_{p}n_{p}}\cdot x_{n_{1},n_{2},\dots ,n_{p}}\right)\right)\,,}$ ,
where ${\displaystyle \omega _{N_{\ell }}=\exp(-2\pi i/N_{\ell })}$  as shown above and the p output indices run from ${\displaystyle k_{\ell }=0,1,\dots ,N_{\ell }-1}$ . If we want to express it in vector notation, where ${\displaystyle \mathbf {n} =(n_{1},n_{2},\dots ,n_{p})}$  and ${\displaystyle \mathbf {k} =(k_{1},k_{2},\dots ,k_{p})}$  are p-dimensional vectors of indices from 0 to ${\displaystyle \mathbf {N} -1}$ , where ${\displaystyle \mathbf {N} -1=(N_{1}-1,N_{2}-1,\dots ,N_{p}-1)}$ , the P-Dimensional Discrete Forward Fourier Transform is given by :
F(k(P)) = ${\displaystyle \sum _{\mathbf {n} =\mathbf {0} }^{\mathbf {N} -1}e^{-2\pi i\mathbf {k^{T}} \cdot (\mathbf {n} /\mathbf {N} )}x_{\mathbf {n} }\,,}$ ,
where the division ${\displaystyle \mathbf {n} /\mathbf {N} }$  is defined as ${\displaystyle \mathbf {n} /\mathbf {N} =(n_{1}/N_{1},\dots ,n_{p}/N_{p})}$  to be performed element-wise, and the sum denotes the set of nested summations above.
To find the P-Dimensional inverse Discrete Fourier Transform, we can use the following:
F−1(k(P)) = ${\displaystyle {\frac {1}{\prod _{\ell =1}^{p}N_{\ell }}}\sum _{\mathbf {k} =\mathbf {0} }^{\mathbf {N} -1}e^{2\pi i\mathbf {n} \cdot (\mathbf {k^{T}} /\mathbf {N} )}\,.}$  F(k(P)).
The Discrete Fourier Transform is useful for certain applications such as Data Compression, Spectral Analysis, Polynomial Multiplication, etc. The DFT is also used as a building block for techniques that take advantage of properties of signals frequency-domain representation, such as the overlap-save and overlap-add fast convolution algorithms. However the computational complexity increases if Discrete Fourier Transform is used as the Discrete Transform. The computational complexity of the DFT is way higher than the other Discrete Transforms and for P-D DFT, the computational complexity is given by O(${\displaystyle N_{1}^{2}}$ ${\displaystyle N_{2}^{2}}$ ...${\displaystyle N_{P}^{2}}$ ). Therefore, the Fast Fourier Transform(FFT) is used to compute the DFT as it reduces the computational complexity significantly to O(${\displaystyle N_{1}}$ ${\displaystyle N_{2}}$ ...${\displaystyle N_{P}}$ ${\displaystyle Log_{2}}$ ${\displaystyle N_{1}}$ ${\displaystyle N_{2}}$ ...${\displaystyle N_{P}}$ ) and at the same time other Discrete Transforms are preferred over the DFT.

### Using discrete cosine transform (DCT)

For a multidimensional array ${\displaystyle x_{n_{1},n_{2},\dots ,n_{p}}}$  that is a function of p discrete variables ${\displaystyle n_{\ell }=0,1,\dots ,N_{\ell }-1}$  for ${\displaystyle \ell }$  in ${\displaystyle 1,2,\dots ,p}$ , the P-Dimensional Discrete Forward Cosine Transform is defined by:
F(k(P)) {\displaystyle {\begin{aligned}=\sum _{n_{1}=0}^{N_{1}-1}\sum _{n_{2}=0}^{N_{2}-1}\cdots \sum _{n_{p}=0}^{N_{p}-1}x_{n_{1},n_{2},\cdots n_{p}}\cos \left[{\frac {\pi }{N_{1}}}\left(n_{1}+{\frac {1}{2}}\right)k_{1}\right]\cos \left[{\frac {\pi }{N_{2}}}\left(n_{2}+{\frac {1}{2}}\right)k_{2}\right]\cdots \cos \left[{\frac {\pi }{N_{p}}}\left(n_{p}+{\frac {1}{2}}\right)k_{p}\right],k_{1},k_{2},\cdots k_{p}=0,1,2,3....N-1.\end{aligned}}}
The P-Dimensional inverse Discrete Cosine Transform is given by:
F−1(k(P)) {\displaystyle {\begin{aligned}=\sum _{k_{1}=0}^{N_{1}-1}\sum _{k_{2}=0}^{N_{2}-1}\cdots \sum _{k_{p}=0}^{N-p-1}X_{k_{1},k_{2},\cdots k_{p}}\cos \left[{\frac {\pi }{N_{1}}}\left(n_{1}+{\frac {1}{2}}\right)k_{1}\right]\cos \left[{\frac {\pi }{N_{2}}}\left(n_{2}+{\frac {1}{2}}\right)k_{2}\right]\cdots \cos \left[{\frac {\pi }{N_{p}}}\left(n_{p}+{\frac {1}{2}}\right)k_{p}\right],n_{1},n_{2},\cdots n_{p}=0,1,2,3....N-1.\end{aligned}}}
The DCT finds its use in data compression applications such as the JPEG image format. The DCT has high degree of spectral compaction at a qualitative level, which makes it very suitable for various compression applications. A signal's DCT representation tends to have more of its energy concentrated in a small number of coefficients when compared to other transforms like the DFT. Thus you can reduce your data storage requirement by only storing the DCT outputs that contain significant amounts of energy. The computational complexity of P-D DCT goes by O(${\displaystyle N_{1}}$ ${\displaystyle N_{2}}$ ...${\displaystyle N_{P}}$ ${\displaystyle Log_{2}}$ ${\displaystyle N_{1}}$ ${\displaystyle N_{2}}$ ...${\displaystyle N_{P}}$ ). Since the number of operations required to compute the DCT is less than that required to compute the DFT without the use of FFT, the DCT's are also called as Fast Cosine Transforms(FCT).

### Using discrete Hartley transform (DHT)

For a multidimensional array ${\displaystyle x_{n_{1},n_{2},\dots ,n_{p}}}$  that is a function of p discrete variables ${\displaystyle n_{\ell }=0,1,\dots ,N_{\ell }-1}$  for ${\displaystyle \ell }$  in ${\displaystyle 1,2,\dots ,p}$ , the P-Dimensional Discrete Forward Hartley Transform is defined by:
F(k(P)) ${\displaystyle =\sum _{n_{1}=0}^{N_{1}-1}\sum _{n_{2}=0}^{N_{2}-1}\dots \sum _{n_{p}=0}^{N_{p}-1}x(n_{1},n_{2},...,n_{p})cas({\frac {2\pi n_{1}k_{1}}{N_{1}}}+\dots +{\frac {2\pi n_{p}k_{p}}{N_{p}}}),}$  where, ${\displaystyle k_{i}=0,1,\ldots ,N_{i}-1}$  and where ${\displaystyle cas(x)=cos(x)+sin(x).}$
It should also be noted that, if Discrete Hartley Transform is used, the computational complexity of complex numbers can be avoided. The overall computational complexity of P-D Discrete Hartley Transform is given by O(${\displaystyle N_{1}}$ ${\displaystyle N_{2}}$ ...${\displaystyle N_{P}}$ ${\displaystyle Log_{2}}$ ${\displaystyle N_{1}}$ ${\displaystyle N_{2}}$ ...${\displaystyle N_{P}}$ ), if algorithms similar to the FFT are used and thus the DHT is also referred to as the Fast Hartley Transform(FHT).
The Discrete Hartley Transform is used in various applications in communications and signal processing areas. Some of these applications include multidimensional filtering, multidimensional spectral analysis, error control coding, adaptive digital filters, image processing etc.

## Applications of MixeD Multidimensional Filters

Mixed 3-D filters can be used for enhancement of 3-D spatially planar signals. A 3-D MixeD Cone filter can be designed using 2-D DHT and is shown below.

### Review of 3-D Spatially Planar Signals[1]

An M-D signal, x(n(M)) is considered to be spatially-planar(SP) if it is constant on all surfaces, i.e. ${\displaystyle \alpha _{1}\!}$ ${\displaystyle n_{1}}$  + ${\displaystyle \alpha _{2}\!}$ ${\displaystyle n_{2}}$  +${\displaystyle \cdots }$  + ${\displaystyle \alpha _{M}\!}$ ${\displaystyle n_{M}}$  = d, for ${\displaystyle \forall }$ d ${\displaystyle \in }$ R where R is the set of real numbers.
Therefore, a 3-D spatially planar signal, x(n(3)) is constant on 3 surfaces and is given by ${\displaystyle \alpha _{1}\!}$ ${\displaystyle n_{1}}$  + ${\displaystyle \alpha _{2}\!}$ ${\displaystyle n_{2}}$  + ${\displaystyle \alpha _{3}\!}$ ${\displaystyle n_{3}}$  = d, for ${\displaystyle \forall }$ d ${\displaystyle \in }$ R
It may be shown that the 3-D DFT of a SP x(n(M)) yields 3-D DFT frequency domain coefficients, X(k(3)), which are zero everywhere except on the line L(k(3)) where (k(3)) ${\displaystyle \in }$  ${\displaystyle \{}$  Z${\displaystyle \vert }$  ${\displaystyle k_{1}}$ /${\displaystyle \alpha _{1}\!}$ =${\displaystyle k_{2}}$ /${\displaystyle \alpha _{2}\!}$ =${\displaystyle k_{3}}$ /${\displaystyle \alpha _{3}\!}$  ${\displaystyle \}}$ ,where Z refer to the set of integers.
A 3-D signal input sequence will be selectively enhanced by a 3-D passband enclosing this line. Thus we make use of a cone filter having a thin pyramidal shaped passband which is approximated using Mixed filter constructed using 2-D DHT.

### Design of a 3-D MixeD cone filter using 2-D DHT[1]

Firstly, we have to select the passband regions on {k1,k2}. The close examination of DFT and DHT, shows that the 3-D DHT of ${\displaystyle X_{H}}$ (k(3)) of a spatially-planar signal x(n(3)) is zero outside the straight line ${\displaystyle L_{H}}$ (k(3)) passing through the origin of 3-D DHT (k(3)) space. Therefore, (k(3)) ${\displaystyle \in }$  ${\displaystyle \{}$  Z${\displaystyle \vert }$  ${\displaystyle k_{1}}$ /${\displaystyle \alpha _{1}\!}$ =${\displaystyle k_{2}}$ /${\displaystyle \alpha _{2}\!}$ }, where Z refer to the set of integers. All the LDE's that correspond to 2-tuples {${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ }, that lie outside the fan shaped projection of the thin pyramidal passband on the ${\displaystyle k_{1}}$ -${\displaystyle k_{2}}$  plane have to be omitted. The half angle will determine the k1-k2 plane bandwidth of the MixeD filter.

Secondly, we have to find the characteristics of the LDE Input sequences ${\displaystyle X_{H}}$ (${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ ,${\displaystyle n3}$ ). The LDE input sequences computed for the 2-D DHT of a S-P signal x(n(3)), are real and sinusoidal in the steady-state. Since a spatially planar signal is also a linear trajectory signal, it maybe written in the form, x(n(3)) = x(${\displaystyle n_{1}}$  - ${\displaystyle p_{1}}$ ${\displaystyle n_{3}}$ , ${\displaystyle n_{2}}$  - ${\displaystyle p_{2}}$ ${\displaystyle n_{3}}$ ,${\displaystyle n_{3}}$  ), where ${\displaystyle p_{1}}$  = ${\displaystyle \alpha _{3}\!}$ /${\displaystyle \alpha _{1}\!}$  and ${\displaystyle p_{2}}$  = ${\displaystyle \alpha _{3}\!}$ /${\displaystyle \alpha _{2}\!}$ .

Now, using the shift property of 2-D DHT, we get, ${\displaystyle X_{H}}$ (${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ ,${\displaystyle n_{3}}$ ) = ${\displaystyle X_{H}}$ (${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ ,0)cos${\displaystyle \{}$ W${\displaystyle \}}$  + ${\displaystyle X_{H}}$ (N - ${\displaystyle k_{1}}$ , N - ${\displaystyle k_{2}}$ ,0)cos${\displaystyle \{}$ W${\displaystyle \}}$ , where W = cos${\displaystyle \{}$ 2(${\displaystyle p_{1}}$ ${\displaystyle k_{1}}$  + ${\displaystyle p_{2}}$ ${\displaystyle k_{2}}$ )(${\displaystyle n_{3}}$ ${\displaystyle \pi }$ )/N${\displaystyle \}}$ . This equation implies that the passband sequences, ${\displaystyle X_{H}}$ (${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ ,${\displaystyle n3}$ ) at each tuple {${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ } are real sampled sinusoids that may be selectively transmitted by employing LDE's that are characterized by narrowband bandpass magnitude frequency respone having Normalized frequencies given by,
v = 2(${\displaystyle p_{1}}$ ${\displaystyle k_{1}}$  + ${\displaystyle p_{2}}$ ${\displaystyle k_{2}}$ )/N. If we choose the bandwidths B{${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ } of these narrowband bandpass LDEs to be proportional to the centre frequencies v, so that B{${\displaystyle k_{1}}$ ,${\displaystyle k_{2}}$ } = Kv, K > 0, and K constant, the required 3D pyramidal passband is realized. Thus it has been proved that 2-D DHT helped in the constructing a MixeD 3-D filter.

## References

1. ^ a b c d K.S. Knudsen and T. Bruton, "Mixed Multidimensional Filters" IEEE transactions on "Circuits and Systems for Video Technology"
2. ^ a b Knud Steven Knudsen and Leonard T. Bruton "Mixed Domain Filtering of Multidimensional Signals", IEEE transactions on "Circuits and Systems for Video Technology", VOL. I , NO. 3, SEPTEMBER 1991
3. ^ Kwan, H. K., and C. L. Chan. "Multidimensional spherically symmetric recursive digital filter design satisfying prescribed magnitude and constant group delay responses." IEE Proceedings G (Electronic Circuits and Systems). Vol. 134. Issue 4, pp. 187 – 193, IET Digital Library, 1987
4. Dan E. Dudgeon, Russell M. Mersereau, "Multidimensional Digital Signal Processing", Prentice-Hall Signal Processing Series, ISBN 0136049591, 1983.
5. ^ Russell M.Mersereau, Wolfgang F.G. Mecklenbrauker, and Thomas F. Quatieri, Jr., "McClellan Transformation for 2-D Digital Filtering: I-Design," IEEE Trans. Circuits and Systems, CAS-23, no. 7 (July 1976),405-14.
6. ^ Wolfgang F.G. Mecklenbrauker and Russell M. Mersereau, "McClellan Transformations for 2-D Digital Filtering: II-Implementation," IEEE Trans. Circuits and Systems, CAS-23, no.7(July 1976), 414-22.
7. ^ James H. McClellan and David S.K. Chan. "A 2-D FIR Filter Structure Derived from the Chebyshev Recursion," IEEE Trans. Circuits and Systems, CAS-24, no.7 (July 1977), 372-78.
8. ^ Roh T., Bogdan D.,Vandenberghe L., "Multidimensional FIR Filter Design Via Trigonometric Sum-of-Squares Optimization," 'IEEE JOURNAL OF SELECTED TOPICS IN SIGNAL PROCESSING (12/2007)', Vol. 1, No. 4, Page 1-10
9. ^ a b Ekstrom, Michael P., Richard E. Twogood, and John W. Woods. "Two-dimensional recursive filter design--A spectral factorization approach." Acoustics, Speech and Signal Processing, IEEE Transactions on 28.1 (1980): 16-26.