1. Field of Invention
The present invention relates to a digital image processing method and apparatus. More particularly, the present invention relates to a digital image processing method and apparatus using discrete wavelet transform (DWT) algorithm.
2. Description of Related Art
The Discrete Wavelet Transform (DWT) provides excellent characteristics in time-frequency domain analysis and has been extensively used in many applications. Those applications include image compression, biomedical image processing, and signal analysis etc. Even the latest static image encoding/decoding standard, JPEG 2000, chose a kind of DWT, called lifting-based DWT as its core computation algorithm. The DWT module is one of the sophisticated and complex modules used in designing JPEG 2000 hardware architecture.
With reference to
The detailed algorithm of the forward 9/7 lifting scheme discrete wavelet transform is,
and the coefficients,
wherein, Xext represents source image data, Hout represents high pass output, Lout represents low pass output, and the coefficients Y, Z, H and L are temporary values during the computation and must be provided for the next computation step. Y(n) represents the Y number of n-th wavelets in the algorithm.
Refer to
Refer to
Refer to
Furthermore, a number of temporal coefficient buffers significantly dominate the size of the circuit area in designing two-dimensional (2D) DWT circuit. The image data scanning method adopted by the circuit significantly dominates the power consumption performance.
Refer to
The 2-D DWT circuit comprises an external memory 700 and a 2-D DWT module 701. The size of the external memory 700 must be N/2×N/2 words. However, the 2-D DWT module 701 needs a temporal coefficient buffer 702 to store temporal reusable data and with a size of K×N words, wherein K represents a number of necessary temporal buffers adopted by the 2-D DWT module 701. The number of the temporal buffers depends on the DWT circuit adopted by the system.
Refer to
Therefore, the conventional 2-D DWT scheme must use the external memory 700 to transpose data. The use of the external memory 700 increases the hardware expense and the size of the circuit area.
Therefore, there is a need to provide an improved DWT architecture to mitigate or obviate the aforementioned problems.
An object of the present invention is to provide a method of processing digital image data with a discrete wavelet transform algorithm, such that the method reduces the critical path.
Another object of the present invention is to provide an apparatus of processing digital image data with discrete wavelet transform algorithm, and the apparatus will reduce hardware expense.
An apparatus in accordance with the present invention includes a first multiplier, a second multiplier and multiple adders. The first multiplier uses T(2n) time terms along a time axis to process the hardware timing for the processing of the image data to generate a first product and T(2n+1) time terms to generate a second product. The second multiplier uses T(2n) time terms to process the hardware timing for the processing of the image data to generate a third product and T(2n+1) time terms to generate a fourth product. The adders selectively process the products with addition operations. The n is a zero or an integer, the time terms of T(2n+1) are the odd time points along the time axis, and the time terms of T(2n) are the even time points along the time axis.
Therefore, exchanging the first product and the second product of the first multiplier renders common products for sequel additions of the adders. Exchanging the third product and the fourth product of the second multiplier renders common products for sequel additions of the adders. The method in accordance with the present invention comprises several steps.
Step 1 uses the time terms T(2n+1) of a first and a second adders, and the time terms of T(2n) of the first multiplier to process the hardware timing for the processing of the image data.
Step 2 uses the T(2n+1) time terms of a third adders, and the T(2n) time terms of the second multiplier and a fourth adder to be to process the hardware timing for the processing of the image data.
Step 3 uses the T(2n) time terms of the first and the second adders, and the T(2n+1) time terms of the first multiplier to process the hardware timing for the processing of the image data.
Step 4 uses the T(2n) time terms of the third adder, and the T(2n+1) time terms of the second multiplier and the fourth adder to process the hardware timing for the processing of the image data.
Step 5 multiplies computation result in step 3 to obtain detailed coefficients.
Step 6 multiplies computation result in step 4 to obtain smooth coefficients. Preferably, the method uses a non-overlapped stripe-based scanning method to accomplish 2-D DWT.
Consequently, the hardware processing timing of the multipliers and the adders are staggered, which results in the need for two multipliers and four adders, with using a control circuit to change the product to accomplish one-dimensional discrete wavelet transform for the image. The critical path of the apparatus has been improved.
Besides, when the present invention is applied to two-dimensional discrete wavelet transform circuits, it eliminates a requirement of using a transposing buffer, which provides a smaller circuit area in size and simplified system configuration.
These and other features, aspects, and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings where:
a is a schematic circuit diagram of a one-level two-dimensional DWT in accordance with prior art;
b is a schematic system diagram of the one-level two-dimensional DWT in
a is an analytic diagram of the DWT method in accordance with the present invention;
b is an analytic diagram of the DWT method in accordance with the present invention;
c is an analytic diagram of the DWT method in accordance with the present invention;
d is an analytic diagram of the DWT method in accordance with the present invention;
a is a schematic system diagram of a low area 2-D DWT in accordance with the present invention;
b is a circuit diagram of the low area 2-D DWT in
Reference will now be made in detail to the present preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Refer to
In using the lifting scheme to complete 9/7 DWT, the equation (1) Y(2n+1)←Xext(2n+1)+α×[Xext(2n)+Xext(2n+2)] as described in the conventional lifting scheme can be rewritten as,
Y(2n+1)←α×Xext(2n)+Xext(2n+1)+α×Xext(2n+2) (7)
The method in accordance with the present invention is to use the common product of sequel terms in the equation (7) to eliminate the circuit being idle. The circuit needs to process data computation including addition and multiplication at each time term, where each time term represents a time point along the time axis so that the flow processing performance is efficiently improved. The DWT circuit computes simultaneously the data at both T(2n) and T(2n+1) time terms along the time axis. If two records of Xext(2n) and Xext(2n+1) can be simultaneously processed, the data computation time is saved. Meanwhile, the computation flow of the DWT algorithm will not increase multiplication times.
Taking the algorithm for example, if n=0 and n=1 are respectively loaded into the equation (7), then the equation (8) and (9) can be obtained as,
Y(1)←α×Xext(0)+Xext(1)+α×Xext(2) (8)
Y(3)←α×Xext(2)+Xext(3)+α×Xext(4) (9)
wherein, the product of α×Xext(2), i.e. the product of α×Xext(2n) can be the common product for the sequel equations (8) and (9).
Refer to
Refer to
Refer to
Therefore, the multiplier can be commonly used for different coefficients in the first stage and third stage by exchanging its coefficients with setting the even time points for the coefficient α and the odd time points for the coefficient γ.
Refer to
Therefore, the first multiplier can be commonly used for first stage and third stage by exchanging its coefficients with setting the even time points for the coefficient α and the odd time points for the coefficient γ. Likewise, the second multiplier can be commonly used for second stage and fourth stage by exchanging its coefficients with setting the even time points for the coefficient β and the odd time points for the coefficient δ. Thus, the computation results of the aforesaid steps are multiplied by corresponding coefficients (i.e. K or 1/K) to obtain respectively detailed coefficients and smooth coefficients.
Consequently, this embodiment only needs two multipliers and four adders to accomplish the 1-D DWT algorithm with a control circuit to exchange the product of the multipliers. The latency of the critical path becomes only the computation time of one multiplier. Refer to
With reference to
Refer to
There is no different if row processing or column processing is being taken in advance for the image for dealing with the 2-D DWT. However, a transposing buffer is required to temporally store the transformed data of the image when one direction of the image has been completed by the 1-D DWT, and the transformed data are transformed to another direction of the image. The transposing buffer for the transformed data needs 1.5N words in size, where N is the length of the image. Using the non-overlapped stripe-based scanning method can eliminate the required transposing buffer used in the 2-D DWT circuit.
With further reference to
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
6148111 | Creusere | Nov 2000 | A |
6922491 | Yip | Jul 2005 | B2 |
6975753 | Matsuura et al. | Dec 2005 | B2 |
7236997 | Nakayama | Jun 2007 | B2 |
7277489 | Andrew | Oct 2007 | B1 |
7333663 | Schumacher | Feb 2008 | B1 |
7346640 | Katayama | Mar 2008 | B2 |
7480416 | Liao et al. | Jan 2009 | B2 |
7574064 | Hou | Aug 2009 | B2 |
20020168113 | Nakayama | Nov 2002 | A1 |
20030108248 | Huang et al. | Jun 2003 | A1 |
20040223655 | Liao et al. | Nov 2004 | A1 |
20070009171 | Nakashizuka et al. | Jan 2007 | A1 |
Number | Date | Country | |
---|---|---|---|
20080056372 A1 | Mar 2008 | US |