FILTERING DEVICE

Abstract: The invention relates, in the field of subband decomposition, to the design of filter banks adapted to the input signal statistics. In most cases, two channel filter banks are iteratively applied over several levels of decomposition, the signals in the resulting subbands representing decimated and filtered versions of the input signal. According to the invention, it is proposed a perfect reconstruction critically decimated polyphase filter bank with a ladder structure, which adapts to the nonstationarities in the input signal. In the simplest embodiment, four steps are provided in the implementation of the filtering method: a splitting step (21), provided for subdividing the input signal c>o<(n) into two disjoint subsets c>o<(2n) and c>o<(2n+1) of samples (odd and even ones), a predicting step (22), provided for predicting on the basis of the even subset the odd one (d>1<(n) = c>o<(2n+1) - P1 [c>o<(2n)], an updating step (23), provided for generating on the basis of said predicted odd subset the even one (c>1<(n) = c>o<(2n) + U1 [d>1<(n)], and an iterative cross-optimization step associating said updating step (23) of the current decomposition level and the predicting step (32) of the following one. More generally, several successive similar scales may be provided, a minimization of the variance of the obtained coefficients being used as an optimization criterion at each scale.

Description: Filtering device. FIELD OF THE INVENTION The present invention relates to a device for filtering an input sequence of digital signals, comprising : (1) a first filtering stage, itself including : (A) a first splitting circuit, provided for subdividing the input sequence into two disjoint sets of samples, comprising respectively the odd samples c 0 (2n+l) and the even samples c 0 (2n) of said sequence ; (B)-a first predicting circuit, provided for generating "detail" coefficients di(n) = c 0 (2n+l) - PI [....,c 0 (2n-2), c 0 (2n), c 0 (2n+2),....], where PI is a first linear filter and (...., c 0 (2n-2), c 0 (2n), c 0 (2n+2),....) is the vector containing only the even samples of the input signal ; (C) a first updating circuit, provided for generating "approximation" coefficients C](n) = c 0 (2n) + Ul [....,dι 0 1), di(n), dι(n+l),....], where Ul is a second linear filter and (...., dj(n-l), d^n), d^n+l),....) is the vector containing the "detail" coefficients ; (2) at least a second filtering stage, itself including: (D) a second splitting circuit, provided for subdividing the previously generated "approximation" vector into two disjoint sets of samples, similarly called c^n+l) (E) a second predicting circuit, provided for generating a second level of "detail" coefficients d 2 (n) = cι(2n+l) - P2 [...., cι(2n-2), Cι(2n), c 1 (2n+2),....], where P2 is a third linear filter and (...., c \ (2n-2), C ! (2n), C ! (2n+2),....) is the vector of "detail" coefficients of even order resulting from the second splitting operation ; (F) a second updating circuit, provided for generating a second set of "approximation" coefficients c 2 (n) = Cj(2n) + U2[...., d 2 (n-l), d 2 (n), d 2 (n+l),....], where U2 is a fourth linear filter and (...., d 2 (n-1), d 2 (n), d 2 (n+l),....) is the following vector of "detail" coefficients. This invention may be used in a wide range of signal processing applications, such as image and speech compression. BACKGROUND OF THE INVENTION Sub-band decomposition techniques are extensively used for data coding, for instance in signal processing applications like image and speech compression. Applied for example to image compression, they allow to perform a representation of the image information as a collection of sub-images appearing at different resolutions. A popular technique for carrying out such a decomposition is the well-known wavelet transform, that allows an original input signal to be described by a set of sub-band signals. Each sub-band represents in fact the original signal at a given resolution level and in a particular frequency range. This decomposition into uncorrelated sub-bands is implemented by means of a set of monodimensional filter banks applied first to the lines of the current image and then to the columns of the resulting filtered image. An example of such an implementation is described in "Displacements in wavelet decomposition of images", by S. S. Goh, Signal Processing, vol. 44, n° 1, June 1995, pp.27-38. Practically two filters - a low-pass one and a high-pass one - are used to separate low and high frequencies of the image. This operation is first carried out on the lines and followed by a sub-sampling operation, by a factor of 2. It is then carried out on the columns of the sub-sampled image, and the resulting image is also down-sampled by 2. Four images, four times smaller than the original one, are thus obtained : a low-frequency sub-image (or "smoothed image"), which includes the major part of the initial content of the concerned image and therefore represents an approximation of said original image, and three high-frequency sub-images, which contain only horizontal, vertical and diagonal details of said original image. This decomposition process continues until it is clear that there is no more useful information to be derived from the last smoothed image. In the technical report "Building your own wavelets at home", by W. Sweldens and P. Schroder, Industrial Mathematics Initiative, Department of Mathematics, University of Seattle, Carolina, 1995, a new way to implement a very simple example of wavelet transform is described, the so-called Haar wavelet. Consider two numbers A and B as two successive samples of a sequence (A and B have therefore some correlation), a simple linear transform allows to replace them by their average S and their difference D : S = (A + B) / 2 (1) D = B - A (2) (if A and B are highly correlated, the expected absolute value of their difference is small and can be represented with few bits). When using such a linear transform, no information is lost, since A and B can always be reconstructed: A = S - D/2 (3) B = S + D/2 (4) The above-given consideration is the key for understanding the Haar wavelet transform. Consider now a signal S[n] of 2" sample values s[n, t] : S[n] = s[n,£] 0 < £ < 2"- 1 (5) and apply the average and difference transform to each pair A = s[2l] and B = s[2€ + 1]. There are 2" "1 such pairs (I = 0, 1, 2, 3, , 2" "1 ). The results are the following: s[n-l, I] = ( s[n,2£] + s[n, 21 + 1] ) / 2 (6) d[n-l, £] = s[n, 2£ + l] - s[n, 2€] (7) The input signal s[n], which has 2 n samples, is split into two signals : s[n-l], with 2" "1 averages s[n-l, £], and d[n-l], with 2 n_1 differences d[n-l, I], these averages and differences always allowing to recover the original signal S[n]. The averages can be seen as an approximation or a coarser representation of the original signal S[n], and the differences as the detail information needed to go from that coarser representation back to this original signal. If said original signal has some coherence (e.g. if the samples are values of a smoothly varying function), then the coarse representation closely resembles this original signal, the details being very small. When applying iteratively the same transform to the coarser signal (by taking the average and difference), a coarser signal s[n-2] and another difference signal d[n-2], splitting s[n-l], are obtained. When repeating this operation n times, a Haar transform is implemented (that can be thought of as applying a N x N matrix (N = 2") to the signal S[n]). A new way of looking at the Haar transform, also called the "ladder" of lifting scheme, can then be presented, the novelty lying in the way the difference and the average of two numbers A and B can be computed. If one wants to compute the whole transform in- place - i.e. without using auxiliary memory locations, by overwriting the locations that hold A and B with the values of respectively S and D - , it cannot be done with the previous formulas (1) and (2) : when using them and storing S and D in the same location as A and B respectively, it would lead to a wrong result. Another implementation in two steps is preferred : - first the difference D = B - A is computed and stored in the location for B (which is therefore lost, thus preventing from computing directly S = A + B) ; - B being lost, the average is then found by using A and the newly computed difference D, according to the formula S = A + D/2 which gives the same result, and this result is stored in the location for A. The advantage of such a splitting into two steps is that it is possible to overwrite B with D and A with S without requiring any auxiliary storage. This particular scheme can be described in more detail. Consider a signal S[ j ] with 2 J samples, which has to be transformed into a coarser (or "approximation") signal S[ j-1 ] and a "detail" signal D[ j-1 ]. A typical case of a wavelet transform built through the above scheme (see the technical report previously cited) consists of three steps, each of which is described in more detail, in relation with Fig.1 : - a splitting step SPL : the signal S[j] is divided, in a splitting stage 11, into two disjoint subsets of samples, one group consisting of the even indexed samples s[2£] and the other one consisting of the odd indexed samples s[2€ + 1] (this splitting into even and odd samples is called the Lazy wavelet transform). The following operator can therefore be built : (even [j-1 ], odd [ j-1 ] ) = split[ s[ j ] ] (8) - a predicting step PRED : if the signal S[ j ] has a local correlation structure, these even and odd subsets are highly correlated, which allows to predict, in a predicting stage 12, one of the two sets with a reasonable accuracy if the other one is given (in the present case, the even set is always used to predict the odd one : an odd sample s[ j, 21 + 1] uses its left neighbouring even sample s[ j, 21] as its predictor, for determining the difference d[ j-1, 1] = s[ j, 21 + 1] - s[ j, 2t] between the odd sample and its prediction). More generally, other subband transforms can be implemented using a prediction of the odd samples based only on the previous even ones. Denoting by P the prediction operator, the detail signal is then obtained as the difference between the actual odd sample, at the output of the splitting stage 11, and its prediction, at the output of the predicting stage 12, and can be written: d [j-l ] = odd[j-l ] - P[even [j-l ] ] (9) where "even" represents all even samples previous to j-1. - an updating step UPD : one of the key properties of the coarser signals is that they have the same average value as the original signal, i.e. the quantity S = 2~J ∑ S U^J (10) is independent of j , which has for result that the last coefficient s[0,0] is the DC component or overall average of the signal. The updating step, carried out in an updating stage 13, ensures this by letting: s[j-l, £] = s[j, 2€] + d[j-l, £]/2 (11) Substituting this definition, it can easily be verified that : 2 J'[ 2 J" ' 2 J" ' 2' ∑sD-l, ] =∑(sD,2^] + dD -l,fl 2) = l 2∑(sD^] + sD > 2^ + l]) = l 2∑sD > ] (U) which allows to define an operator U of the form: s[j-l ] = even[j-l ] + U[d[j-1 ]] (13) In the case of the Haar transform, U[d[ j-1 ]] is simply (d[j-l])/2. More complicated updating operators exist for other subband transforms. The subtractor and the adder are designated by the references 14 and 15. All these computations are made in-place : the even locations can be overwritten with the averages and the odd ones with the details. A C-like implementation of these computations may be given by: ( odd[ j-1], even[ j-1 ] ) : = Split (s[j ] ) odd[j-l ] - = P(even[j-1 ] ) even[ j-1 ] + = U(odd[j-l ] It has then been shown that any linear wavelet transform can be implemented with such kind of scheme, where the scale transition is achieved by applying a second predict/update stage to s and d signals, thus constituting a filter bank. An important characteristic of the filter bank which is employed should be the maximization of the energy compaction of the input, which drastically influences the final coding gain. In this context, efforts have been made on the design of filter banks that are optimally adapted to the input signal statistics. These filter banks are generally non-varying decompositions, which act in the same way whatever the input image. It then appeared as possible to design adaptive filters, changing with the varying characteristics of the input, but, till now, only the first step of these schemes was adapted to changing input, such as described for instance in "Linear/nonlinear adaptive polyphase subband decomposition structures for image compression", by δ.N. Gerek and A.E. Cetin, Proceedings of the 1998 IEEEE International Conference on Acoustics, Speech and Signal Processing, vol.III, May 12-15, 1998, Seattle, WA(USA), pp. 1345-1348. SUMMARY OF THE INVENTION It is therefore an object of the invention to propose, with respect to such an implementation, an optimized adaptive filtering device, allowing a complete adaptation to varying characteristics of the input. To this end, the invention relates to a device such as defined in the introductive paragraph of the description and which is moreover characterized in that the first updating circuit Ul and the second predicting circuit P2 are associated within an iterative cross-optimization operation carried out by using the second filter Ul for optimizing the third filter P2 and then said third filter P2 for optimizing said second filter Ul . The advantage of this structure, adapted to the non-stationarities in the input signal, is that it preserves the perfect reconstruction property, without respect of the filters employed in each concerned pair of filtering stages. This is a major advantage in image coding schemes, because lossless coding is achieved. Preferably, the iterative optimization operation aims at minimizing the variance of the detail coefficients at the output of each decomposition level. The efficiency of the encoding operation of each detail sub-band is indeed increased if its variance has been minimized. At the last level, the optimization aims at minimizing the variance of the approximation coefficients. BRIEF DESCRIPTION OF THE DRAWINGS The particularities and advantages of the invention will now be explained with reference to the embodiment described hereinafter and considered in connection with the drawings, in which : - Fig.1 illustrates an embodiment of a filter bank using the known ladder (lifting) scheme ; - Fig.2 illustrates an implementation of an adaptive filter bank according to the invention ; - Fig.3 illustrates a subdivision of an original image into two sets of samples forming a quincunx grid ; - Fig.4 illustrates the cross-optimization process according to the invention. DETAILED DESCRIPTION OF THE INVENTION An embodiment of a device for the implementation of the method according to the invention is illustrated in Fig.2. This device is for instance described in the case the input signal is the sequence of the 2J successive digital samples corresponding to an image. This input signal has then the following form (L being the luminance) : IS[j] = L[j], withj = l, 2,...., 2J (14) The first step of the method is carried out by a splitting circuit 21, provided for subdividing the input signal IS[j], consisting of successive samples c 0 (n), into two disjoint sets of samples. The first set comprises the J odd samples of IS[j], and the second one comprises its J even samples. Such a subdivision into two sets of samples, applied to an input image, is shown in the quincunx grid of Fig.3 where the crosses correspond to the odd samples and the circles to the even ones. The two outputs of the splitting circuit 21 are referenced c 0 (2n) and c 0 (2n+l), where c 0 (2n) denotes an even sample of the input signal and c 0 (2n+l) represents an odd sample. The second step is carried out by a predicting circuit 22, provided for generating a "detail" vector dj(n) according to the following equation : d,(n) - c 0 (2n+l) - PI [...., c 0 (2n-2), c 0 (2n), c 0 (2n+2),....], (15) where a filtering operator PI is applied to [...., c 0 (2n-2), c 0 (2n), c 0 (2n+2),....], the vector containing only the even samples of the input signal. With the assumption that PI is a linear filter, the relation (15) becomes : k=+K dι(n) = c 0 (2n -2k) ∑ pi (k).c 0 (2n - 2k) (16) k=-K where pi (k), k G [-K,...,..., +K] are the coefficients of the PI filter. This filter PI can be iteratively optimized in order to minimize the variance of dj(n). The coefficients of the filter PI are therefore updated, using the values of the "detail" coefficients computed at the previous iteration, which gives, for the iteration (i+1) : i pi (k) ( W ) (17) This also means : Pl(k)( i+1 ) = pι(k)® + - 2k) (18) The third step is carried out by an updating circuit 23, provided for generating the "approximation" coefficients Cι(n) obtained from the following equation: c,(n) = c 0 (2n) + Ul [...., d^n-1), dι(n), d,(n+l)....], (19) (where [...., d^n-l), dι(n), dι(n+l)....] is the vector of "detail" coefficients and Ui is also assumed to be a linear filter). The subtraction needed in order to obtain dj(n) and the addition needed in order to obtain Ci(n) are carried out in a subtractor 24 and an adder 25 respectively. As Ul is a linear filter, the equation (19) can be written as follows : k=+K C1 (n) = c 0 (2n) + ∑ uι (k) .dι (n - k) (20) k=-K where u^k), k C [-K,...,..., K] are similarly the coefficients of the Ul filter. The circuits 21 to 25 form the first decomposition level. At a second decomposition level, implemented in similar circuits 31 to 35, the "detail" coefficients d 2 (n) are obtained according to the equation: d 2 (n) = c 1 (2n+l) - P2[....,cι(2n-2), c 1 (2n), c 1 (2n+2),....] (21) where [...., cι(2n-2), C ! (2n), cι(2n+2),....] is the vector of "detail" coefficients of even order resulting from the splitting operator action in the circuit 31. As P2 is considered to be a linear filter, one has: k=+K d (n) = q (2n + 1 ) - ∑ p2(k).q (2n - 2k) (22) k=-K From the equation (20), one deduces : k=+K d(2n+l) = c 0 (4n+2) + ∑ui (k).d!(2n + l -k) (23) k=-K ^=+K and: Cl (2n-2k) = c 0 (4n-4k) + ∑u 1 rø - d 1 (2n - 2k - ^) (24) *=-K Combining the equations (22) to (24), one obtains an equation showing the dependence of d 2 on Ul and P2 : k=+K d 2 (n) = c 0 (4n + 2) + ∑ u 1 (k).d 1 (2n + l -k) k=-K k=+K £=+K - Σ p 2 (k).[c 0 (4n-4k) + ∑ U1 (f).dι (2n - 2k -f)] (25) k = -K £=-K The applicant has considered that, for a fixed filter Ul, the expression (25) is linear in the coefficients of P2, while, for a fixed filter P2, the expression is linear in the coefficients of Ul, and has proposed, according to the invention, to carry out an iterative cross-optimization allowing to determine the coefficients of the two circuits 23 and 32 (i.e. of the two filters Ul and P2). This cross-optimization process, illustrated in Fig.4, is realized with a gradient-descent algorithm in which, at each iteration, the previously determined values of the coefficients of Ul are used to optimize P2 and these new found values of the coefficients of P2 are in turn used to optimize Ul (this is illustrated in Fig.2 by means of the arrows in dotted lines). The steps in Fig.4 are the following: (a) initialization, referenced 41, of the coefficients of the filters Ul and P2 (i = 0); (b) several iterations: (1) a first sub-step, referenced 42, comprises the following operations: (i) d 2 is updated using the existing values of the coefficients of P2 and Ul (operation 421), which leads to the coefficients denoted by d (n) w ; (ii) P2 is updated (operation 422) using the existing values of d2 and Ui, i.e. p 2 • * (= the coefficients to be determined during an iteration (i+1)) is updated using the values ui , p 2 computed during the previous iteration and d 2 w computed in the same iteration in the operation 421 : p 2 { k ) (i+ n . p 2 ( k )0 ) (26) (where μ is the adaptation step), which allows to obtain, by developing the expression (26): •r?=K p 2 (k) (l+1) = P2(k) (l) + / d 2 (n) W .[c 0 (4n -4k) + ∑ uι(f) (l) .dι (2n -2k -- ] (27) (2) a second sub-step, referenced 43, allows to update uι (l+1) using the values p 2 (l+1) computed in the previous step 42 and comprises to this end the following operations: (i) d 2 (= the "detail" coefficients at the second level of decomposition, computed using u ' and p ) is updated using the existing values of the coefficients of P2 and Ul (operation 431), which leads to the coefficients denoted by d 2 (n) (i) ; (ii) Ui is updated (operation 432) using the existing values of P and d 2 , i.e. uι (l+1) is updated using the values p 2 and d (n) (l+1) previously computed. The equation corresponding to this second step is: ur (i+l) J (k) = u,(k) (0 μ g[d 2 (n) ] (28) 2 du,(k) which leads to the expression: This optimization procedure is stopped when the variance of the "detail" coefficients d 2 is not modified more than a predefined threshold epsilon (EPS) between two successive iterations. The comparison to this threshold is carried out by the circuit 44 of Fig.4. If said variance is modified more than this threshold EPS, then the optimization procedure continues (next iteration indicated by the connection 441), until the variance of the "detail" coefficients is no more modified by more than eps. In this case, the final values of d 2 and of the coefficients of Ul and P2 are now available (connection 442). For the last decomposition level, the optimization of the updating circuit (of the circuit 33 in case of two filtering stages only) is carried out independently, by considering as optimization criterion the minimization of the variance of the "approximation" coefficients of this last level, given by : c 2 (n) = cι(n) + U2[...., d 2 (n-l), d 2 (n), d 2 (n+l),....] (30) As U2 is a linear filter, one has: k= c 2 (n) = Cl (n) + ∑ u 2 (k).d 2 (n -k) (31) k=-K Using the value of Ci (n), one obtains : k=K k=K c 2 (n) = c 0 (n) + ∑ uι(k).dι (2n -2k) + ∑u 2 (k).d 2 (n -k) (32) k=-K k=-K The equations describing the gradient-descent algorithm are then as follows (iteration (i+1)): which finally gives: k=K u 2 (k) (i+1) = u 2 (k)» -/ C 2 (n) (i) .∑ d 2 (n -k) (34) k=-K where c (n) (l) are the output coefficients computed at the i-th iteration by taking into account the values u 2 (k) (l) .

Claims: CLAIMS: 1. A device for filtering an input sequence of digital signals, comprising : (1) a first filtering stage, itself including : (A) a first splitting circuit, provided for subdividing the input sequence into two disjoint sets of samples, comprising respectively the odd samples c 0 (2n+l) and the even samples c 0 (2n) of said sequence ; (B) a first predicting circuit, provided for generating "detail" coefficients dj(n) = c 0 (2n+l) - PI [....,c 0 (2n-2), c 0 (2n), c 0 (2n+2),....], where PI is a first linear filter and (...., c 0 (2n-2), c 0 (2n), c 0 (2n+2),....) is the vector containing only the even samples of the input signal; (C) a first updating circuit, provided for generating "approximation" coefficients cj(n) = c 0 (2n) + Ul [....,dj (n-1), dι(n), dι(n+l),....] 5 where Ul is a second linear filter and (...., dι(n-l), dι(n), d^n+l),....) is the vector containing the "detail" coefficients; (2) at least a second filtering stage, itself including: (D) a second splitting circuit, provided for subdividing the previously generated "approximation" vector into two disjoint sets of samples, similarly called cι(2n+l) (E) a second predicting circuit, provided for generating a second level of "detail" coefficients d 2 (n) = cj(2n+l) - P2 [...., cι(2n-2), cι(2n), Cι(2n+2),..„], where P2 is a third linear filter and (...., C \ (2n-2), cι(2n), cι(2n+2),....) is the vector of "detail" coefficients of even order resulting from the second splitting operation; (F) a second updating circuit, provided for generating a second set of "approximation" coefficients c 2 (n) = cι(2n) + U2[...., d 2 (n-l), d 2 (n), d 2 (n+l),....], where U2 is a fourth linear filter and (...., d 2 (n-1), d 2 (n), d (n+l),....) is the following vector of "detail" coefficients; characterized in that the first updating circuit U] and the second predicting circuit P2 are associated within an iterative cross-optimization operation carried out by using the second filter Ul for optimizing the third filter P2 and then said third filter P2 for optimizing said second filter Ul. 2. A filtering device according to claim 1, characterized in that said iterative cross-optimization operation is carried out by using as optimization criterion the minimization of the variance of the "detail" coefficients at each scale from the second one to the last one. 3. A filtering device according to anyone of claims 1 and 2, characterized in that the first prediction circuit PI is optimized by using as optimization criterion the minimization of the variance of the "detail" coefficients d t at the first scale. 4. A filtering device according to anyone of claims 1 and 2, characterized in that, at the last scale N, the last updating circuit U N is optimized by using as optimization criterion the minimization of the variance of the "approximation" coefficients at this last scale.

Inventors: PESQUET-POPESCU BEATRICE, PESQUET-POPESCU, BEATRICE
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 2000
Main classification: H03H21
IPC codes: G06F17, H03H17, H03H21, H04N7