Method and system for compressing and decompressing binary representations of dithered images
3 claims: 3 independent, 0 dependent
- 1A method for processing a binary representation of a dithered image so that it may be lossily compressed without losing essential information, said method comprising the steps of:a) defining a plurality of equivalence classes for tiles of multi-pixel binary data contained in said dithered image, each of said equivalence classes representing visually equivalent tiles and further having defined and associated therewith a plurality of different but visually equivalent, representative tile rendering exemplars each representing the same gray level;b) identifying one equivalence class for each tile in said dithered image;c) encoding each of said identified equivalence classes into an alternating sequence of literal elements and copy elements, said literal elements containing equivalence class information for one or more consecutive tiles and said copy elements containing information for copying previously encoded equivalence class information.
- 2A method for decompressing a compressed binary representation of a dithered image, said dithered image organized into a plurality of tiles representing multiple pixels, said method comprising the steps of:a) decoding said compressed binary representation into a plurality of literal elements and copy elements;b) decoding each of said literal elements and copy elements into equivalence class identifiers, each equivalence class identifier corresponding to a tile of said dithered image, wherein tiles are of a predetermined organization of binary data and each equivalent class represents a plurality of different but visually equivalent tiles;c) selecting one tile rendering exemplar from a rendering dictionary for each equivalence class identifier, said rendering dictionary comprised of a plurality of different but visually equivalent, representative tile configurations for each equivalence class.
- 3A system for lossy compression and decompression of dithered images, said system comprising:input means for receiving a dithered image;a processor for performing operations for compressing said dithered image and decompressing a compressed representation of said dithered image;storage means for storing tile equivalence class definitions, each of said tile equivalence class definitions for categorizing a plurality of visually equivalent tile configurations into a single class, wherein tiles are of a predetermined organization of binary data;said storage means further for storing data including operations for compressing said dithered image, said operations including: operations for creating a binary representation of said dithered image;operations for extracting tiles from said binary representation and determining the equivalence classes for said tiles;operations for compressing a predetermined collection of tiles based on their determined equivalence class creating an alternating sequence of literal elements and copy elements;said storage means further for storing equivalence class exemplars, each of said equivalence class exemplars comprising a plurality of representative tile, configurations for said class, each of said representative tile configurations of a class representing the same gray level;said storage means further for storing data including operations for decompressing a compressed representation of a dithered image including: operations for decompressing sequences of literal and copy elements into instances of equivalence classes;operations for selecting one of said plurality of representative tile configurations for an instance of an equivalence class.
Independent claims3
59 paragraphs, as filed
0001The present invention is related to the field of data compression, and in particular to LOSSY compression of dithered images.
0002A major stumbling block to common use of digitized images is their size. An 8.5 x 11 image at 300 dots per inch (dpi) contains roughly 8,000,000 pixels. Even after binarization of a scanned image reduces the number of bits per pixel to 1, this is still 1 megabyte. Compression techniques are typically characterized as LOSSLESS or LOSSY. In LOSSLESS compression, no data is lost in the compression and subsequent decompression. In LOSSY compression, a certain amount of data is lost but it is acceptable since the essence of the compressed data is retained after decompression.
0003Common LOSSLESS compression techniques for binary images, like CCITT Group 3 or Group 4 or MMR can compress a binary image by factors of 10 to 20. This is still large when compared to the synthetic electronic form used to create a comparable image. Moreover, such compression techniques do not perform well for dithered images. This is because such compression techniques generally depend on the compressor's ability to predict the value of a pixel given neighboring pixels. Dithered images contain many very tiny dots which are intentionally arranged in a pseudo-random pattern. In these images, it is quite difficult to predict the value of a pixel, thus such compression techniques perform poorly.
0004Vector Quantization is another LOSSY based method for image compression that is well known. A vector quantizer (VQ) is a quantizer that maps k-dimensional input vectors into one of a finite set of k-dimensional reproduction vectors, or codewords. For image compression the input vector is a fixed grouping of pixels. A VQ can be divided into two parts: an encoder and a decoder. The encoder maps the input vector into a binary code representing the index of the selected reproduction vector, and the decoder maps the binary code into the selected reproduction vector. The reproduction vector becomes the decompressed value of the input vector.
0005Typically the decoder operates using a simple lookup table. To obtain acceptable results upon decompression, the number of reproduction vectors, and resulting lookup table, can be quite large. As the lookup table may be part of the compressed data stream, a large lookup table is undesirable.
0006Vector quantization is conceptually similar to a known method for performing compression on text images by grouping the symbols found into equivalence classes. In this method, symbols are extracted from the binary image and matched to templates for one or more equivalence classes. In order to get good compression, a classifier should operate with a small number of classes.
0007An example of image compression based on symbol matching is described in U.S. Patent No. 5,778,095 filed December 20, 1995, entitled "Classification Of Scanned Symbols Into Equivalence Classes". A further example of image compression based on symbol matching is described in U.S. Patent No. 5,303,313 entitled "Method and Apparatus For Compression Of Images", Mark et al., issued April 12, 1994 (the '313 patent). In the '313 patent an image is "precompressed" prior to symbol matching. The '313 patent describes using run-length encoding for such precompression. Symbols are extracted from the run-length representation. A voting scheme is used in conjunction with a plurality of similarity tests to improve symbol matching accuracy. The '313 patent further discloses a template composition scheme wherein the template may be modified based on symbol matches.
0008However, the aforementioned symbol based compression techniques do not compress particularly well with respect to pictorial images, in particular dithered images. This is because the pseudo random patterns typically causes a high number of equivalence classes to be created and because a very large number of symbols must be classified (often each dot would be interpreted as a separate symbol).
0009Vander Kam and Gray teach lossy compression of dithered binary images in "Lossy Compression of clustered-dot haltones", Proc. ICIP 1994, vol. 3, pp. 836-840, IEEE ISBN: 0-8186-6952-7. The binary image is divided into non-overlapping blocks. A run length representation of each block is obtained by visiting each pixel in the scan order corresponding to decreasing or increasing values in the dither threshold matrix. Information loss is allowed through imperfect representation of the run-lengths.
0010The invention is defined by the appended claims.
0011A system for compressing and decompressing binary representations of dithered images is disclosed. The present invention provides a LOSSY method for compressing dithered images. In LOSSY compression, some of the original image data is lost. It has been determined that for dithered images such as halftoned and error-diffused images an exact reproduction of the original image may not be necessary for acceptable results. The present invention incorporates the idea that maintaining the exact position of edges in a dithered image is not as important as maintaining the gray levels. This is because dithered images contain dots which are intentionally arranged in a pseudo random pattern. Through arrangement of pixels in such a pseudo random pattern, undesirable artifacts such as streaks or lines, are avoided.
0012The compression method of the present invention is generally comprised of the steps of defining a plurality of equivalence classes for tiles of multi-pixel binary encoded data contained in said binary encoded image, wherein tiles are of a first predetermined organization of binary data and each equivalence class has defined and associated therewith one or more rendering exemplars; classifying each tile in said binary encoded image into an equivalence class and encoding the equivalence classes by scanline into sequences of literal elements and copy elements, wherein literal elements direct decompression to find the equivalence class in the compressed data stream and copy elements direct decompression to find the equivalence class in the immediately preceding decompressed scanline. On decompression, the sequence of literal elements and copy elements are decoded into their respective equivalence classes a scanline at a time and then a corresponding rendering exemplar is selected for each equivalence class. <ul id="ul0001" list-style="none" compact="compact"><li>Figure 1 is an illustration of a dithered image which may be compressed using the LOSSY compression method of the currently preferred embodiment of the present invention;</li><li>Figure 2 is a flowchart describing the general steps for the data compression and decompression method of the currently preferred embodiment of the present invention;</li><li>Figure 3 is a table containing the values of the encoded equivalence classes as may be utilized in the currently preferred embodiment of the present invention;</li><li>Figure 4 is a flowchart illustrating the steps for compressing a scanline using the data compression method of the currently preferred embodiment of the present invention;</li><li>Figure 5 is a table used for identifying which equivalence class a tile belongs to in the currently preferred embodiment of the present invention;</li><li>Figure 6 is a block diagram showing the functional components of a compression system for practicing the compression method of Figure 4;</li><li>Figure 7 is a block diagram illustrating a compressed scanline data stream as may be utilized in the currently preferred embodiment of the present invention;</li><li>Figure 8 is a flowchart illustrating the steps for decompressing a compressed data stream using the decompression method of the currently preferred embodiment of the present invention;</li><li>Figure 9 is a block diagram showing the functional components of a decompression system for practicing the compression method of Figure 8;</li><li>Figure 10 is a table containing the values of the rendering exemplars of the currently preferred embodiment of the present invention; and,</li><li>Figure 11 is an illustration of a computer based system upon which the currently preferred embodiment of the present invention may be utilized.</li></ul>
0013A system for compressing and decompressing binary representations of continuous tone images is disclosed. The present invention may be used in various applications requiring or benefiting from data compression. Such applications may be found as part of an overall image processing system or as stand-alone applications. The currently preferred embodiment of the present invention is implemented as software running on a computer based system. The software is written in the C programming language. The present invention has been preferably implemented for compression of pictorial image data.
0014The following terms take on the accompanying meaning in this description:
0015<b>Imag</b>e refers to the markings on or appearance of a medium.
0016<b>Image data</b> refers to a representation of an image which may be used for recreating the image.
0017<b>Pictorial image</b> refers to non-textual and non line art markings on a medium.
0018<b>Tile or Tiles</b> refers to a logical organization of pixels as the primitive object which is classified.
0019An <b>equivalence class</b> is a set of tiles found in an image that can be substituted for one another without changing the appearance of an image in an objectionable way.
0020The <b>rendering exemplars</b> of the equivalence class are the set of pixel configurations for the equivalence class, one or more of which will be substituted for a member of the equivalence class when the image is decompressed or otherwise recreated. The collection of rendering exemplars for the equivalence classes are referred to as a <b>rendering dictionary.</b>
0021<b>Copy element</b> refers to a data element in a compressed data stream which instructs decompression to obtain equivalence class values from the preceding decoded scanline.
0022<b>Literal element</b> refers to a data element in a compressed data stream which instructs decompression to obtain equivalence class values in the element itself.
0023<b>Compressed Data Stream</b> refers to a compressed representation of an image comprised of copy and literal elements and possibly a corresponding rendering dictionary.
0024The present invention provides a LOSSY method for compressing dithered images. In LOSSY compression, a certain amount of the data is altered during compression and subsequent decompression. It has been determined that for both halftoned and error-diffused images an exact reproduction of a original image is not necessary for acceptable results. The present invention incorporates the idea that maintaining the exact position of edges in a dithered image is not as important as maintaining the gray levels. This is because dithered images contain dots which are intentionally arranged in a pseudo random pattern. Through arrangement in such a pseudo random pattern, undesirable artifacts such as streaks or lines, are avoided.
0025A dithered pictorial image which may be compressed using the method of present invention is illustrated in Figure 1. Referring to Figure 1, a document image 100 has both text and a pictorial areas. The pictorial area 101 is indicated and shown in a magnified view 102. As described above, the magnified view 102 shows the pictorial area 101 being comprised of dots in a random pattern.
0026It should be noted that the text area may also be compressed using the method of the present invention, but the resulting decompressed image may lose too much information (i.e. it will look bad). Various techniques are known to separate text and pictorial areas from a scanned image and applying different compression schemes on each. The method of the present invention may operate in such an implementation.
0027The present invention is accomplished by first defining a set of equivalence classes for a logical unit, i.e. a tile, of the image according to a set of predetermined rules. When compressing, each tile in the image is assigned to an equivalence class. Each tile in the equivalence class will have the same gray level, but may have different sequences of black and white pixels.
0028Further associated with each equivalence class is a set of rendering exemplars. Each rendering exemplar will produce the same gray level (i.e. they have the same number of black pixels). Upon decompression, the set of equivalence classes representing the image are decoded. For each equivalence class a rendering exemplar is selected from the corresponding set based on some pseudo random criteria (e.g. the scanline).
0029Another way to characterize the present invention is view it as vector quantization with a reduced size rendering dictionary and wherein the pictorial image is re-dithered on decompression.
0030Figure 2 is a flowchart which describes the general steps of the method of the present invention. First, a set of equivalence classes and corresponding rendering dictionary are created for a particular tile configuration, step 201. In order for a document image to be compressed, a document is scanned to create image data, step 202. The image data is typically a bit-mapped representation of the image. The pictorial portions of the image data are segmented from the text portions of the image data, step 203. It is the pictorial portion that is processed by the present invention. It should be noted that preferably any text contained in the pictorial portion also be segmented out. Further, the entire image may be comprised of pictorial data. The pictorial portion of the image data is then converted into a binary representation to create a representation where each pixel is represented by a single bit, step 204. A multi-level image may typically have a pixel represented by a multi-bit data operand. In order to convert it into a single bit value, a dithering operation is typically performed. This dithering operation provides a smooth and visually pleasing transition between different areas of the image.
0031Each of the tiles in the binary representation are then extracted and categorized into a particular equivalence class, step 205. An equivalence class identifier is provided for each tile. In the currently preferred embodiment, a tile is a 1 pixel high and 8 pixel wide block. It is assumed that the equivalence classes are predefined in a manner which corresponds to the tile size. The stream of equivalence class identifiers are then encoded, step 206. The steps 205 and 206 as described herein are in general terms. The preferred manner in which steps 205 and 206 are implemented is described in greater detail below. However, it should be noted that other known techniques may be utilized and which would not cause departure from the scope of the present invention. In any event, the encoding step 206 results in a compressed image data stream. The compressed data stream is comprised of a sequence of copy elements (for instructing a decompression process to find each equivalence class from the corresponding position(s) in the preceding decoded scanline) and literal elements (for instructing the decompression process to derive each equivalence class directly from the compressed data stream). Each copy and literal element will represent some number of tiles extracted from the image data. Depending on the implementation of the present invention, the compressed image data stream may or may not include the rendering dictionary.
0032It should be noted that in the currently preferred embodiment the encoding of the equivalence class representations is made immediately after the tiles of a scanline have been converted into equivalence classes. This may in fact minimize the amount of internal memory required for performing the compression (e.g. by limiting it to two scanline buffers). However, it would be. possible to perform the encoding after all the equivalence classes have been identified for the image, which may enable the use of alternative encoding schemes.
0033The compressed data stream may then be stored or transmitted, depending on the purpose for the compressed data stream, step 207.
0034When the compressed data stream is to be decompressed, the equivalence class identifier encoding is decoded in order to obtain the equivalence class representation, step 208. A binary representation of the image is created using the equivalence class representations, the rendering dictionary and some pseudo random input such as the number of the current scanline, step 209. Note that this binary representation would typically be different from the originally created binary representation in step 204 since for any particular tile, the specific rendering exemplar used may have a different pixel configuration of the original tile. This in effect causes the image to be re-dithered.
0035In the currently preferred embodiment, the image is broken into tiles 1 pixel tall and 8 pixels wide. Utilization of other tile sizes and dimensions are possible and would not depart from the scope of the present invention. The contents of each tile is then classified into one of a plurality of predefined equivalence classes. The equivalence classes are defined so that upon decompression, re-dithering may occur.
0036In order to achieve significant compression, it is desirable to minimize the number of equivalence classes. For a tile size of 1 X 8 binary values, there could theoretically be a maximum of 256 equivalence classes. An efficient method of defining a minimal number of equivalence classes is needed. In the currently preferred embodiment there are 47 predefined equivalence classes. This number was experimentally determined to provide acceptable visual results on decompression. However, utilization of a different number of equivalence classes is possible and would clearly be within the scope of the present invention.
0037The general rules used for creating the equivalence classes are as follows: <ul id="ul0002" list-style="none" compact="compact"><li>1. All members of an equivalence class should have the same number of black pixels.</li><li>2. An isolated black pixel can move anywhere inside a tile and still be in the same equivalence class.</li><li>3. An isolated block of 2 black pixels can move left or right two pixel positions within a tile while remaining in the same equivalence class.</li><li>4. An isolated block of 3 or 4 black pixels can move left or right by 1 pixel position within a tile while remaining in the same equivalence class.</li><li>5. A block of 2 or more black pixels attached to the left or right edge of a tile must stay attached to that edge.</li><li>6. If there are more black pixels than white pixels in a tile, all the above rules are applied to groups of isolated white pixels instead of applying them to groups of isolated black pixels. For example, this means that the equivalence classes that contain 5 black pixels can be derived from the equivalence classes that contain 3 black pixels by simply inverting all the pixels in each tile of each class.</li></ul>
0038The equivalence classes of the currently preferred embodiment are illustrated in the table of Figure 3. In reviewing the table of Figure 3 it should be noted that the tile configurations are illustrated in their hex rather than the binary values of the actual tile. The hex/binary equivalents are: 0=0000, 1=0001, 2=0010, 3=0010, 4=0100, 5=0101, 6=0110, 7=0111, 8=1000, 9=1001, A=1010, B=1011, C=1100, D=1101, E=1110 and F=1111. It should be noted that in Figure 3, the classes 0-7 may appear to be out of order. It has been determined that the ordering of classes in this manner may possibly lead to greater compression since there are many transitions amongst this group of classes and special coding may be utilized. However, utilization of different ordering of the classes would be within the scope of the present invention.
0039In the currently preferred embodiment, images are converted to their equivalence class representation and then encoded a scanline at a time. Figure 4 is a flowchart illustrating the steps for compressing a scanline in the currently preferred embodiment of the present invention and correspond to steps 205-206 of Figure 2. Referring to Figure 4, a tile in a first scanline is extracted from the image, step 401. This extraction is merely taking a grouping of 8 pixels, or as they are represented by binary data, a byte of data in the scanline. The equivalence class in which the tile belongs is identified, step 402. The currently preferred embodiment uses the table in Figure 5 to map a tile to its equivalence class. Referring to Figure 5, the column entry represents the 4 left most bits and the row entry represents the 4 right most bits of a tile. Equivalence class identification is then merely a table-look up.
0040The equivalence class information is then stored in a first scanline buffer, step 403. As will become apparent in the description below, the first scanline buffer will become a "reference" buffer for encoding the second scanline. The steps 401-403 are repeated until all the tiles in the first scanline are converted into their respective equivalence classes, step 404. The equivalence classes of the first scanline are then encoded into a literal element, step 405. In this case it will be an encoding where the length is the length of the scanline followed by an encoding by equivalence class identifiers. It should also be noted that for the first scanline, the first element is a copy element having a zero length. Further, in the currently preferred embodiment a Huffman encoding of literal elements and lengths is performed. The Huffman codes utilized are based on experimentation and observation of the frequency patterns of equivalence classes. Utilization of Huffman codes in this manner is known in the art.
0041A second scanline is then converted into a set of equivalence classes using basically the same steps as described in steps 401-403 except that the equivalence classes are stored in a second scanline buffer, step 406. Encoding of the equivalence classes henceforth occurs differently since there is now a previous encoded scanline to compare to. It should be noted that encoding for the subsequent scanlines always results in a sequence of alternating copy and literal elements. First a tile's equivalence class of the second scanline buffer is compared to the corresponding position in the first scanline buffer, step 407. If there is a match, the successive equivalence class IDs are compared from the respective buffers and a match length calculated until there is no longer a match, step 408. A copy elements match length is then encoded, step 409. Copy elements are also Huffman coded.
0042If there was no match in step 407, a zero match length is encoded in the copy element, step 410. Next, the successive equivalence class definitions in the second scanline buffer are compared to determine if they are in the same equivalence class and a length calculated until a matching pair of equivalence classes is encountered, step 411. A length for a literal element is then encoded along with the equivalence class identifiers represented by the literal element, step 412. The alternating creation of copy elements and literal elements is then repeated for the remainder of the scanline, step 413.
0043For the next (e.g. third) scanline, the second scanline buffer is used as the "reference" buffer, while the first scanline buffer is used as the buffer into which equivalence classes are written. This switching of the use of the first and second scanline buffers as the "reference" buffer continues for the entire image.
0044It is noted that this technique of using a previously encoded scanline as a reference buffer is a well known technique used for example in CCITT Group 4 compression. However, other types of encodings for a stream of equivalence class identifiers could be utilized such as a lempel-ziv technique, without departing from the scope of the present invention. Figure 6 is a block diagram illustrating the functional components for performing the compression method of Figure 4. Referring to Figure 6, an Uncompressed Image Data Stream 601 is coupled to an Equivalence class identifier 602. The Uncompressed Image Data Stream 601 contains the original uncompressed scanline data. Further coupled to the equivalence class identifier 602 is an equivalence class map 603. The equivalence class map 603 may be stored in a conventional storage device and will contain the information as shown in Figure 5. The output of the equivalence class identifier 602 switches between scanline buffers 604 and 605. As noted above, since encoding of the equivalence classes depends on the equivalence classes of the previous scanline, a copy of the previous scanline is maintained. Each of the scanline buffers 604 and 605 is further coupled to equivalence class encoder 606. The equivalence class encoder 606 compares the contents of the scanline buffers and encodes them into copy or literal elements as appropriate which are stored as a Compressed Data Stream 607. Further coupled to the equivalence class encoder is encoding tables 608. The encoding tables 608 contain the information needed to perform the Huffman encoding on the copy and literal elements.
0045Figure 7 is a block diagram illustrating a compressed scanline data stream. Referring to Figure 7, as noted above for a compressed scanline the first element is always a copy element, here copy element 701. The information contained in the copy element 701 is a match length. The next element, if one exists, will be a literal element 702. Note that no literal element would be encoded if the equivalence class identifiers for the current scanline and the reference scanline were identical. The literal element contains a length along with a corresponding number of equivalence class identifiers 703. If there is a next element it will be a copy element 704, again comprising a match length as the primary information. If the scanline is not completed, this will again be followed by a literal element 705 and equivalence class identifiers 706. In practice, a copy element is merely an encoding of the match count while a literal element is an encoding of a length followed by the corresponding number of equivalence class encodings.
0046As noted above compression is further achieved through a Huffman encoding of the length information for the literal and copy elements of the created compressed data stream. It should be noted that the codes for the lengths of literal and copy elements are different. This is because the observed frequency characteristics for the two types of elements differ.
0047Further, the currently preferred embodiment contains other special encodings for the lengths for copy elements. A code is provided for indicating copying to the end of scanline. Other codes are provided to indicate copying to a next (or next after the next), key point. A key point is defined as a point in the previously encoded scanline where a transition was made from encoding of a copy element to encoding of a literal element. Note that this type of encoding is also done in CCITT Group 4 encoding, so no further description of this type of encoding is deemed necessary.
0048As described above, each equivalence class is represented by a plurality of rendering exemplars. In the currently preferred embodiment, each equivalence class is represented by a set of 8 rendering exemplars. Note that in some instances the 8 rendering exemplars may not all be unique (e.g. the case where an equivalence class only represents only a single tile configuration). However, for the most part, the 8 rendering exemplars were chosen because they present a pleasing visual appearance when used to re-dither the equivalence class on decoding.
0049As described above, in the currently preferred embodiment, scanline encoding/compression is performed based on the content of the immediately previous scanline. A similar process is performed in decoding/decompression. Figure 8 is a flowchart describing the steps for decompression. Referring to Figure 8, a first scanline is decoded to create a decoded scanline in a current scanline buffer, step 801. The decoded scanline is comprised of a scanline of equivalence class identifiers. In the currently preferred embodiment, information indicating the length of a scanline is obtained from descriptive information which describes the image. For example, a document image encoded in the Tagged Information File Format (TIFF) will include a tag having image width information from which scanline information may be derived. So the decoding occurs until the determined number of equivalence class identifiers have been decoded. Rendering exemplars for each of the equivalence classes are then identified and output as a decompressed scanline, step 802. In any event, once a scanline is decoded and equivalence class exemplars identified, the "current" scanline buffer becomes a "reference scanline buffer" and the next scanline becomes the current scanline and is decoded based in part on the decoded equivalence class identifiers found in the reference scanline buffer. The process begins by first obtaining a copy element for the current scanline and switching the current scanline buffer to a reference scanline buffer, step 803. As described above, in the currently preferred embodiment, this first element will always be a copy element, or more precisely it is presumed to be a count (which may be zero). The copy element is decoded to obtain a length M, step 804. It should be noted that as described above, the length M may represent a key point in the reference scanline. In any event, the number of equivalence class IDs represented by Length M in the corresponding positions in the reference scanline buffer are then copied to the current scanline buffer, step 805. Note that if length M is zero, then no equivalence class IDs are copied.
0050The next literal element, if one exists, is decoded to determine a length N, step 806. The N equivalence class IDs included in the literal element are then copied into the current scanline buffer, step 807. The decoding of the current scanline continues per steps 803-807 continues until enough equivalence class IDs have been decoded to fill the scanline, step 808. When the decoding of the current scanline is completed, the rendering exemplars for the various equivalence classes in the current scanline are obtained and output as a decoded scanline, step 809.
0051The steps 803-809 are then repeated for the remainder of the scanlines in the image, step 810.
0052Figure 9 is a block diagram of the functional components of a decompression system for performing the decompression described in the flowchart of Figure 8. Compressed Data stream 901 is input to an element decoder unit 902. The element decoder unit 902 is comprised of a copy element decoder 903 and a literal element decoder 904. The copy element decoder 903 will decode the match length information for copy elements. The literal element decoder 904 will decode the count information as well the corresponding number of equivalence class IDs. Each of the copy element decoder 903 and the literal element decoder 904 is coupled to a buffer unit 905. The buffer unit 905 is comprised of scanline buffer 1 906 and scanline buffer 2 907. The buffer unit 905 further contains buffer control 908 which manages access to the buffers (e.g. determines which is the reference buffer used by copy element decoder, when the buffer can be output, etc..)
0053The copy element decoder 903 will send control information to the buffer unit 905 for controlling copying of equivalence class IDs between scanline buffer 1 906 and scanline buffer 2 907. The literal element 904 will send decoded equivalence class IDs to the buffer unit 905 for storing in one of scanline buffer 1 906 or scanline buffer 2 907.
0054Further coupled to the buffer unit 905 to receive scanlines of decoded equivalence class IDs is dither unit 909. The dither unit 909 is used for determining the rendering exemplar to be used for rendering the corresponding equivalence class. Coupled to the dither unit 909 is a rendering dictionary 910. The rendering dictionary contains the sets of rendering exemplars used for each equivalence class. The output of the dither unit 909 is the decompressed image data stream 911.
0055Figure 10 is a table illustrating the rendering exemplars for the equivalence classes of the currently preferred embodiment of the present invention. The table of Figure 10 may also be considered the rendering dictionary for the equivalence classes and would be contained in the rendering dictionary 910 of Figure 9. The rendering dictionary enables the decompressed pictorial image to remain dithered (or to be re-dithered). The creation of the rendering exemplars is based in part on the number of tile configurations and an estimate of the aesthetic effect obtained by filling a region with a single equivalence class so as to create no streaks or bars. Note that other sets of rendering exemplars may be used, so long as an acceptable aesthetic effect is maintained, without departing from the scope of the present invention.
0056In the currently preferred embodiment, the rendering exemplar used is determined by the selecting the exemplar corresponding to the value of the scanline number being processed modulo the number of exemplars, e.g. 8. So for example, for the 25th scanline, 25 modulo 8, i.e. 1, would cause the second exemplar in the corresponding set to be used. Note that the sets are numbered 0-7. It should be noted that other methods could be used for selecting the exemplar (e.g. a completely random scheme), and would not cause departure from the scope of the present invention.
0057The computer based system on which the currently preferred embodiment of the present invention may be used is described with reference to Figure 11. Referring to Figure 11, the computer based system is comprised of a plurality of components coupled via a bus 1101. The bus 1101 illustrated here is simplified in order not to obscure the present invention. The bus 1101 may consist of a plurality of parallel buses (e.g. address, data and status buses) as well as a hierarchy of buses (e.g. a processor bus, a local bus and an I/O bus). In any event, the computer system is further comprised of a processor 1102 for executing instructions provided via bus 1101 from Internal memory 1103 (note that the Internal memory 1103 is typically a combination of Random Access or Read Only Memories). Such instructions are those that are preferably implemented in software for carrying out the processing steps outlined above in the flowcharts of Figures 2, 4 and 8. The processor 1102 and Internal memory 1103 may be discrete components or a single integrated device such as an Application Specification Integrated Circuit (ASIC) chip. Further the combination of processor 1102 and Internal Memory 1103 comprise circuitry for performing the functionality of the present invention so that the currently preferred embodiment of the present invention could be implemented on a single ASIC or other integrated circuit chip.
0058Also coupled to the bus 1101 are a keyboard 1104 for entering alphanumeric input, external storage 1105 for storing data such as a compressed text image data file, a cursor control device 1106 for manipulating a cursor, and a display 1107 for displaying visual output. The keyboard 1104 would typically be a standard QWERTY keyboard but may also be a telephone like keypad. The external storage 1105 may be fixed or removable magnetic or optical disk drive. The cursor control device 1106 will typically have a button or switch associated with it to which the performance of certain functions can be programmed. Further coupled to the bus 1101 is a scanner 1108. The scanner 1108 provides a means for creating a bitmapped representation of a medium (i.e. a scanned document image).
0059Further elements that could typically be coupled to the bus 1101 would include printer 1109, facsimile element 1110 and network connection 1111. The printer 1109 could be used to print the bitmapped representation. The facsimile element 1110 may contain an element used to transmit a image data that has been compressed using the present invention. Alternatively, the facsimile element 1110 could include an element for decompression of a document image compressed using the present invention. The network connection 1111 would be used to receive and/or transmit data containing image data. Thus, the image data utilized by the present invention may be obtained through a scanning process, via a received fax or over a network.
10 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10
Every citation, both ways
| Document | Relation | Office |
|---|---|---|
| WO9212594A | Cites | World Intellectual Property Organization (WIPO) |
| US4606069A | Cites | United States of America |
| US4673987A | Cites | United States of America |
| US5548689A | Cites | United States of America |
| VANDER KAM R A ET AL: "LOSSY COMPRESSION OF CLUSTERED-DOT HALFTONES" PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING (IC, AUSTIN, NOV. 13 - 16, 1994, vol. 3, no. CONF. 1, 13 November 1994 (1994-11-13), pages 836-840, XP000522911 INSTITUTE OF ELECTRICAL AND ELECTRONICS ENGINEERS ISBN: 0-8186-6952-7 | Non-patent | – |
8 members in 4 offices; this record represents the family
Priority claims4
| Document | Office | Kind | Date |
|---|---|---|---|
| 92835797 | United States of America | A | |
| 928357 | United States of America | – | |
| US19970928357 | – | – | – |
| 928357 | – | – | – |
Members8
| Document | Office | Kind | |
|---|---|---|---|
| EP0902398A2 | European Patent Office (EPO) | A2 | |
| JPH11168632A | Japan | A | |
| US5966467A | United States of America | A | |
| EP0902398A3 | European Patent Office (EPO) | A3 | |
| EP0902398B1This record | European Patent Office (EPO) | B1 | |
| DE69815972D1 | Germany | D1 | |
| DE69815972T2 | Germany | T2 | |
| JP3872217B2 | Japan | B2 |
28 legal events, as 4 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Notification of lapseLapsedST | ST | FR | |
| Gb: european patent ceased through non-payment of renewal feeCeasedGBPC | GBPC | EP | |
| Application deemed withdrawn, or ip right lapsed, due to non-payment of renewal feeWithdrawnR119 | R119 | DE | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| No opposition filedOpposition26N | 26N | EP | |
| No opposition filed within time limitOppositionORIGINAL CODE: 0009261PLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: NO OPPOSITION FILED WITHIN TIME LIMITSTAA | STAA | EP | |
| Fr: translation filedET | ET | EP | |
| Corresponds to:REF | REF | EP | |
| Designated contracting statesAK | AK | EP | |
| European patent grantedGrantedFG4D | FG4D | GB | |
| (expected) grantORIGINAL CODE: 0009210GRAA | GRAA | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOS IGRAGRAH | GRAH | EP | |
| Title (correction)METHOD AND SYSTEM FOR COMPRESSING AND DECOMPRESSING BINARY REPRESENTATIONS OF DITHERED IMAGESRTI1 | RTI1 | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOS IGRAGRAH | GRAH | EP | |
| Designation fees paidDE FR GBAKX | AKX | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | EP | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP |
Numbers
- Publication
- 0902398
- Publication, DOCDB
- 0902398
- Publication, EPODOC
- EP0902398
- Application
- 98307215
- Application, DOCDB
- 98307215
- Application, EPODOC
- EP19980307215
Titles3
- German
- Verfahren und Anordnung zur Kompression und Dekompression von Halbtonzitterbildern
- English
- Method and system for compressing and decompressing binary representations of dithered images
- French
- Procédé et appareil pour la compression et décompression des images de tremblement de demi-teinte
Classification
- CPC, 2
- G06T9/001
- H04N1/4105
- IPC, 5
- H04N1 405
- G06T1 00
- G06T9 00
- H03M7 30
- H04N1 41
Designated states3
- Contracting states, 3
- Germany
- France
- United Kingdom
