The present invention generally relates to image processing apparatuses and methods, and more particularly to an image processing apparatus and method performing coding based on image-related data divided into bit planes.
There are conventionally known image processing apparatuses that perform coding based on quantized image data divided into bit planes. Such image processing apparatuses include those in compliance with JPEG 2000, for instance.
Next, in a coefficient modeling part 4, the wavelet coefficients are divided into blocks of a predetermined size in each sub-band so that the scalar-quantized data is decomposed, block by block, into bit planes in order from the MSBs (most significant bits) to the LSBs (least significant bits).
An MQ-coder part 5 performs binary arithmetic coding on the image data subjected to the coefficient coding in the coefficient modeling part 4, and outputs the resultant coded data to a code formation part 6.
In the image processing apparatus 50, the coefficient modeling part 4 and the MQ-coder part 5 form a coding part.
The code formation part 6 adds data such as information on the coding to a predetermined part of the coded data obtained in the MQ-coder part 5, thereby forming and outputting a series of coded data called a code stream.
According to the JPEG 2000-compliant coding, in order to achieve a higher compression rate, the data of low-order bit planes of the wavelet coefficients subjected to the coefficient coding of the coefficient modeling part 4 is discarded. According to this method, however, the data values can be changed only by 2n, so that the compression rate can be adjusted only roughly.
Accordingly, it is a general object of the present invention to provide an image processing apparatus and method in which the above-described disadvantage is eliminated.
A more specific object of the present invention is to provide an image processing apparatus and method that performs coding on image data based on the result of decomposing the image data into bit planes block by block and can generate coded data at a compression rate more finely adjusted with a simple configuration.
The above objects of the present invention are achieved by an image processing apparatus including: a coding part that performs coding on image data based on a result of decomposing the image data into bit planes block by block; and a quantization part that reduces values of image data of a predetermined block to be compressed at an increased rate, the quantization part being provided at an earlier stage than the coding part.
According to the above-described image processing apparatus, of the values of image data before being subjected to coding, the values of the data of a predetermined block to be compressed at an increased rate are reduced, so that finer adjustment can be performed on the compression rate compared with the case of discarding low-order bit data of the data of the predetermined block.
The above objects of the present invention are also achieved by an image processing method including the steps of
According to the above described image processing method, of the values of image data before being subjected to coding, the values of the data of a predetermined block to be compressed at an increased rate are reduced, so that finer adjustment can be performed on the compression rate compared with the case of discarding low-order bit data of the data of the predetermined block.
Other objects, features and advantages of the present invention will become more apparent from the following detailed description when read in conjunction with the accompanying drawings, in which:
(Entire Configuration)
A description will now be given, with reference to the accompanying drawings, of an embodiment of the present invention.
Initially, in the color conversion part of the image processing apparatus 100, image data is converted to three signals of Y (luminance), Cr (color difference), and Cb (color difference). Then, in a DWT part 7, the signals are separately subjected to wavelet transform of level 3 using a reversible transform filter called an R 5/3 filter in JPEG 2000.
Referring back to
As will be later described in detail, the quantization part 8 reduces the value of each wavelet coefficient by a proportion that becomes smaller for a block of a lower-frequency component and larger for a block of a higher-frequency component. Particularly, the proportion (quantization step) is finer than 2n. By this processing, some wavelet coefficients become smaller in value by one or more digits, thereby increasing data values of “0” existing in the bit planes. As a result, the coefficient coding performed in the coefficient modeling part 4 at a later stage achieves a higher compression rate.
The reduction of the values of the wavelet coefficients of the high-frequency component blocks in the quantization part 8 takes advantage of the well-known characteristic that the reduction of the values of the wavelet coefficients of a high-frequency component block does not affect the quality of a reproduced image. Since the quantization part 8 is provided, the compression rate at the time of the coefficient coding performed in the coefficient modeling part 4 can be increased while the degradation of the quality of a reproduced image is prevented. Further, compared with the case of discarding the data of low-order bit planes, finer adjustment can be performed on the compression rate.
In the coefficient modeling part 4, the wavelet coefficients are divided into blocks each of a 16×16 pixel matrix in each sub-band, and the quantized data is decomposed, block by block, into bit planes in order from the MSBs to LSBs. The coefficient modeling part 4 codes, or performs coefficient coding on, each value of the image data decomposed into the bit planes through three separate coding paths. In the coefficient coding, a higher compression rate is achieved as the bit plane includes more data values of “0.” Further, the coefficient coding is not performed on a zero bit plane or a bit plane whose data values are all “0s,” but is performed after the initial appearance of a bit plane including a significant data value of “1.” That is, in the coefficient coding, the compression rate is simply increased as the number of zero bit planes is increased.
The MQ-coder part 5 performs binary arithmetic coding on the image data subjected to the coefficient coding, and outputs the resultant coded data to the code formation part 6.
In the image processing apparatus 100, the coefficient modeling part 4 and the MQ-coder part 5 form a coding part.
The code formation part 6 adds data such as information on the coding to a predetermined part of the coded data obtained in the MQ-coder part 5, thereby forming and outputting a series of coded data called a code stream.
(Configuration of the Quantization Part 8)
The count value of the counter 10 is input to a comparator 11 via one of a pair of the terminals thereof and to a comparator 12 via one of a pair of the terminals thereof. The other terminal of the comparator 11 is set to ref 1 corresponding to the number of wavelet coefficients, that is, the number of pixels, of the 3LL, 3LH, 3HL, and 3HH blocks (16 ×16×4=1024). Further, the other terminal of the comparator 12 is set to ref 2 corresponding to the number of wavelet coefficients, that is, the number of pixels, of the 2LL (3LL, 3LH, 3HL, and 3HH), 2LH, 2HL, and 2HH blocks (1024 +32×32×3 4096).
When the count value of the counter 10 reaches ref 1, the level of the output signal of the comparator 11 switches from LOW to HIGH. When the count value of the counter 10 reaches ref 2, the level of the output signal of the comparator 12 switches from LOW to HIGH. The output signals of the comparators 11 and 12 are input to a selector 13 as the low-order bit signal and the high-order bit signal, respectively, of a two-bit selection signal. When the input two-bit selection signal is “00,” the selector 13 outputs a multiplier of 1.0 to the multiplier 14. In the case of “01,” the selector 13 outputs a multiplier of 0.9 to the multiplier 14. In the case of “11,” the selector 13 outputs a multiplier of 0.6 to the multiplier 14.
According to the quantization part 8 of the above-described configuration, the wavelet coefficients of the low-frequency component blocks (3LL, 3LH, 3HL, and 3HH) are output directly to the coefficient modeling part 4, the wavelet coefficients of the blocks of the middle frequency range (2LH, 2HL, and 2HH) are output to the coefficient modeling part 4 after being multiplied by 0.9, and the wavelet coefficients of the high-frequency component blocks (1LH, 1HL, and 1HH) are output to the coefficient modeling part 4 after being multiplied by 0.6.
When it is taken into consideration that in the coefficient modeling part 4, the coefficient coding is not performed on a zero bit plane whose data values are all “0s” but is performed after the initial appearance of a bit plane including a significant data value of “1,” the wavelet coefficients of the high-frequency component blocks (1LH, 1HL, and 1HH) may be reduced in value by one or more digits by multiplying the wavelet coefficients by a value less than or equal to 0.5 so that an increased number of zero bit planes are formed in succession from the MSB plane toward a lower-order bit plane. Consequently, the coefficient coding can be performed on the high-frequency component blocks with more efficiency.
As described above, the image processing apparatus 100 of this embodiment, which employs the DWT part 7 using a reversible transform filter simple in configuration and reducible in size, reduces the values of the wavelet coefficients of high-frequency component blocks having little effect on the quality of a reproduced image in the quantization part 8. Consequently, the compression rate of coded data is increased, and finer adjustment can be performed on the compression rate than in the case of adjusting the compression rate by discarding the data of low-order bits of the wavelet coefficients.
The image processing apparatus 100 of this embodiment is applicable to apparatuses including a digital still camera, the recording part of a digital copier, a monitor camera, a digital video storage device, and a digital camera (for moving pictures).
The present invention is not limited to the specifically disclosed embodiment, but variations and modifications may be made without departing from the scope of the present invention.
The present application is based on Japanese priority application No. 2002-187543 filed on Jun. 27, 2002, the entire contents of which are hereby incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2002-187543 | Jun 2002 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP03/07034 | 6/3/2003 | WO | 00 | 5/17/2004 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2004/004313 | 1/8/2004 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6408026 | Tao | Jun 2002 | B1 |
6492916 | Schwartz et al. | Dec 2002 | B1 |
6512792 | Naito | Jan 2003 | B1 |
6944350 | Budge et al. | Sep 2005 | B2 |
7031494 | Ray et al. | Apr 2006 | B2 |
7035473 | Zeng et al. | Apr 2006 | B1 |
7155066 | Baharav et al. | Dec 2006 | B2 |
20010036231 | Easwar et al. | Nov 2001 | A1 |
Number | Date | Country |
---|---|---|
1158773 | Nov 2001 | EP |
08149308 | Jun 1996 | JP |
2001231009 | Aug 2001 | JP |
2001-298623 | Oct 2001 | JP |
2002057903 | Feb 2002 | JP |
2002135781 | May 2002 | JP |
2002-165098 | Jun 2002 | JP |
2002369202 | Dec 2002 | JP |
Number | Date | Country | |
---|---|---|---|
20040264783 A1 | Dec 2004 | US |