Run-length coding
no vote
The program is an implement of the run-length coding algorithm which is used to compress image.
This is a special application of run length coding optimized for images. the general structure is
[out]=runLengthCode(in,toDo)
toDo paramater optional since v3
when in is image file todo is 'e' for encode
when in is run code todo is 'd' for decode
The code auto detects the mode
Even larger binary 1-D signals can be encoded just specify 'e'
<