RUN- LENGTH ENCODING FOR IMAGE COMPRESSION.

Existing image compression formats, (such as the .gif and .jpg standards) provide perfectly adequate performance in most circumstances. However, you may want to experiment with image compression without delving into Huffman coding, or detailed Transform processing. The following run- length encoding algorithm will provide good results with images having a large uniform backround (some prior vector quantization may be useful. So is a program that removes an isolated pixel surrounded by pixels of the same colour- it might have been noise, anyway. Dithering will restore some of the original texture in the decompressed image.)