- Research
- Open Access
- Published:

# Two-dimensional integer wavelet transform with reduced influence of rounding operations

*EURASIP Journal on Advances in Signal Processing*
**volume 2012**, Article number: 75 (2012)

## Abstract

If a system for lossless compression of images applies a decorrelation step, this step must map integer input values to integer output values. This can be achieved, for example, using the integer wavelet transform (IWT). The non-linearity, introduced by the obligatory rounding steps, is the main drawback of the IWT, since it deteriorates the desired filter characteristic.

This paper discusses different methods for reducing the influence of rounding in 5/3 and 9/7 filter banks. A novel combination of two-dimensional implementations of the JPEG2000 9/7 filter bank with new filter coefficients is proposed and the effects of the methods on lossless image compression are investigated. In addition, these filter banks are compared to the 9/7 Deslauriers-Dubuc filter bank (97DD).

The analysed two-dimensional implementations generally perform better than their one-dimensional counterparts in terms of compression ratio for natural images. On average, the 2D 97DD filter bank performs best. In addition, it has been found that the compression results cannot be improved by simply reducing the number of lifting steps *via* 2D implementations of the JPEG2000 9/7 filter bank. Only the 2D implementation with a minimum number of lifting steps, in combination with modified lifting coefficients, leads to fewer bits per pixel than the separable implementation on average for a selected set of images.

## 1 Introduction

Efficient systems for the lossless compression of image data require a decorrelation step which maps the integer input samples to integer output values. In wavelet-based compression systems (see [1] for an overview), this is achieved by using the lifting implementation of a discrete wavelet transform (DWT) [2] in combination with the rounding of intermediate computation results, which is called integer wavelet transform (IWT) [3]. Beginning with initial investigations on the IWT, which were also motivated by the standardization of the new image compression system JPEG2000 [4], and its application in the JPEG2000 framework [5], this topic has received growing attention. The idea of integer transforms relates back to the so-called S transform [6], the improved version called S + P transform [7], and the reversible TS transform [8]. Since then, several integer wavelet transforms have been analysed in terms of their performance in image compression systems [9].

Wavelet filter banks are typically designed without taking the integer-to-integer mapping into account. The conversion into an integer wavelet transform requires rounding steps which introduce non-linear effects, which deteriorate the desired filter properties. That is one of the major reasons why JPEG2000 (Part 1) uses the simple 5/3 filter bank, which can be realised with a minimum of lifting steps, *i.e.* a minimum of rounding operators. In addition, this filter bank has favourable coefficients of −0.5 in its first lifting step, leading to rounding errors in only 50% of all cases. The 9/7 filter bank, in contrast, requires irrational filter coefficients, making it per se less suitable for integer-to-integer mapping.

Besides the degradation of the decorrelation performance, the non-linearity of rounding makes the two-dimensional application pseudo non-separable, because the result of a 2D transform is dependent on the order of row and column decomposition.

The effects of rounding have been investigated in [10] with the assumption that rounding errors are similar to quantization errors and can be modelled by additive noise. In [11], the optimizations of filters for a lossy-to-lossless framework and its implementation in hardware are discussed. Another issue of interest is to make the IWT adaptive to the statistics of the image to be processed. This can be achieved by either switching between filters of different length [12–14] or by optimising the lifting steps [15–19]. Many papers are dedicated to the approximation of the standard 9/7 filter coefficients by rational values for low-complexity hardware or software implementations [20–22]. More recent research has also addressed the problem of reducing the adverse effect of rounding operations in terms of designing new filters with more favourable lifting coefficients [23] or modifications of the signal flow, reducing the number of lifting steps [24, 25]. The construction of three-channel filter banks based on the lifting scheme has also been considered for lossless image compression [26].

This paper investigates methods for reducing the influence of rounding in terms of reduced number of lifting steps and new filter coefficients for the two-dimensional JPEG2000 9/7 filter bank. The derived processing structures are evaluated with respect to compression efficiency and complexity. In addition, the results are compared to the one- and two-dimensional implementation of the LeGall 5/3 filter bank [27] and the 9/7 Deslauries-Dubuc filter bank [3, 28–30], which both can be implemented with only two lifting steps.

The paper is organised as follows: first, Section 2 reviews the reversible 5/3 filter bank used in JPEG2000, discusses the handling of signal boundaries, and explains how the 2D implementation reduces the number of rounding steps. Section 3 is dedicated to the JPEG2000 9/7 filter bank. It explains the separable 2D signal flow and afterwards describes how the number of lifting steps can be decreased by rearranging the processing steps. Section 4 discusses a Deslauriers-Dubuc filter bank (97DD), which can be implemented with the same 2D structure as the 5/3 filter bank, while having filter lengths of nine and seven. In Section 5, the design of ‘rounding-friendly’ filters is addressed. Section 6 investigates all processing structures by means of sub-band entropy, compression performance, and complexity. Section 7 concludes the paper.

## 2 The 5/3 filter bank

### 2.1 One-dimensional decomposition

The biorthogonal 5/3 two-channel filter bank is based on following analysis filters [27]

$({h}_{1}[n])$ and $({h}_{0}[n])$ are the impulse responses of the analysis high-pass and analysis low-pass filters, respectively. This filter bank can be easily implemented *via* the lifting scheme [2].

Both filters have two vanishing moments each, *i.e.* they satisfy

Let ${x}_{n}$ ($n=0,1,2,\dots $) be the samples of an integer-valued input signal. The filtering according to the lifting scheme computes, in a primal lifting step, the high-pass filter output ${d}_{n}$ (detail signal)

using the lifting coefficient *α*. A dual lifting step using the coefficient *β* produces the low-pass filter output ${a}_{n}$ (approximation signal)

based on the detail signal ${d}_{n}$ and the original signal values ${x}_{n}$. The property of integer-to-integer mapping, which is essential for lossless compression, is imposed simply by properly rounding the intermediate values to integer values [3].

The application of the lifting steps in reverse order and using subtraction instead of summation reconstructs the original signal ${x}_{n}$

Setting the lifting coefficients equal to $\alpha =-0.5$ and $\beta =0.25$, the lifting scheme (without rounding) performs the same operations as the filters in equation (1) of the conventional filter bank.

### 2.2 Two-dimensional decomposition

The impulse responses of the two-dimensional filters are the products of the one-dimensional filters

Based on the polyphase description in Figure 1, the lifting coefficients of the 2D implementation can be derived. The variable ${z}_{1}$ corresponds to the vertical and ${z}_{2}$ to the horizontal direction. The annotations DD, AD, DA, and AA are related to the positions in Figure 2. The letters A and D denote the 1D approximation signal (low-pass band) and the detail signal (high-pass band), respectively. In 2D, they appear in pairs. DA, for example, denotes the positions of 2D sub-band coefficients derived from horizontal low-pass filtering and vertical high-pass filtering, *i.e.* using the two-dimensional filter $({h}_{10}[n])$. The lifting filters are $L({z}_{1})=(1+{z}_{1})$, $L({z}_{2})=(1+{z}_{2})$, $K({z}_{1})=(1+{z}_{1}^{-1})$, and $K({z}_{2})=(1+{z}_{2}^{-1})$.

The actual number of rounding steps can be determined based on Figure 1. Rounding is required at each lifting step before the summation, *i.e.* eight times in total. The rounding steps are interdependent, however. The horizontal dual steps, for instance, process values from DD and DA positions, which have already been affected by the rounding in previous primal steps. This possible accumulation of rounding errors continues in the second dimension of the image signal.

Let **X** and **Y** be the polyphase input and output vectors

Then, the first two lifting steps can be denoted as

with ${a}_{2}=\alpha \cdot L({z}_{2})$ and ${b}_{2}=\beta \cdot K({z}_{2})$. After exchanging the orientation using the permutation matrix

another two lifting steps follow

with ${a}_{1}=\alpha \cdot L({z}_{1})$ and ${b}_{1}=\beta \cdot K({z}_{1})$. The entire processing is

leading to equation (16) in Figure 3.

In Figure 1, the single lifting steps are annotated with either *α* or *β*, expressing which of the two equations (3) or (4) is used (in one dimension). The 2D-lifting computation is derived from this signal flow as follows. If $X({z}_{1},{z}_{2})$ corresponds to ${x}_{n,m}$, then we get the following equivalences:

With respect to Figure 2, the sub-band signals

are accordingly computed as follows. The two-dimensional detail signal is computed with

According to the processing structure of the lifting scheme, the signal values ${x}_{2n,2m}$ are now overwritten by $d{d}_{2n,2m}$ and are not available anymore. Therefore, the next lifting step is

Since we know that the filter $({h}_{01}[n])$ is the transpose of $({h}_{10}[n])$, the computation of the AD path must analogously be equal to

Based on these three relations we get

Consequently, the two-dimensional filters ${h}_{11}\cdots {h}_{00}$ can be implemented directly using a 2D lifting structure. Figure 4 illustrates the processing steps.

Based on equations (17)-(20), it becomes obvious that only one single rounding step is required for each sub-band value in the 2D implementation. And, in fact, the scheme in Figure 1 can be modified accordingly, reducing the total number of lifting steps from eight to four (Figure 5). This corresponds to a factorization of equation (16) in merely three matrices, since signals AD and DA can be computed concurrently

with

and

Section 6 investigates the influence of the reduced number of rounding steps on the performance of an IWT-based compression system.

## 3 JPEG2000 9/7 filter bank

### 3.1 One-dimensional decomposition

The standard 9/7 filter bank can be implemented based on the lifting scheme in the same manner as the 5/3 filter bank shown in the previous section. The only difference is that, in total, four lifting steps are needed in each direction ([23], Figure 2).

In literature, the factorization of a scaling factor is also discussed. We would like to remark that in the case of lossless compression, this scaling is not necessary and would merely introduce more rounding operations degrading the performance of the wavelet transform. In lossy compression, the scaling can be shifted into the quantization step, thus, there is no reason to treat the scaling within the transformation stage.

Further, it must be pointed out that for the practical implementation and in order to avoid an exception handling at the signal boundaries, it is sufficient to extend the original or intermediate signals by a single value at both boundaries.

In application to image compression, the typical filter design aims to achieve maximal flat magnitude responses at frequency $f=0$ (high-pass filter) and at half of the sampling frequency (low-pass filter), *i.e.* a maximum number of vanishing moments is desired [31]. The 9/7 filters allow for 4 vanishing moments each, thus the equations (2) hold true for $p\in \{0;1;2;3\}$. These constraints lead to the following lifting coefficients, either *via* factorisation of the two-channel filter bank [32] or *via* direct filter design based on the lifting structure [23]

### 3.2 Two-dimensional decomposition

The two-dimensional signal flow can be described in similar manner as the 2D 5/3 filter bank. Figure 6 depicts the separable transformation without rounding steps. The annotation of primal and dual lifting steps with *α*, *γ*, *β*, and *δ*, relates to the subsequent lifting steps shown in [23], Figure 2. For the sake of visualisation, the annotation with $L({z}_{1})$, $L({z}_{2})$, $K({z}_{1})$, and $K({z}_{2})$ is omitted. Its influence should be clear by now. The coefficients *α* and *γ* are associated with $L({z}_{k})$, *β* and *δ* with $K({z}_{k})$. The processing can be denoted as

The four additional lifting ${L}_{5}\cdots {L}_{8}$ steps are identical to ${L}_{1}\cdots {L}_{4}$ in their structure, only the lifting coefficients are exchanged from *α* to *γ* and *β* to *δ*.

The inner eight lifting steps encircled by the dotted line have the same structure as the 5/3 decomposition in Figure 1

In [24], it is suggested to substitute them, using the lifting structure of Figure 5, facilitating the reduction of rounding steps. Figure 7 shows the result. As can be seen, the first two lifting steps in the horizontal direction, as well as the last two steps in the vertical direction, remained untouched. The number of rounding operations has been reduced from four (Figure 6) to only three per sub-band sample.

It is, however, possible to reduce the number of rounding steps further by reordering the matrices

The third and fourth lifting step of the horizontal decomposition of Figure 7 can be moved to the end of the processing pipeline (Figure 8). Now, both parts encircled by the dotted lines can be substituted using the lifting structure of Figure 5. The corresponding processing is

with

and

with ${g}_{1}=\gamma \cdot L({z}_{1})$, ${g}_{2}=\gamma \cdot L({z}_{2})$, ${d}_{1}=\delta \cdot K({z}_{1})$ and ${d}_{2}=\delta \cdot K({z}_{2})$.

The new decomposition in Figure 9 requires even fewer lifting steps and is still fully compatible with the conventional 9/7 filter bank (Figure 6), when the rounding steps are left out. Now, only two steps per sub-band sample are required. The number of consecutive processing steps is even reduced from eight (Figure 6) to six, since the AD and DA channels can be computed at the same time. Iwahashi and Kiya developed this structure independently with the focus on the reduced latency of this 2D decomposition [25].

## 4 Deslauriers-Dubuc 9/7 filter bank

In addition to the filter banks defined in the JPEG2000 standard part I, the Deslauriers-Dubuc 9/7 filter bank (97DD) is of interest in this context [3, 28, 29]. Its high-pass filter has four vanishing moments and the low-pass filter two. As the name suggests, the filters have 9 and 7 taps, respectively

The filter bank, however, can be implemented with only two lifting steps, similar to the 5/3 filter bank. In integer arithmetic, the lifting steps are

This makes the structure in Figure 5 applicable for the 97DD filter bank as well. The only difference concerns following lifting polynomials: $L({z}_{1})=({z}_{1}^{-1}-9-9\cdot {z}_{1}+{z}_{1}^{2})$ and $L({z}_{2})=({z}_{2}^{-1}-9-9\cdot {z}_{2}+{z}_{2}^{2})$ both in combination with $\alpha =1/16$. The other lifting steps remain $K({z}_{1})=(1+{z}_{1}^{-1})$ and $K({z}_{2})=(1+{z}_{2}^{-1})$ with $\beta =1/4$.

The 2D lifting steps of the 97DD filter bank are implemented as

## 5 ‘Rounding-friendly’ lifting coefficients

The superiority of the separable 5/3 filters over the separable standard 9/7 IWT filter bank, documented in literature [3, 9, 23], has its reason in the minimal accumulated influence of rounding at each lifting step, leading to a minimal change in the filter characteristics. Not only is the number of steps lower (only two instead of four in each direction), but the rounding error in its first lifting step is also smaller, since the factor of $\alpha =-1/2$ only results in errors when the sum of ${x}_{2m}$ and ${x}_{2m+2}$ is odd (see eq. (3)). The degradation of the magnitude response of the standard 9/7 filter is distinctly higher.

With this degradation in mind, we investigated whether some of the filter-design constraints leading to a maximum number of vanishing moments can be released, to obtain lifting coefficients which introduce fewer rounding errors, while keeping the essential characteristic of the magnitude responses.

Introducing a maximal number of vanishing moments as realized with equation (2) corresponds to a maximum number of zeros at $z=-1$ for the analysis low-pass filter ${H}_{0}(z)$ and at $z=1$ for the analysis high-pass filter ${H}_{1}(z)$ (Figure 10). The corresponding lifting coefficients have already been shown in equation (24).

In general, the relaxation of these filter constraints leads to poorer decorrelation of the input image. If, however, the adverse effects of rounding decrease due to the modification of the lifting coefficients, then there might be an optimal compromise. Reducing the number of vanishing moments from four to two increases the degree of freedom in selecting lifting coefficients with suitable properties.

Inspecting the flow chart in Figure 6, it becomes obvious that the first lifting step has the greatest influence on the non-linear filter characteristic. All rounding errors introduced at this point are likely to propagate through the entire lifting cascade. Consequently, it is desirable to find a set of lifting coefficients leading to similar magnitude responses as the original coefficients in eq. (24), but with *α* equal to −1 avoiding any rounding error in the first lifting step. A promising set of lifting coefficients was found in [23] with

The approximation to

allows a division-free implementation in integer arithmetic as follows

The corresponding filters have no real vanishing moments. Figure 11 shows that in comparison to Figure 10, zeros have moved from their original location on the unit circle to other places.

## 6 Investigations

### 6.1 Effects of rounding in 1D

The effects of rounding on the impulse responses of the high and low-pass filters have been investigated in the following manner.

The convolution

was computed with $(x[n])$ equal to the Kronecker delta $\delta [k]$ as input signal. The convolution result is therefore equal to

If, however, the rounding to integer values is additionally performed, then the result is not $v\cdot h[n-k]$, but $v\cdot {h}^{\prime}[n-k]$. When using an impulse magnitude of $v=9$ and setting $k=0$, for example, the designed impulse responses of the 5/3 decomposition change from eq. (1) to

In case of the standard 9/7 filters, the impulse responses change from

to

Figure 12 shows the corresponding magnitude responses depending on the value *v* of the single impulse functioning as input signal.

The smaller the input value *v*, the higher the effect of rounding.

### 6.2 Effects of rounding in 2D

In order to illustrate the rounding effects in two dimensions, the same procedure as in the previous section was performed, but with the distinction that 2D filters were used.

#### 6.2.1 Effects in the 5/3 filter bank

Figure 13(a) depicts the original magnitude response of the 5/3 filter $({h}_{11}[n])$ from eq. (7). The frequency axes are normalised by the sampling frequency. If rounding is applied, the magnitude response changes (Figure 13(b)). In this and subsequent investigations, the impulse magnitude used as input signal was always set equal to $v=9$.

In general, the resulting impulse responses depend on the processing structure. In the particular case of $v=9$ however, the ${h}_{11}$, ${h}_{10}$, and ${h}_{01}$ filters are the same for both (Figure 1 or from Figure 5). The impulse responses from eqs. (7)-(9) change in both cases to

Figures 13(c) and (d) compare the original with the deformed magnitude responses for the filter ${h}_{01}$.

The different impact of rounding in the discussed signal-flow structures becomes visible when inspecting the magnitude responses of the 5/3 filter ${h}_{00}$ from eq. (10). While in the separable implementation, *i.e.* the consecutive processing of horizontal and vertical direction, the deformation is different in ${f}_{\mathrm{x}}$ and ${f}_{\mathrm{y}}$, the changes are symmetric in the modified implementation (Figure 14).

The two-dimensional impulse responses from (10) deteriorate to

in case of the separable implementation and to

in case of the 2D implementation.

#### 6.2.2 Effects in the 9/7 filter bank

For the case of the standard 9/7 filter bank, we have to compare three different implementations, which are called ‘97v1’, ‘97v2’, and ‘97v3’ in the following, according to the flow charts in Figures 6, 7, and 9, respectively.

The ${h}_{11}$ impulse response changes from the matrix shown in Figure 15 to following

The magnitude of the input impulse was again equal to $v=9$. In order to comply with at least the basic requirements of a real high-pass filter, the sums in all rows and columns of the impulse response should be zero. However, this condition is no longer fulfilled, as can be concluded from the matrices above. The graph of the corresponding magnitude responses underlines this observation (Figure 16).

Similar alterations of the filter coefficients can be observed for the ${h}_{01}$, ${h}_{10}$, and ${h}_{00}$ filters. Another effect of non-linearity is that the ${h}_{10}$ filters are no longer the transposes of the ${h}_{01}$ filters.

Comparing the similarities of the two-dimensional impulse responses between the different implementations, the deviation is higher for the ${h}_{10}$ and ${h}_{01}$ filters than for the ${h}_{11}$ filter. This continues for the ${h}_{00}$ filter, which shows the highest variation from one implementation to another.

Using the new lifting coefficients, the degradation of the filters is generally reduced (Figure 17 in comparison with Figure 16).

Note that the degradation is dependent on the magnitude of the impulse functioning as input signal. The shown magnitude responses merely give an impression of the effects, but do not allow a general conclusion or even a theoretical analysis.

### 6.3 Efficiency of decorrelation

The efficiency of the different filter banks was first analysed based on the zero-order entropies of single sub-bands.

Table 1-Table 4 contain the zero-order entropies of the sub-bands DD, AD, DA and AA after one 2D decomposition step is applied to different grey-scale images. Barbara-Zelda are taken from [33], cats_g-educ from [34]. kodim07-kodim09 are the green components of true colour images found at [35]. The meaning of the column titles is

– 53v1: 5/3 filter bank, implementation of Figure 1,

– 53v2: 5/3 filter bank, implementation of Figure 5,

– 97D1: 9/7 Deslauriers-Dubuc, implementation of Figure 1,

– 97D2: 9/7 Deslauriers-Dubuc, implementation of Figure 5,

– 97v1: 9/7 filter bank, implementation of Figure 6,

– 97v2: 9/7 filter bank, implementation of Figure 7,

– 97v3: 9/7 filter bank, implementation of Figure 9,

– 97v1a - 97v3a: same as before, but with lifting coefficients from equation (39).

The numbers in bold denote the best (smallest) value in each entire row. In each category (5/3, Deslauriers-Dubuc, 9/7, 9/7 with modified coefficients), the best value is underlined.

While the explanations in Section 2 were given with implicit floating-point arithmetic plus rounding operation (eqs. (3), (4), and (17)–(20)), the practical implementation of the 5/3 filter banks (53v1, 53v2) is based on plain integer arithmetic as follows

The results for the DD band (high-pass filtering in both directions) show a clear trend with decreasing entropy from left to right (Table 1), when excluding 97D1 and 97D2. There is only one exception: the implementation 97v2 leads to lower entropy on average than 97v3 when the standard lifting coefficients (eq. (24)) are used. The Deslauriers-Dubuc filter bank (97D1) performs worst despite the four vanishing moments of its high-pass filter. One reason lies in the gain of ${H}_{1}(z){|}_{z=-1}=2$, which is significantly higher than the gain of the JPEG2000 9/7 high pass. In comparison to the 5/3 filter banks (also having ${H}_{1}(-1)=2$), the filter characteristic seems to be more influenced by the rounding operations deteriorating the advantage of two additional vanishing moments.

The 2D implementations of the 5/3 filter bank (53v2) and of the Deslauriers-Dubuc filter bank (97D2) are superior to the separable implementations. All other 9/7 implementations yield better results, despite the higher number of lifting steps. It also can be seen that the modified lifting coefficients truly improve the decorrelation on average. However, the numbers in this table also reveal that the number of rounding steps is not a unique measure to estimate the influence of rounding steps. The DD values depend on three steps in 97v2 and only on two steps in 97v3; nevertheless, the result is better for 97v2.

Table 2 draws another picture. The implementations 53v2, 97D2, 97v2, and 97v3a are again the winner within their categories. The filter banks based on only two lifting steps, however, lead to the smaller entropies in the AD band on average. Surprisingly, the results for the DA band in Table 3 are not very similar to the values for the AD band. Very interesting, although not in the primary scope of this paper, is the fact that all images taken from [33] have a higher entropy in the DA band compared to the AD band. The vertical edges are obviously sharper than the horizontal ones. Using rotated versions of the images reverses the results. It might be that the point spread function of the camera system used for taking these pictures was not symmetric. This can also cause the 5/3 filter bank to perform better for the DA band than for the AD band. Short filters are more suitable at pronounced edges.

The entropies in the AA band are in principle independent of whether a special 2D implementation is used or not (Table 4). Within each category, the average values are almost the same. The superior results for the 5/3 and 97DD filter banks are also caused by the lower amplification of the low-pass filter (see Figure 12). While their low-pass filter transfer function ${H}_{0}(z)$ is equal to 1 at $z=1$, the amplification for the JPEG2000 9/7 low pass is about 1.25 affecting also the 2D characteristics (compare Figures 14a and 18a).

In addition, we would like to point out that the modified lifting coefficients again have a positive influence on the decorrelation.

### 6.4 Compression results

The overall performance of the different filter banks was tested in combination with a compression system, which applies the basic coding algorithm of JPEG2000 without using the header/marker structure. The number of decomposition steps was dependent on the image size, for example, five decompositions for images with $720\times 576$ pixels and seven decompositions for images with $2048\times 2560$ pixels. The focus was exclusively on lossless image compression. A rate-distortion analysis exploiting the scalability of the compression scheme is not considered in this paper.

When comparing the lossless compression results in bits per pixel (Table 5), the superiority of the 2D implementation of the 9/7 Deslauriers-Dubuc filter bank becomes apparent. There is also only a single case (goldhill.y) where the separable 5/3 implementation is better than any 2D implementation. Only in cases of special image texture (barbara.y, cats_g, and educ) can a standard 9/7 implementation compete with the 5/3 filter banks.

The 97v2(a) implementation does not result in any advantage over the separable 97v1(a) implementation. The new non-separable implementation 97v3a in combination with the lifting coefficients according to eq. (39) performs best within all 9/7 filter banks based on the JPEG2000 9/7 filter-bank structure.

### 6.5 Complexity of implementations

The advantage of separable transformations results from the reduction of the required number of operations compared to their non-separable counterparts. The reduction of the number of rounding steps, however, implies a transfer from separable to non-separable filter banks. Table 6 contains the number of operations needed for the computation of four sub-band values for the investigated filter-bank structures. The numbers have been determined as follows. The implementation of 53v1 is based on equations (3∗) and (4∗). There are five adds and two shifts. To compute four sub-band values, both equations have to be applied two times horizontally and two times vertically, leading to a total number of twenty adds and eight shifts. Equations (17∗)-(20∗) compute four sub-band values according to the 2D structure 53v2. There are $9+5+5+9=28$ adds and $2+2+2+2=8$ shift operations. Filter bank 97D1 is based on equations (32) and (33), requiring eight adds, two shifts and one integer multiplication. Again, these numbers must be multiplied by four. Equations (34)-(37) reflect the complexity of filter bank 97D2. There are $25+7+7+9=48$ adds, nine shift operations and four integer multiplications.

The numbers for filter banks 97v1a, 97v2a and 97v3a have been derived from their implementations (see also eqs. (40)-(47)).

It can be noticed that the increase of complexity is rather moderate when switching from a one-dimensional to a two-dimensional implementation. This is largely due to the properties of the lifting scheme and the utilisation of the symmetry of filters. With respect to the memory access, the 2D implementation is even somewhat advantageous, as the algorithm runs only once through the data and not twice, separately in horizontal and vertical directions. Practical implementations, however, also have to consider the efforts of signal extension at the signal boundaries, which are highest for the 97Dx filter banks.

## 7 Summary and conclusions

The paper has discussed and analysed different attempts to decrease the effects of rounding in implementations of the integer wavelet transform. The number of rounding steps could be reduced practically by special two-dimensional implementations of the 5/3 and 9/7 filter banks and virtually by using a first lifting coefficient of $\alpha =-1$ in the JPEG2000 9/7 filter bank. Dependent on the implementation, the rounding of intermediate values to integers has different effects on the impulse responses and, consequently, on the decomposition of the signal.

The set of test images contained twelve natural images. It can be shown that the various processing schemes affect the single sub-bands differently in terms of entropy. As soon as the low-pass filter comes into play, the 5/3 filter bank and the 97DD filter bank tend to decorrelate the image data better than the standard 9/7 filter bank and its derivatives. The gain of the low-pass filter at $z=1$ has a high impact on lossless compression performance.

The compression results of the 5/3 and 97DD filter bank have been improved on average by substituting the separable implementation with a special 2D processing, which would be compatible in the absence of rounding. The mere reduction of rounding steps by 2D implementations of the JPEG2000 9/7 filter bank does not lead to increased compression ratios. Only when the modified lifting coefficients enabling division-free integer arithmetic are combined with the new proposed 2D implementation does the average bitrate of the compressed images decrease from 4.230 bpp to 4.205 bpp. This is about the same bitrate as for the standard 5/3 filter bank while having distinctly higher complexity.

The results of the different implementations of the 9/7 filter bank reveal that the influence of rounding is not solely determined by the number of lifting steps, which means the rounding errors (strictly: their variances) do not simply sum up. The degradation of the filter characteristics under the presence of rounding also depends on the values of the lifting coefficients and on the structure of processing. The best compression result could be obtained with the new 2D implementation of the 9/7 Deslauriers-Dubuc filter bank (97D2). It requires only two sequential lifting steps as the 5/3 filter bank, while having more suitable filter characteristics. The improvement is 1.36% compared to the standard 5/3 implementation (53v1) for the set of images used.

## References

- 1.
Fowler JE, Pesquet-Popescu B: An overview on wavelets in source coding, communications, and networks.

*EURASIP J. Image Video Coding*2007., 2007: Article ID 60539 - 2.
Sweldens W: The lifting scheme: a new philosophy in biorthogonal wavelet construction, in

*Proc. of SPIE, Vol. 2569,*San Diego, USA, July 1995, 68-79. - 3.
Calderbank AR, Daubechies I, Sweldens W, Boon-Lock Y: Lossless image compression using integer to integer wavelet transforms, in

*Proc. of ICIP*26-29 Oct 1997, 596-599. - 4.
ISO/IEC JTC1/SC29/WG11 N1890, Information technology - JPEG 2000 Image Coding System. JPEG 2000 Part I, Final Draft Intern. Standard 15444, 25 Sep. 2000

- 5.
Sheng F, Bilgin A, Sementilli PJ, Marcellin MW: Lossy and lossless image compression using reversible integer wavelet transforms, in

*Proc. of ICIP*vol. 3, Los Alamitos, CA, USA (1998), 876-880. - 6.
Heer VK, Reinfelder H-E: A comparison of reversible methods for data compression.1233.

*Proc. of SPIE - Medical Imaging IV*1990, 354-365. - 7.
Said A, Pearlman WA: An image multiresolution representation for lossless and lossy image compression.

*IEEE Trans. Image Process.*1996, 5(9):1303-1310. 10.1109/83.535842 - 8.
Zandi A, Allen JD, Schwartz EL, Boliek M: CREW: compression with reversible embedded wavelets, in

*Proc. of DCC*Snowbird, Utah, USA, 28-30 Mar 1995, 212-221. - 9.
Adams MD, Kossentini F: Reversible integer-to-integer wavelet transforms for image compression: performance evaluation and analysis.

*IEEE Trans. Image Process.*2000, 9(6):1010-1024. 10.1109/83.846244 - 10.
Reichel J, Menegaz G, Nadenau MJ, Kunt M: Integer wavelet transform for embedded lossy to lossless image compression.

*IEEE Trans. Image Process.*2001, 10(3):383-392. 10.1109/83.908504 - 11.
Grangetto M, Magli E, Martina M, Olmo G: Optimization and implementation of the integer wavelet transform for image coding.

*IEEE Trans. Image Process.*2002, 11(6):596-604. 10.1109/TIP.2002.1014991 - 12.
Sersic D: Integer to integer mapping wavelet filter bank with adaptive number of zero moments, in

*Proc. of ICASSP*Istanbul, Turkey, 9 June 2000, 480-483. - 13.
Deever AT, Hemami SS: Lossless image compression with projection-based and adaptive reversible integer wavelet transforms.

*IEEE Trans. Image Process.*2003, 12(5):489-499. 10.1109/TIP.2003.812374 - 14.
Li H, Liu G, Zhang Z: Optimization of integer wavelet transforms based on difference correlation structures.

*IEEE Trans. Image Process.*2005, 14(11):1831-1847. - 15.
Abhayaratne GCK, Piella G, Pesquet-Popescu B, Heijmans H: Adaptive integer-to-integer wavelet transforms using update lifting.5207.

*Proc. of SPIE*2003, 813-824. - 16.
Abhayaratne GCK: Spatially adaptive integer lifting with no side information for lossless video coding, in

*Proc. Picture Coding Symposium (PCS)*St. Malo, France, April 2003, 495-500. - 17.
Gerek ÖN, Cetin AE: An edge-sensing predictor in wavelet lifting structures for lossless image coding.

*EURASIP J. Image Video Coding*2007., 2007: Article ID 19313 - 18.
Solé J, Salembier P: Generalized lifting prediction optimization applied to lossless image compression.

*IEEE Signal Process. Lett.*2007, 14(10):695-698. - 19.
Kitanovski V, Kseneman M, Gleich D, Taskovski D: Adaptive lifting integer wavelet transform for lossless image compression, in

*Proc. of IWSSIP*Bratislava, Slovakia, 25-28 June 2008. - 20.
Tay DBH: A class of lifting based integer wavelet transform, in

*IEEE Int. Conf. on Image Processing*vol. 1, Thessaloniki, Greece 07-10 Oct 2001, 602-605. - 21.
Guangjun Z, Lizhi C, Huowang C: A simple 9/7-tap wavelet filter based on lifting scheme.

*IEEE Int. Conf. Image Process.*2001, 2: 249-252. - 22.
Barua S, Kotteri KA, Bell AE, Carletta JE: Optimal quantized lifting coefficients for the 9/7 wavelet, in

*ICASSP’04*vol. 5, 17-21 May 2004, 193-196. - 23.
Strutz T: Wavelet filter design based on the lifting scheme and its application in lossless image compression.

*WSEAS Trans. Signal Process.*2009, 5(2):53-62. - 24.
Iwahashi M, Kiya H: Non separable 2D factorization of separable 2D DWT for lossless image coding, in

*Proc. of ICIP*Cairo, Egypt, 7-11 Nov 2009, 17-20. - 25.
Iwahashi M, Kiya H: A new lifting structure of non separable 2D DWT with compatibility to JPEG 2000, in

*Proc. of ICASSP*Dallas, Texas, USA, 14-19 March 2010, 1306-1309. - 26.
Strutz T: Design of three-channel filter banks for lossless image compression, in

*Proc. of ICIP*Cairo, Egypt, 7-11 Nov 2009, 2841-2844. - 27.
Le Gall D, Tabatabai A: Sub-band coding of digital images using symmetric short kernel filters and arithmetic coding techniques, in

*Proc. of ICASSP*New York, NY, USA, 11-14 Apr 1988, 761-764. - 28.
Deslauriers G, Dubuc S: Symmetric iterative interpolation process.

*Constr. Approx.*1989, 5: 49-68. 10.1007/BF01889598 - 29.
Strang G, Nguyen T:

*Wavelets and Filter Banks*. Wellesley-Cambridge Press, Wellesley; 1996. - 30.
Cheng L, Liang DL, Zhang ZH: Popular biorthogonal wavelet filters

*via*a lifting scheme and its application in image compression.*IEE Proc., Vis. Image Signal Process.*2003, 150(4):227-232. 10.1049/ip-vis:20030557 - 31.
Antonini M, Barlaud M, Mathieu P, Daubechies I: Image coding using wavelet transform.

*IEEE Trans. Image Process.*1992, 1(2):205-220. 10.1109/83.136597 - 32.
Daubechies I, Sweldens W: Factoring wavelet transform into lifting steps.

*J. Fourier Anal. Appl.*1998, 4(3):247-269. 10.1007/BF02476026 - 33.
www1.hft-leipzig.de/strutz/Papers/Testimages/Bath-AC-UK/bath.html, Dezember 2010 (copied from the former web page www.bath.ac.uk/elec-eng/research/sipg/resource/images.htm)

- 34.
ITU-T Recommendation T.24: Standardized digitized image set, Version 3, 1998

- 35.
http://r0k.us/graphics/kodak, Dec. 2009

## Acknowledgements

The authors would like to thank the unknown reviewers who gave valuable comments on an earlier version of this manuscript.

## Author information

### Affiliations

### Corresponding author

## Additional information

### Competing interests

The authors declare that they have no competing interests.

## Authors’ original submitted files for images

Below are the links to the authors’ original submitted files for images.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

## About this article

### Cite this article

Strutz, T., Rennert, I. Two-dimensional integer wavelet transform with reduced influence of rounding operations.
*EURASIP J. Adv. Signal Process.* **2012, **75 (2012). https://doi.org/10.1186/1687-6180-2012-75

Received:

Accepted:

Published:

### Keywords

- integer wavelet transform
- filter bank
- 2D lifting
- image compression
- rounding