摘要 |
A method for compressing image data into a sequence of codes, the image data being represented by a plurality of input color vectors. The method includes a repetitive processing of one color vector at a time with the following steps: receiving one of the input color vectors; comparing the received input color vector with codebook words in a codebook, the codebook words being expressed as color vectors: compressing the received input color vector to generate a code based on the comparison; updating the codebook with a color vector, the color vector being generated by decoding the code; and outputting the code before receiving a next one of the input color vectors; wherein the updating may include rearranging the order of the codebook words based on the comparison. |