摘要 |
A method and system of compressing digital image data organized as successive data groups of bits, the contents of which are values of pixels of an image, by checking a first condition of whether a first data group has the same contents as one or more following data groups. If the first condition is satisfied, then the data groups are replaced, in a compression step, by a compression code representing these data groups. Otherwise, in a copying step, only the first data group is replaced by a code consisting of the contents of the data group. These steps are repeated for the next data groups. The method also adds an identification code for characterizing the nature of the code, but only when the compression step is carried out. A related method and system of decompression checks a first condition of whether an identification code is included in the compression codes. If the condition is satisfied, then decompression takes place, else copying takes place.
|