← Back to Patent Explorer
US5751860A Expired / Lapsed US ⏱️ 0.0 years remaining

Method for compressing and decompressing digital image data

Assignee: BenQ Corp
•
Filing: 1996-09-03
•
Granted: 1998-05-12
•
Expires: 2016-09-03
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A compressing method consisting of generating a predicted value for the pixel of the digitized image to be compressed based on the values of at least two neighboring pixels is provided. After calculating the difference between the predicted value and the current pixel value, a prediction error is defined by a one-on-one mapping on the difference obtained. According to an advantageous feature of the mapping relationship, the required number of bits for representing the prediction error is less than that required for the difference per se. Afterwards, a parameter K is generated which is in proportion to the difference between the neighboring pixels used in prediction. According to the respective values of the parameter K, the next step is to encode each prediction error by assigning a variable-length Rice code to the prediction error of each pixel. If the Rice code formatted for a prediction error is longer than a predetermined length, the Rice code is disregarded and replaced by predetermined length of leading "1" bits followed by the value of current pixel.

Inventors

  • 👤 Yang-Chun Su
  • 👤 Yu-Wen Huang

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-04 22:31
CPC Classifications
H; H04; H04N; H04N19/00; H04N19/50; H04N19/593

Claims Analysis

Total Claims: 10
Claim 1
Independent Claim 170 words
A lossless compression method for a digitized image, the digitized image including a current pixel, which has a value X, and two neighboring pixels adjacent to the current pixel, the two neighboring pixels having values A and B respectively, and Δ being the difference between A and B, comprising the steps: using a first algorithm to generate a predicted value P for the current pixel based on the values A and B; calculating a prediction error e' based on a one-to-one mapping of the difference e between the predicted value P and the current value X; generating a parameter K which is a predetermined non-constant function of the difference Δ; encoding the prediction error e' of the current pixel by assigning a Rice code thereto based on the parameter K, to thereby obtain a Rice encoded code; and replacing the Rice encoded code by a predetermined code pattern followed by the current value X if the Rice encoded code obtained for the current pixel is longer than a predetermined length.
Claim 2
Dependent Claim 170 words
A lossless compression method for a digitized image, the digitized image including a current pixel, which has a value X, and two neighboring pixels adjacent to the current pixel, the two neighboring pixels having values A and B respectively, and Δ being the difference between A and B, comprising the steps: using a first algorithm to generate a predicted value P for the current pixel based on the values A and B; calculating a prediction error e' based on a one-to-one mapping of the difference e between the predicted value P and the current value X; generating a parameter K which is a predetermined non-constant function of the difference Δ; encoding the prediction error e' of the current pixel by assigning a Rice code thereto based on the parameter K, to thereby obtain a Rice encoded code; and replacing the Rice encoded code by a predetermined code pattern followed by the current value X if the Rice encoded code obtained for the current pixel is longer than a predetermined length.
Claim 3
Dependent Claim 17 words
Method according to claim 1, wherein the predetermined code pattern is a set of consecutive "1" bits.
Claim 4
Dependent Claim 83 words
Method according to claim 1, wherein the difference e is a signed quantity and may have a positive value or a negative value; the prediction error e' is an unsigned quantity and does not include any negative values; a small absolute value of the difference e corresponds to a small value of the prediction error e'; and the number of bits required to represent the unsigned prediction error e' is less than the number of bits required to represent the signed difference e.
Claim 5
Dependent Claim 23 words
The method of claim 3, wherein the predetermined function for generating K consists essentially of: k=1 Δ≦2 k=2 2<Δ≦4 k=3 4<Δ≦8 k=4 8<Δ.
Claim 6
Dependent Claim 47 words
Method according to claim 1, further comprising a subsequent decompression procedure comprising the steps of: determining whether the leading bits of the encoded code consists of the predetermined code pattern; and if the leading bits of the encoded code consist of the predetermined code pattern, outputting X.
Claim 7
Dependent Claim 165 words
Method according to claim 1, further comprising a subsequent decompression procedure comprising the steps of: determining whether the leading bits of the encoded code consist of the predetermined code pattern; and if the leading bits of the encoded code does not consist of the predetermined code pattern, generating a decoded predicted value P for the current pixel based on previously decoded values A and B for the neighboring pixels, using said predetermined function to generate a decoded parameter K from the decoded difference Δ of the decoded values A and B; using the decoded value of the parameter K and the inverse of said Rice code to obtain a decoded prediction error e' from the encoded code; using a second mappling function which is the inverse of said one-to-one mapping function to obtain a decoded difference e from the decoded prediction error e'; and adding the decoded predicted value P to the decoded difference e to obtain the decoded value X of the current pixel.
Claim 8
Dependent Claim 23 words
The method of claim 1, wherein the predetermined function for generating K consists essentially of: k=1 Δ≦2 k=2 2<Δ≦4 k=3 4<Δ≦8 k=4 8<Δ.
Claim 9
Dependent Claim 468 words
A lossless compression method for a digitized image, the digitized image including a current pixel, which has a value X, and two neighboring pixels adjacent to the current pixel, the two neighboring pixels having values A and B respectively, and Δ being the difference between A and B, comprising; an encoding process including the steps: using a first algorithm to generate a predicted value P for the current pixel based on the values A and B; calculating a prediction error e' based on a one-to-one mapping of the difference e between the predicted value P and the current value X; generating a parameter K which is a predetermined non-constant function of the difference Δ; encoding the prediction error e' of the current pixel by assigning a Rice code thereto based on the parameter K, to thereby obtain a Rice encoded code; and if the Rice encoded code obtained for the current pixel is longer than a predetermined length, replacing the Rice encoded code by a predetermined code pattern followed by the current value X a subsequent decoding process comprising the steps: determining whether the leading bits of the encoded code consists of the predetermined code pattern: if the leading bits of the encoded code consist of the predetermined code pattern, outputting X, determining whether the leading bits of the encoded code consist of the predetermined code pattern: if the leading bits of the encoded code does not consist of the predetermined code pattern, generating a decoded predicted value P for the current pixel based on previously decoded values A and B for the neighboring pixels, using said predetermined function to generate a decoded parameter K from the decoded difference Δ of the decoded values A and B; using the decoded value of the parameter K and the inverse of said Rice code to obtain a decoded prediction error e' from the encoded code and; using a second mapping function which is the inverse of said one-to-one mapping function to obtain a decoded difference e from the decoded prediction error e'; and adding the decoded predicted value P to the decoded difference e to obtain the decoded value X of the current pixel, wherein the predetermined code pattern is a set of consecutive "1" bits, the difference e is a signed quantity and may have a positive value or a negative value; the prediction error e' is an unsigned quantity and does not include any negative values; a small absolute value of the difference e corresponds to a small value of the prediction error e'; the number of bits required to represent the unsigned prediction error e' is less than the number of bits required to represent the signed difference e; and the predetermined function for generating K consists essentially of: k=1 Δ≦2 k=2 2<Δ≦4 k=3 4<Δ≦8 k=4 8<Δ.
Claim 10
Dependent Claim 468 words
A lossless compression method for a digitized image, the digitized image including a current pixel, which has a value X, and two neighboring pixels adjacent to the current pixel, the two neighboring pixels having values A and B respectively, and Δ being the difference between A and B, comprising; an encoding process including the steps: using a first algorithm to generate a predicted value P for the current pixel based on the values A and B; calculating a prediction error e' based on a one-to-one mapping of the difference e between the predicted value P and the current value X; generating a parameter K which is a predetermined non-constant function of the difference Δ; encoding the prediction error e' of the current pixel by assigning a Rice code thereto based on the parameter K, to thereby obtain a Rice encoded code; and if the Rice encoded code obtained for the current pixel is longer than a predetermined length, replacing the Rice encoded code by a predetermined code pattern followed by the current value X a subsequent decoding process comprising the steps: determining whether the leading bits of the encoded code consists of the predetermined code pattern: if the leading bits of the encoded code consist of the predetermined code pattern, outputting X, determining whether the leading bits of the encoded code consist of the predetermined code pattern: if the leading bits of the encoded code does not consist of the predetermined code pattern, generating a decoded predicted value P for the current pixel based on previously decoded values A and B for the neighboring pixels, using said predetermined function to generate a decoded parameter K from the decoded difference Δ of the decoded values A and B; using the decoded value of the parameter K and the inverse of said Rice code to obtain a decoded prediction error e' from the encoded code and; using a second mapping function which is the inverse of said one-to-one mapping function to obtain a decoded difference e from the decoded prediction error e'; and adding the decoded predicted value P to the decoded difference e to obtain the decoded value X of the current pixel, wherein the predetermined code pattern is a set of consecutive "1" bits, the difference e is a signed quantity and may have a positive value or a negative value; the prediction error e' is an unsigned quantity and does not include any negative values; a small absolute value of the difference e corresponds to a small value of the prediction error e'; the number of bits required to represent the unsigned prediction error e' is less than the number of bits required to represent the signed difference e; and the predetermined function for generating K consists essentially of: k=1 Δ≦2 k=2 2<Δ≦4 k=3 4<Δ≦8 k=4 8<Δ.

References Cited (Backward Citations)

US4916544A Cited
US4739308A Cited
US4922340A Cited
US5448642A Cited
US5339077A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 2001-05-11 2001-11-10 2002-05-12 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2005-05-11 2005-11-10 2006-05-12 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2009-05-11 2009-11-10 2010-05-12 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag