摘要:
A method and apparatus for adaptive bit allocation and hybrid lossless entropy encoding in a lossy compression system. The invention includes three components: (1) a transform stage to decorrelate image data into a baseband and multiple subbands, (2) a quantization stage to quantize the resulting transform coefficients, and (3) a lossless entropy coder stage to encode the quantized indexes. In the preferred embodiment, the transform stage uses a wavelet transform algorithm. The quantization stage adaptively estimates values for parameters defining an approximation between quantization size and the logarithm of quantization error, and recursively calculates the optimal quantization size for each band to achieve a desired bit rate. The baseband and subbands are transformed into quantization matrices using the corresponding quantization sizes. The lossless entropy coder stage uses the observation that the entropy property of run lengths of zero index values in the subband quantization matrices is different from the entropy property of non-zero indices. Each quantization matrix is parsed so that each non-zero index is extracted into a separate stream, and the remaining position information is parsed into an odd stream of run length values for "0" and an even stream of run length values for "1". These three streams are Huffman coded separately in conventional fashion. This hybrid algorithm gives an approximately 10% percent improvement over conventional run length and Huffman coding for similar images. The overall compression algorithm gives about 2.about.6 dB improvement in terms of peak signal-to-noise ratio (PSNR) over JPEG algorithms for similar images at similar bit rates.
摘要:
A bit train of a plurality of continuous pixels is compressed according to a new run-length compression scheme. In this run-length compression scheme, the run information of one unit of compression includes run-length information indicating the continuous number of the same pixel data blocks, or the number of pixels followed, and pixel data having a two-bit configuration for discriminating three or more colors of the pixels.
摘要:
A bit train of a plurality of continuous pixels is compressed according to a new run-length compression scheme. In this run-length compression scheme, the run information of one unit of compression includes run-length information indicating the continuous number of the same pixel data blocks, or the number of pixels followed, and pixel data having a two-bit configuration for discriminating three or more colors of the pixels.
摘要:
A variable length encoding/decoding apparatus using symbol-codeword re-association of a variable length code table includes a re-associator for storing symbol-address assignment information, address-codeword assignment information and address-counter-value assignment information, altering the symbol-address assignment information and the address-counter value assignment information according to the varied counter value due to the symbol identifying and outputting a variable length code table in which a symbol-codeword is re-associated to the encoder/decoder apparatus, and a controller for producing the initialized counter values based on probabilities of symbol occurrences belonging to the pre-defined variable length code table and the information stored in the re-associator based on the pre-defined updating unit, and storing the symbol-codeword re-associated variable length code table every predetermined updating unit in the encoder/decoder. A data compression efficiency can be improved even though global statistics corresponding to the pre-defined variable length code table and local statistics of the symbols/codewords which are actually variable-length-encoded/decoded do not match each other. Since it is not necessary to transmit the symbol-codeword re-association information at the encoding end to a decoding end, threre is no additional data to be transmitted by employing the present invention.
摘要:
A data encoding method having a prediction setting process that designates a numerically superior symbol as either a "0" or a "1", and the other one is designated as a numerically inferior symbol. Then a binary bit string composed of "0"s and "1"s is input, and the numerically superior symbol is predicted to continuously repeat for n symbols, where n is set as a prediction bit number. A prediction result output process outputs a prediction correct signal that is either a "0" or a "1" when a prediction is correct for the observed series. The process then moves to an operation to perform encoding of a bit series containing the next n symbols, or otherwise outputs the other signal (i.e., that is not used to represent that the prediction is correct) as a prediction failure signal. A similar prediction setting process and prediction result output process is recursively repeated by setting a new prediction bit number that is smaller than the above prediction bit number by n symbols when the prediction fails for a predetermined number of times. Further, the same prediction setting process and prediction result output process are recursively repeated using a prediction bit number changed to a new prediction bit number increased by n symbols when the prediction is correct for a predetermined number of times. Similar algorithms are applied to perform decoding.
摘要:
A decoding apparatus includes a first decoder for performing decoding by dividing first coded data consisting of a bit sequence into divided data each having a bit length of 1 bit or more, and a second decoder which performs decoding on the basis of the "1" or "0" run length and the remaining bit string of second coded data consisting of a bit sequence, and shares at least a circuit portion with the first decoder.
摘要:
A single clock cycle adaptive data compressor/decompressor with a string reversal mechanism is described which can perform data compression and decompression at the rate of one uncompressed symbol per clock cycle. The LZW data compression algorithm has been improved for use in this data compressor. The compressor builds a string table as the data is received. Each string within the table is made up of the address within the table of the longest previously seen matching string and the one character that makes this string different. This data compressor/decompressor utilizes a content addressable memory to store the string table. This content addressable memory allows the compressor to store the current symbol string in a table while that same string table is simultaneously searched for the current string. During decompression the characters within a symbol string are output in reverse of the order in which they were input. In order for the data to be restored to its original format the characters within a string must be reversed before they are output. Two dual-ported random-access memories are used as circular queues to perform this string reversal. These dual-ported random-access memories have the capability to output the characters within a string from the string reversal mechanism in the order that they were input. The first dual-ported random access memory is used to store the strings of symbols to be reversed and the second dual-ported random access memory is used to store the addresses of the first and last symbol of each string that is stored in the first dual-ported random-access memory.
摘要:
An image processing system combines a multitude of image signals to create a compound image, The system has a plurality of memory modules operative to store the image signals as pixels for the compound image as respective segments of consecutive pixels. A specific row of consecutive pixels of the compound image is formed by consecutive arrangement of the respective segments. This permits the use of a simple addressing protocol, and of simple page-mode access DRAMs.
摘要:
A system (10) for compressing and decompressing records includes a decompressed file (12) and a compressed file (14). A first record is stored in a first buffer (18) and a second record is stored in a second buffer (20). A vertical compression technique compares the first record and the second record, on a field-by-field basis, and replaces the field of the second record with a vertical repeat indicator if the field of the second record matches the corresponding field of the first record. A horizontal compression technique further compresses the second record by replacing adjacent matching characters with a horizontal repeat indicator.
摘要:
A method used preferably with LZSS-based compression methods for compressing a stream of digital data. The method uses a run-length encoding scheme especially suited for data strings of identical data bytes having large run-lengths, such as data representing scanned images. The method reads an input data stream to determine the length of the data strings. Longer data strings are then encoded in one of two ways depending on the length of the string. For data strings having run-lengths less than 18 bytes, a cleared offset and the actual run-length are written to an output buffer and then a run byte is written to the output buffer. For data strings of 18 bytes or longer, a set offset and an encoded run-length are written to the output buffer and then a run byte is written to the output buffer. The encoded run-length is written in two parts obtained by dividing the run length by a factor of 255. The first of two parts of the encoded run-length is the quotient; the second part is the remainder. Data bytes that are not part of data strings of sufficient length are written directly to the output buffer.