A simple (de)compression program using Run Length Encoding.
Compression is done that easy:
compressedData = rle(originalData)
Decompression:
originalData = rle(compressedData)
The LZW compression class i mplemented as a fixed length code which you can specify, the huffman algorithm implementation encodes a byte into a variable length bit array. Both of them can work with streams
This zip contains a simple paper of SPIHT generated streams run length encoded ... later i ll be posting the MATLAB source code also and also SPIHT with Arithmetic coding