Quantization table adjustment
First Claim
Patent Images
1. A method for compressing image data, comprising:
- receiving the image data, transforming a block of the image data using a discrete cosine transform to obtain a matrix of coefficients, wherein each coefficient corresponds to a frequency in a range of frequencies having low frequencies and high frequencies;
defining at least one quantization matrix, wherein the quantization matrix has a plurality of quantization values, wherein each quantization value corresponds to a coefficient in the matrix of coefficients, and wherein each quantization value corresponds to a frequency in the range of frequencies having low frequencies and high frequencies, wherein the quantization values are defined to obtain a desired amount of data from processing the matrix of coefficients, wherein the quantization values in different quantization matrices are such that for increased compression, a quantization value corresponding to at least one higher frequency is changed whereas quantization values corresponding to at least one lower frequency is unchanged;
quantizing the coefficients for the block of the image data using the defined quantization matrix; and
encoding the quantized coefficients to produce compressed image data.
5 Assignments
0 Petitions
Accused Products
Abstract
The method for adjusting quality during image capture includes computing a discrete cosine transform of a digital image to create DCT coefficients. A quantization table is generated that specifies frequency bands to be filtered and the DCT coefficients are digitized using the quantization table. It is preferred that the DCT coefficients be ordered in a zig-zag sequence to facilitate run-length encoding.
-
Citations
24 Claims
-
1. A method for compressing image data, comprising:
-
receiving the image data, transforming a block of the image data using a discrete cosine transform to obtain a matrix of coefficients, wherein each coefficient corresponds to a frequency in a range of frequencies having low frequencies and high frequencies;
defining at least one quantization matrix, wherein the quantization matrix has a plurality of quantization values, wherein each quantization value corresponds to a coefficient in the matrix of coefficients, and wherein each quantization value corresponds to a frequency in the range of frequencies having low frequencies and high frequencies, wherein the quantization values are defined to obtain a desired amount of data from processing the matrix of coefficients, wherein the quantization values in different quantization matrices are such that for increased compression, a quantization value corresponding to at least one higher frequency is changed whereas quantization values corresponding to at least one lower frequency is unchanged;
quantizing the coefficients for the block of the image data using the defined quantization matrix; and
encoding the quantized coefficients to produce compressed image data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
comparing an amount of data obtained from the encoding to a target amount of data; and
adjusting the cutoff frequency to increase compression if the amount of data is greater than the target amount.
-
-
4. The method of claim 3, wherein the quantization matrix is defined such that quantization values below but near the cut-off frequency are changed to mute the corresponding frequency components.
-
5. The method of claim 2, wherein the quantization matrix is defined such that quantization values below but near the cut-off frequency are changed to mute the corresponding frequency components.
-
6. The method of claim 1, further comprising:
-
comparing an amount of data obtained from the encoding to a target amount of data; and
adjusting the quantization matrix to increase compression by changing a quantization value corresponding to at least one higher frequency whereas quantization values corresponding to lower frequencies are unchanged.
-
-
7. The method of claim 1, wherein quantization values are larger for high frequencies than for low frequencies.
-
8. The method of claim 1, wherein quantization values increase from low frequencies to high frequencies.
-
9. The method of claim 1, wherein quantization values increase from low frequencies to a cutoff frequency, and wherein quantization values corresponding to frequencies above the cutoff frequency are a maximum value.
-
10. The method of claim 1, further comprising storing the compressed image data in a data file.
-
11. The method of claim 1, further comprising decompressing the compressed image data.
-
12. The method of claim 11, wherein decompressing comprises:
-
decoding the compressed image data to produce a set of coefficients; and
performing an inverse transform on the set of coefficients to generate image data.
-
-
13. An apparatus for compressing image data, comprising:
-
means for transforming a block of the image data using a discrete cosine transform to obtain a matrix of coefficients, wherein each coefficient corresponds to a frequency in a range of frequencies having low frequencies and high frequencies;
means for specifying at least one quantization matrix, wherein the quantization matrix has a plurality of quantization values, wherein each quantization value corresponds to a coefficient in the matrix of coefficients, and wherein each quantization value corresponds to a frequency in the range of frequencies having low frequencies and high frequencies, wherein the quantization values are defined to obtain a desired amount of data from processing the matrix of coefficients, wherein the quantization values in different quantization matrices are such that for increased compression, a quantization value corresponding to at least one higher frequency is changed whereas quantization values corresponding to at least one lower frequency is unchanged;
a quantizer for quantizing the coefficients for the block of the image data using the defined quantization matrix; and
an encoder for encoding the quantized coefficients to produce compressed image data. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
means for comparing an amount of data obtained from the encoding to a target amount of data; and
means for adjusting the cutoff frequency to increase compression if the amount of data is greater than the target amount.
-
-
16. The apparatus of claim 15, wherein the quantization matrix is defined such that quantization values below but near the cut-off frequency are changed to mute the corresponding frequency components.
-
17. The apparatus of claim 14, wherein the quantization matrix is defined such that quantization values below but near the cut-off frequency are changed to mute the corresponding frequency components.
-
18. The apparatus of claim 13, further comprising:
-
means for comparing an amount of data obtained from the encoding to a target amount of data; and
means for adjusting the quantization matrix to increase compression by changing a quantization value corresponding to at least one higher frequency whereas quantization values corresponding to lower frequencies are unchanged.
-
-
19. The apparatus of claim 13, wherein quantization values are larger for high frequencies than for low frequencies.
-
20. The apparatus of claim 13, wherein quantization values increase from low frequencies to high frequencies.
-
21. The apparatus of claim 13, wherein quantization values increase from low frequencies to a cutoff frequency, and wherein quantization values corresponding to frequencies above the cutoff frequency are a maximum value.
-
22. The apparatus of claim 13, further comprising means for storing the compressed image data in a data file.
-
23. The apparatus of claim 13, further comprising means for decompressing the compressed image data.
-
24. The apparatus of claim 23, wherein decompressing comprises:
-
means for decoding the compressed image data to produce a set of coefficients; and
means for performing an inverse transform on the set of coefficients to generate image data.
-
Specification