Variable lossy compression
First Claim
1. A method for generating a compressed image from a source image, comprising:
- receiving a source image;
receiving an image quality mask corresponding to the source image, wherein the image quality mask contains regional image quality levels specifying the degree to which information in corresponding regions of the source image can be lost when generating the compressed image; and
generating the compressed image by compressing the source image using a dictionary based lossy compression algorithm that regionally varies the amount of information loss from the source image based on the regional image quality levels contained in the image quality mask.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and apparatus for generating a compressed image from a source image by compressing the source image using a dictionary based lossy compression algorithm that regionally varies the amount of information loss from the source image based on regional image quality levels contained in an image quality mask. The image quality mask can be an alpha channel of the source image, can be stored as a raster map, or can be stored as a resolution independent function. The regional image quality levels in the image quality mask can be determined by a user, automatically generated from the image, or automatically generated from user input. The dictionary based lossy compression algorithm can be a lossy Lempel-Ziv-Welch (LZW) compression algorithm.
-
Citations
24 Claims
-
1. A method for generating a compressed image from a source image, comprising:
-
receiving a source image;
receiving an image quality mask corresponding to the source image, wherein the image quality mask contains regional image quality levels specifying the degree to which information in corresponding regions of the source image can be lost when generating the compressed image; and
generating the compressed image by compressing the source image using a dictionary based lossy compression algorithm that regionally varies the amount of information loss from the source image based on the regional image quality levels contained in the image quality mask. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for generating a compressed image from a source image, the method comprising:
-
receiving a source image having an associated image quality mask;
creating a compressed image having a compression table comprising a palletized table of colors and a plurality of identification strings respectively corresponding to each of the colors in the palletized table of colors;
initializing a prefix string with the color value of a first pixel in the source image; and
subsequently processing each pixel in the source image bycreating a search string by concatenating the pixel'"'"'s color value to the end of the prefix string;
determining an image quality value from a corresponding pixel in the image quality mask associated with the source image;
searching the compression table for a color string that matches the search string;
writing the search string to the prefix string to overwrite the prefix string when a matching color string is found; and
generating an identification string to associate with the search string;
writing the identification string and the search string to the compression table;
writing the identification string associated with the prefix string to the compressed image file; and
setting the prefix string to the pixel'"'"'s color value whenever a matching color string cannot be found. - View Dependent Claims (10, 11, 12)
-
-
13. A computer program product, stored on a machine readable medium, comprising instructions operable to cause a programmable processor to:
-
receive a source image;
receive an image quality mask corresponding to the source image, wherein the image quality mask contains regional image quality levels specifying the degree to which information in corresponding regions of the source image can be lost when generating the compressed image; and
generate the compressed image by compressing the source image using a dictionary based lossy compression algorithm that regionally varies the amount of information loss from the source image based on the regional image quality levels contained in the image quality mask. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer program product, stored on a machine readable medium, comprising instructions operable to cause a programmable processor to:
-
receive a source image having an associated image quality mask;
create a compressed image having a compression table comprising a palletized table of colors and a plurality of identification strings respectively corresponding to each of the colors in the palletized table of colors;
initialize a prefix string with the color value of a first pixel in the source image; and
to subsequently process each pixel in the source image bycreating a search string by concatenating the pixel'"'"'s color value to the end of the prefix string;
determining an image quality value from a corresponding pixel in the image quality mask associated with the source image;
searching the compression table for a color string that matches the search string;
writing the search string to the prefix string to overwrite the prefix string when a matching color string is found; and
generating an identification string to associate with the search string;
writing the identification string and the search string to the compression table;
writing the identification string associated with the prefix string to the compressed image file; and
setting the prefix string to the pixel'"'"'s color value whenever a matching color string cannot be found. - View Dependent Claims (22, 23, 24)
-
Specification