efficient 2d linear-phase iir filter design and …efficient 2d linear-phase iir filter design and...

8
Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong * Abstract—We present an efficient and novel proce- dure to design two-dimensional (2D) linear-phase IIR filters with less hardware resource. A 2D linear-phase FIR filter prototype is first designed using semidefi- nite programming (SDP). The prototype filter is then decomposed into modular structures via Schur de- composition method (SDM). Each section is reduced into IIR structures using a novel digital system iden- tification technique called the Discrete-Time Vector Fitting (VFz). Examples with image processing ap- plication show the algorithm exhibits fast convergence and produces low hardware cost and accurate filters. Keywords: 2D IIR filter, image processing, digital sys- tem identification, vector fitting 1 Introduction Two-dimensional (2D) filters are widely used in image processing [1], medical imaging [2], face recognition [3] etc. These applications often require high-order filters having accurate magnitude response and linear phase in the passband. For instance, a 63 pixel × 63 pixel kernel filter is used in medical imaging [2]. However, hardware resources are usually restricted due to limited multipli- ers and memory in ASICs and FPGAs [4]. Therefore, 2D IIR filters are generally used to reduce the hardware cost. However, to date there is no optimal algorithm for 2D IIR filter design in terms of computation and the resultant hardware cost. Direct optimization of an IIR filter gives an excellent accuracy but the computation complexity is high [5]. In the Singular Value Decomposition (SVD) approach, the frequency response of a 2D FIR prototype filter is replaced with parallel sections of 1D cascaded sub- filters [6]. The problem is then reduced from a 2D design problem into several 1D design tasks, thus producing less complicated implementation due to parallelization and modularization of filter sections [7]. By neglecting sec- tions associated with small singular values, the decom- posed filter can be simplified with only slight error in the filter response [6]. Moreover, subfilters can be reduced by IIR approximation using model order reduction method to further reduce hardware cost. However, this method is complicated when the subfilter sizes and number of sec- * The authors are with the Department of Electrical and Elec- tronic Engineering, The University of Hong Kong. Phone: ++852 +2859 1914 Fax: ++852 +2559 8738 Email: {culei, edmondche- ung, nwong}@eee.hku.hk tions are large. To this end, we present a novel design flow for designing 2D (near-)linear-phase IIR filters with low computational complexity and hardware cost. First, semidefinite programming (SDP) is used to design a 2D FIR filter prototype, followed by the Schur Decomposi- tion Method (SDM) that decomposes the prototype filter into sections of cascaded 1D FIR subfilters. A novel dig- ital system identification technique, called the Discrete- Time Vector Fitting (VFz), is then used to reduce the 1D FIR subfilters into 1D IIR subfilters. It is shown that VFz gives efficient and accurate IIR approximation over con- ventional schemes. Practical image processing example demonstrates that the integrated SDP/SDM/VFz design flow produces excellent 2D IIR approximants with good passband phase linearity and low hardware cost. 2 Design Methodology 2.1 FIR prototype design via semidefinite programming The transfer function of a 2D FIR filter of odd order (N 1 , N 2 ) is characterized by H (z 1 ,z 2 )= N1-1 i=0 N2-1 j=0 h ij z -i 1 z -j 2 =z T 1 ˆ Hz 2 , (1) where z i = 1 z -1 i ... z -(Ni-1) i T for i = 1 and 2, and ˆ H R N1×N2 is impulse response. This kind of fil- ter with phase linearity becomes octagonal-symmetric [7]. Therefore, ˆ H can be partitioned as: ˆ H = H 11 h 12 H 13 h T 21 h 22 h T 23 H 31 h 32 H 33 , (2) where H 11 ,H 13 ,H 31 ,H 33 R n1×n2 ,h 12 ,h 32 R n1×1 ,h 21 ,h 23 R n2 ×1,h 22 R and n 1 = (N 1 1)/2,n 2 =(N 2 1)/2. Moreover, the frequency response is given by H (ω 1 2 )= e -j(n1ω1+n2ω2) c T 1 (ω 1 ) Hc 2 (ω 2 ) (3) where c i (ω i )=[1 cosω i ... cosn i ω i ] T , for i = 1 and 2, and H = h 22 2h T 23 2h 32 4H 33 . IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________ (Advance online publication: 15 August 2007)

Upload: others

Post on 10-Aug-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

Efficient 2D Linear-Phase IIR Filter Design and

Application in Image Filtering

Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗

Abstract—We present an efficient and novel proce-dure to design two-dimensional (2D) linear-phase IIRfilters with less hardware resource. A 2D linear-phaseFIR filter prototype is first designed using semidefi-nite programming (SDP). The prototype filter is thendecomposed into modular structures via Schur de-composition method (SDM). Each section is reducedinto IIR structures using a novel digital system iden-tification technique called the Discrete-Time VectorFitting (VFz). Examples with image processing ap-plication show the algorithm exhibits fast convergenceand produces low hardware cost and accurate filters.

Keywords: 2D IIR filter, image processing, digital sys-

tem identification, vector fitting

1 Introduction

Two-dimensional (2D) filters are widely used in imageprocessing [1], medical imaging [2], face recognition [3]etc. These applications often require high-order filtershaving accurate magnitude response and linear phase inthe passband. For instance, a 63 pixel × 63 pixel kernelfilter is used in medical imaging [2]. However, hardwareresources are usually restricted due to limited multipli-ers and memory in ASICs and FPGAs [4]. Therefore, 2DIIR filters are generally used to reduce the hardware cost.However, to date there is no optimal algorithm for 2D IIRfilter design in terms of computation and the resultanthardware cost. Direct optimization of an IIR filter givesan excellent accuracy but the computation complexity ishigh [5]. In the Singular Value Decomposition (SVD)approach, the frequency response of a 2D FIR prototypefilter is replaced with parallel sections of 1D cascaded sub-filters [6]. The problem is then reduced from a 2D designproblem into several 1D design tasks, thus producing lesscomplicated implementation due to parallelization andmodularization of filter sections [7]. By neglecting sec-tions associated with small singular values, the decom-posed filter can be simplified with only slight error in thefilter response [6]. Moreover, subfilters can be reduced byIIR approximation using model order reduction methodto further reduce hardware cost. However, this method iscomplicated when the subfilter sizes and number of sec-

∗The authors are with the Department of Electrical and Elec-

tronic Engineering, The University of Hong Kong. Phone: ++852

+2859 1914 Fax: ++852 +2559 8738 Email: {culei, edmondche-

ung, nwong}@eee.hku.hk

tions are large. To this end, we present a novel designflow for designing 2D (near-)linear-phase IIR filters withlow computational complexity and hardware cost. First,semidefinite programming (SDP) is used to design a 2DFIR filter prototype, followed by the Schur Decomposi-tion Method (SDM) that decomposes the prototype filterinto sections of cascaded 1D FIR subfilters. A novel dig-ital system identification technique, called the Discrete-Time Vector Fitting (VFz), is then used to reduce the 1DFIR subfilters into 1D IIR subfilters. It is shown that VFzgives efficient and accurate IIR approximation over con-ventional schemes. Practical image processing exampledemonstrates that the integrated SDP/SDM/VFz designflow produces excellent 2D IIR approximants with goodpassband phase linearity and low hardware cost.

2 Design Methodology

2.1 FIR prototype design via semidefiniteprogramming

The transfer function of a 2D FIR filter of odd order (N1,N2) is characterized by

H (z1, z2) =

N1−1∑

i=0

N2−1∑

j=0

hijz−i1 z−j

2 =zT1 Hz2, (1)

where zi =[

1 z−1i . . . z

−(Ni−1)i

]Tfor i = 1 and 2,

and H ∈ RN1×N2 is impulse response. This kind of fil-ter with phase linearity becomes octagonal-symmetric [7].Therefore, H can be partitioned as:

H =

H11 h12 H13

hT21 h22 hT

23

H31 h32 H33

, (2)

where H11,H13,H31,H33 ∈ Rn1×n2 , h12, h32 ∈Rn1×1, h21, h23 ∈ Rn2×1, h22 ∈ R and n1 =(N1 − 1)/2, n2 = (N2 − 1)/2. Moreover, the frequencyresponse is given by

H (ω1, ω2) = e−j(n1ω1+n2ω2)cT1 (ω1) Hc2 (ω2) (3)

where ci (ωi) = [ 1 cosωi . . . cosniωi ]T , for i = 1

and 2, and H =

[h22 2hT

23

2h32 4H33

].

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)

Page 2: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

The design of the prototype FIR filter is a minimax prob-lem of error of H in (ω1, ω2) [5]. It can be formulated as

min cT xsubject to : F (x) ≥ 0

(4)

where c =[

1 0 . . . 0]T

, and

x =[

δ hT]T

, in which F (x) =

diag{

Γ(ω

(1)1 , ω

(2)2

), . . . ,Γ

(M)1 , ω

(M)2

)}≥ 0. Here

≥ denotes matrix positive semidefiniteness. Adw

is the weighted desired magnitude response. hand cω are column vectors by stacking from thefirst to last columns of H and ckn1+m, respectively.ckn1+m(ω1, ω2) = cos(mω1) cos(kω2) for 0 ≤ m ≤ n1,and 0 ≤ k ≤ n2. This is a semidefinite programming(SDP) problem. SDP is an optimization frameworkwherein a linear or convex objective function is mini-mized subject to linear matrix inequality (LMI)-typeconstraints.

2.2 Schur decomposition of 2D FIR filters

The octagonal-symmetric linear phase 2D FIR filters canbe decomposed into 1D subfilters by Schur Decomposi-tion Method (SDM) [7]. SDM is superior to SVD in com-putational complexity by exploitation of filter responsesymmetry. The idea of SDM is to decompose the 2Dtransfer function as:

H (z1, z2) =

k∑

l=1

Fl(z1)Gl(z2), (5)

where Fl (z1) =N1−1∑i=0

fl (i) z−i1 and Gl (z2) =

N2−1∑j=0

gl (j) z−j2 are the transfer functions of two cascaded

1D subfilters, fl (i) and gl (j) are the corresponding im-pulse responses, and k is the number of parallel sections.k is chosen regarding the tradeoff between computationand approximation accuracy. With the octagonal sym-metry, H in (2) can be rewritten as

H =

[IL 0

I IM

] [H1 00 0

] [IL IT

0 IM

]

=

[H1 H1I

T

IH1 IH1IT

] (6)

where I =

0 · · · 0 1 00 · · · 1 0 0... . .

. ......

1 0 · · · 0 0

and L = ni +1. H1 ∈

RL×L contains all the impulse response information ofthe 2D FIR filter [7]. H1 is then decomposed by meansof SDM:

UT H1U =∑

, (7)

F 1 (z 1 )

F 2 (z 1 )

F k (z 1 )

s 1

s 2

s k

F 1 (z

2 )

F 2 (z

2 )

F k (z

2 )

+ Input Output

Figure 1: Decomposed FIR prototype filter.

where UT U = UUT = IL and∑

= diag(λ1, λ2, ..., λL).Retaining the k most significant eigenvalues in

∑,

namely,∑

1 =∑

(1 : k, 1 : k), the approximated 2DFIR filter becomes

Hd = W |Σ1|SWT = FSG = FSFT , (8)

where W =

[U (:, 1 : k)

IU (:, 1 : k)

], F = W

√|∑

1| ∈ RN×k ,

G = FT , and S = diag (s1, s2, ..., sk) , in which sl =sign

(λl

), is the sign weight for interconnection between

subfilters. Each column of F is an FIR linear phase 1Dsubfilter with its own frequency response. Therefore, (8)becomes

Hd =

k∑

l=1

FlslFTl , (9)

Hd preserves phase linearity of the 2D FIR filter. Thearchitecture of the decomposed filter is shown in Fig. 1.

2.3 IIR filter approximation of 1D FIR sub-filters

For the sake of hardware savings and consequently powerconsumption, each of the 1D FIR subfilters (F1, F2,. . .,Fk) is approximated by IIR structures:

L∑

n=0

hnz−n = Fl (z) ≈ f (z) =P (z)

Q (z)=

N∑n=0

pnz−n

M∑m=0

qmz−m

.

(10)

where f(z) is the IIR approximant. We aim at locatinga set of pn and qm with N, M ≪ L to form a stable andcausal IIR filter with a good approximation subject toconstraints like magnitude and phase response, and lowalgorithmic complexity.

3 Discrete-Time Vector Fitting

Vector Fitting (VF) [8] is a popular technique forfitting continuous-time (s-domain) frequency-dependentvector/matrix with rational function approximations.VF starts with multiplying a scaling function σ(s) to the

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)

Page 3: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

desired response f(s). The poles on both sides of theequality are set to be equal:(

N∑

n=1

cn

s − αn

)+ d + se

︸ ︷︷ ︸(σf)(s)

((N∑

n=1

γn

s − αn

)+ 1

)

︸ ︷︷ ︸σ(s)

f (s) .

(11)

The basis of partial function ensures well-conditionedarithmetic. The poles (αn) and residues (γn) are eitherreal or exist in complex conjugate pairs. The variablescn, d, e, and γn are solved by evaluating (11) at multiplefrequency points. In (11), the set of poles of (σf) (s) andσ (s) f (s) are the same. Therefore, the original poles off(s) cancel the zeros of σ (s), which are assigned as thenext set of known poles to (11). This iteration processcontinues until the poles are refined to the exact systempoles. In general, it only takes a few iterations. VF isreadily applicable to digital domain (z-domain), calledDiscrete-Time Vector Fitting (VFz), for IIR approxima-tion of FIR filters [9]. In the VFz approach, an initial

set of stable poles{

α(0)n

}is first assigned to be refined.

Analogous to VF, the desired 1D FIR filter response isfitted with a rational function:(

N∑

n=1

cn

z−1 − α(i)n

)+ d

︸ ︷︷ ︸(σf)(z)

((N∑

n=1

γn

z−1 − α(i)n

)+ 1

)

︸ ︷︷ ︸σ(z)

f(z).

(12)

In digital systems, it is required that |αn| > 1 since stablepoles are inside the unit circle. For Ns frequency pointsat z = zm (m = 1, 2, . . . Ns) and Ns ≫ 2N + 1, (12) ispresented in an overdetermined linear equation(

N∑

n=1

cn

z−1m − α

(i)n

)+ d −

(N∑

n=1

γnf(zm)

z−1m − α

(i)n

)≈ f (zm) ,

(13)

where i is the ith iteration. It can be solved by

Ax = b, (14)

where the mth row in A, Am, and entries inthe column vector b, bm, and x are Am =[

1

z−1m −α

(i)1

. . . 1

z−1m −α

(i)N

1 −f(zm)

z−1m −α

(i)1

. . . −f(zm)

z−1m −α

(i)N

],

x =[

c1 . . . cN d γ1 . . . γN

]T, and

bm = f (zm) .

To determine the new poles (the reciprocals of zeros ofσ (s)) for next iteration, the poles are computed by theeigenvalues of the following function:

Ψ =

α(i)1

α(i)2

. . .

α(i)N

11...1

[

γ1 . . . γN

]

(15)

−2

0

2

−2

0

2

−50

−40

−30

−20

−10

0

10

w1w2

Mag

nitu

de

Figure 2: Magnitude response of the 2D prototype low-pass FIR filter by SDP.

To ensure stability,∣∣∣α(i+1)

n

∣∣∣ must be greater than 1. Un-

stable poles are relocated by flipping their reciprocals,

1/α(i+1)n , into the unit circle. This is possibly done

by multiplying both sides of (12) by an allpass filterz−1

−α(i+1)n

1−α(i+1)n z−1

. Here only the phase is changed. When all

the poles converge, σ (z) ≈ 1. It turns out that the IIRdenominator part is determined by

f(zm) =

(N∑

n=1

cn

z−1m − α

(NT )n

)+ d ≈ f (zm) . (16)

VFz is also extended to handle complex conjugate polescommonly found in digital filters. The accuracy and com-putational complexity of VFz are dependent of the or-der of the 1D subfilters, the number of iterations andfrequency-sampling points. In short, VFz improves theapproximation accuracy successively by using determinis-tic pole relocation techniques. It is shown by experimentsthat its accuracy is comparable, if not better, than thatof model reduction techniques [10,11], but with much lesscomputational complexity. The saving is even more sig-nificant when the number of subfilter sections is large.This result is remarkable. Besides magnitude approxi-mation, VFz simultaneously performs accurate phase ap-proximation, whose linearity is particularly important inimage processing.

4 Numerical Example

We would like to verify the performance using two nu-merical examples. The proposed design methodology isillustrated with a practical lowpass filter example similarto that in [5]. A diamond-shape linear-phase FIR filterwith order = (37, 37) is used whose specification is

W (ω1, ω2) =

{0dB, for |ω1| + |ω2| ≤ 0.8π

−40dB, for |ω1| + |ω2| > π

(17)

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)

Page 4: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

−2

0

2

−2

0

2

−50

−40

−30

−20

−10

0

10

w1w2

Mag

nitu

de (

dB)

Figure 3: Magnitude response of the approximated 2Dlowpass FIR filter after SDM.

−20

2

−20

2

−40

−20

0

w1

(a)

w2

Mag

nitu

de (

dB)

−20

2

−20

2

0

10

20

30

w1

(b)

w2

Gro

up D

elay

Figure 4: Frequency response of the approximated 2Dlowpass IIR filter via VFz: (a) magnitude response and(b) group delay in the passband.

0 5 10 15 200

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Pro

port

ion

Eigenvalues of each subsection

Figure 5: Eigenvalues of the lowpass filter example H1

of (7) in ratio, which shows the importance of each sub-section.

Uniformly distributed grid points of 47 × 47 are used.The algorithm is coded in Matlab m-script file and rununder Matlab 7.2 environment on a 1G RAM 3.4GHzcomputer. The filter specification is first converted intoan SDP problem containing 5651 equations. The pro-totype filter is decomposed into five sections (k = 5)by SDM, which is the most important subsection (sec-tions with the five largest eigenvalues proportion, shownin Fig. 5). Figs. 2 and 3 show the magnitude responseof filter after using SDP and SDM, respectively. Eachsection is then approximated by a 1D IIR subfilter us-ing VFz with orders 19, 20, 19, 20, and 21, respectively.The numerator and denominator in each 1D filter are ofthe same order. 130 sampling points and 5 iterations areused in VFz. Fig. 4 shows the frequency response of thefinal 2D IIR filter. The normalized rms errors of the IIRfilter approximant are 0.4% and 0.6% in the passbandand stopband, respectively. The normalized rms errorsbetween the final design and the ideal design are 4% and5%, respectively. Furthermore, as seen in the figure, theIIR filter approximant preserves linearity (constant groupdelay) in the passband and the approximation error ismainly introduced in SDM. The computation time is 507CPU seconds for FIR prototype filter design (using SDP)and only 1.51 CPU seconds for IIR approximation (usingSchur decomposition and VFz approximation). Its ad-vantage in fast computation is therefore demonstrated.Fig. 7 shows that VFz can achieve good approximationsfor subfilter design. The normalized errors of subfilterapproximations are 0.1%, 0.1%, 4%, 4%, and 5%, respec-tively. Compared to a direct implementation of the orig-inal 2D FIR filter, the proposed SDP/SDM/VFz designflow has resulted in a hardware saving (essentially mul-tipliers) of more than 50%. Fig. 8 shows an image noisefiltering example.

A bandreject filter example is used in the second exam-ple. Bandreject filters are popularly used to remedy im-ages corrupted by additive periodic noise with a known

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)

Page 5: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

010

2030

40

010

2030

40−0.3

−0.2

−0.1

0

0.1

0.2

0.3

0.4

0.5

Z1Z2

Mag

nitu

de

Figure 6: Impulse response of the approximated 2D IIRlowpass filter via VFz.

0 0.5 1−60

−40

−20

0

20

Normalized Frequency

dB

(a)

0 0.5 1−60

−40

−20

0

Normalized Frequency

dB

(b)

0 0.5 1−60

−40

−20

0

Normalized Frequency

dB

(c)

0 0.5 1−60

−40

−20

0

Normalized Frequency

dB

(d)

0 0.5 1−100

−50

0

Normalized Frequency

dB

(e)

ActualApprox.

Figure 7: Magnitude response of subfilter approximationusing VFz. (a) - (e) are subfilters of sections 1-5 respec-tively.

(a)

(b)

Figure 8: Images in the numerical example. (a) Noisecorrupted image. (b) Filtered result using 2D IIR filter.

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)

Page 6: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

frequency. A circular-shape linear-phase FIR filter withorder = (37, 37) is used whose specification is

W (ω1, ω2) =

0dB,0dB,

−40dB,

for 0 <√

ω21 + ω2

2 ≤ 0.5π

for 0.8π <√

ω21 + ω2

2 ≤ π

for 0.6π <√

ω21 + ω2

2 < 0.7π.

(18)

Uniformly distributed 47× 47 grid points are used. Theprototype filter is decomposed into four sections (k = 4)by SDM. Fig. 11 shows the proportion of the eigenvalues.The figure shows that the first few sections have the largerest eigenvalues and contribute most proportion of filtercharacteristic. Each section is then approximated by a1D IIR subfilter using VFz with orders 18, 19, 20, and21, respectively. The numerator and denominator in each1D filter are of the same order. 100 sampling points and7 iterations are used in VFz. Figs. 9 and 10 show the fre-quency response and impulse response of the final 2D IIRfilter respectively . As seen in the figure, the IIR filter ap-proximant preserves linearity (therefore, constant groupdelay) in the passband. Two figures of noise removal areshown in Fig. 12(b) and Fig. 12(c) using 2D FIR pro-totype filter and 2D IIR filter, respectively. They bothshow that noise is greatly reduced without much blurringto the original image. The degradation in image qualityis small when the 2D FIR prototype filter is replaced withthe 2D IIR filter.

The computation time is 528 CPU seconds for FIR pro-totype filter design (using SDP) and 1.2987 CPU sec-onds for IIR approximation (using Schur decompositionand VFz approximation). Its advantage in fast 2D IIRapproximation is therefore demonstrated. The num-ber of multipliers in the 2D IIR filter is 156, whichsaves 45.5% multipliers of the original symmetric filter(37 × 37 ÷ 4 = 343). Consequently, it is demonstratedthat the proposed IIR filter design flow reduces hard-ware cost while preserving similar filtering quality whencompared to a direct implementation of the original 2DFIR filter.

5 Remarks

1. Besides using SDP, other common and faster de-sign techniques such as the windowing method canbe used to design the 2D FIR filter prototype.The SDM/VFz post-processing can then be used toachieve even faster IIR approximation.

2. The most direct approach is to direct decomposethe desired frequency response into sections usingfrequency SVD and then realized each sections byVFz. This can avoid introduced error and relativelytime consumed in the 2D FIR prototype filter de-sign. This modification can generate a 2D IIR filterwithin a few seconds.

−20

2

−2

0

2

−40

−20

0

w1

(a)

w2

Mag

nitu

de (

dB)

−20

2

−2

0

2

−10

−5

0

5

10

w1

(b)

w2

Gro

up D

elay

Figure 9: Frequency response of the 2D bandstop IIRfilter via the proposed algorithm: (a) magnitude responseand (b) group delay in the passband.

010

2030

40

0

10

20

30

40−0.5

0

0.5

1

Z1Z2

Mag

nitu

de

Figure 10: Impulse response of the approximated 2D FIRbandstop filter via VFz.

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)

Page 7: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

0 5 10 15 200

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8P

ropo

rtio

n

Eigenvalues of each subsection

Figure 11: Eigenvalues of the bandstop filter example H1

of (7) in ratio, which shows the importance of each sub-section.

3. In addition to reducing multipliers, the proposed fil-ter structure is also favorable for VLSI implemen-tation. The identical subfilters exhibit regular andmodular structures, which lead to reduction in inter-connect area and simple floor-planning and layout.Multiplierless filter design techniques are also avail-able for further reducing the hardware cost withinthe IIR filter structures [12].

4. This paper has extended the Vector Fitting conceptto the 2D discrete-time domain. The idea can befurther generalized to n-D IIR filter design, which isuseful in video processing and medical imaging.

5. Besides the bandreject filter in our example, the pro-posed algorithm is also applicable to the efficientconstruction of 2D lowpass, highpass and bandpassfilters, with possible applications in image noise re-moval and edge detection etc.

6. The relationship among error and number of sectionsand filter orders is still investigated. The investiga-tion objective is to fully integrate Schur decomposi-tion and VFz such that filter can be designed withina controlled error and the lowest hardware cost. Asthe frequency response in later order is irregular, itis not optimal to use lower order subfilters for latersubsections.

7. VFz can be generalized as a frequency masking filterdesign technique. It is similar as WLS method [13]with novel weighting construction to simplify calcu-lation. Furthermore, VFz can limit the maximumpole radius, which can control the sensitivity of thequantization error.

6 Conclusion

A new 2D IIR filter design flow has been proposed whichutilizes the SDP/SDM/VFz integration to efficiently ob-tain accurate IIR approximants from 2D linear-phase FIR

(a)

(b)

(c)

Figure 12: Images in the numerical example. (a) Noisecorrupted image. (b) Filtered result using 2D FIR pro-totype filter. (c) Filtered result using 2D IIR filter.

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)

Page 8: Efficient 2D Linear-Phase IIR Filter Design and …Efficient 2D Linear-Phase IIR Filter Design and Application in Image Filtering Chi-Un Lei, Chung-Man Cheung, and Ngai Wong ∗ Abstract—We

filter prototypes. Hardware cost is significantly reduceddue to parallel and modular 1D IIR subfilters. Image pro-cessing examples have demonstrated that the proposedapproach renders high approximation accuracy, low hard-ware cost, and low computational complexity, and effec-tively preserves passband phase linearity.

Acknowledgment

This work was supported in part by the Hong Kong Re-search Grants Council and the University Research Com-mittee of The University of Hong Kong.

References

[1] R. Gonzalex and R. Woods, Digital Image Process-

ing, 2nd ed. Upper Saddle River, N.J.: Prentice-Hall, 2001.

[2] R. Kreuger, “Virtex-EM FIR filter forvideo applications.” [Online]. Available:http://direct.xilinx.com/bvdocs/appnotes/xapp241.pdf

[3] S. M. S. Gong and A. Psarrou, Dynamic Vision:

From Images to Face Recognition, 1st ed. Impe-rial College Press, 2000.

[4] P. C. C. Bouganis, G. Constantinides, “A novel2D filter design methodology for heterogeneous de-vices,” in IEEE FCCM05, 2005, pp. 13–22.

[5] W. Lu, “A unified approach for the design of 2Ddigital filters via semidefinite programming,” IEEE

Trans. Circuits Syst. I, vol. 49, no. 6, pp. 814–826,June 2002.

[6] M. A. W.P. Zhu and M. Swamy, “Realization of2-D linear-phase FIR filters by using the singular-value decomposition,” IEEE Trans. Signal Process-

ing, vol. 47, no. 5, pp. 1349–1358, Mar. 1999.

[7] R. Aldhaheri, “Design of 2-D linear phase digitalfilters using schur decomposition and symmetries,”vol. 15, no. 1, pp. 65–81.

[8] B. Gustavsen and A. Semlyen, “Rational approxi-mation of frequency domain responses by vector fit-ting,” IEEE Trans. Power Delivery, vol. 14, no. 3,pp. 1052–1061, July 1999.

[9] N. Wong and C. Lei, “FIR filter approximation byIIR filters based on discrete-time vector fitting,” inProc. IEEE Symp. Circuits and Systems, May 2007,to appear.

[10] B. Beliczynski, I. Kale, and G. D. Cain, “Approx-imation of FIR by IIR digital filters: an algorithmbased on balanced model reduction,” IEEE Trans.

Signal Processing, vol. 40, no. 3, pp. 532–542, Mar.1992.

[11] H. K. Kwan and A. Jiang, “Recent advances in FIRapproximation by IIR digital filters,” in Proc. Int.

Conf. Communications, Circuits and Systems, June2006, pp. 185–190.

[12] C. Lei and N. Wong, “Multiplierless polynomial-operator-based IIR filters for efficient VLSI imple-mentation,” in IEEE TENCON, 2006.

[13] W. Lu, S. Pei, and C. Tseng, “A weighted least-squares method for the design of stable 1-D and 2-DIIR digital filters,” IEEE Trans. Signal Processing,vol. 46, no. 1, pp. 1–10, Jan. 1998.

IAENG International Journal of Applied Mathematics, 37:1, IJAM_37_1_9 ______________________________________________________________________________________

(Advance online publication: 15 August 2007)