File Exchange

image thumbnail

RLE de/encoding

version 1.0 (802 Bytes) by

A simple m-file which (de)compresses your data using RLE.

4.42857
14 Ratings

14 Downloads

Updated

No License

A simple (de)compression program using Run Length Encoding.

Compression is done that easy:
compressedData = rle(originalData);

Decompression:
originalData = rle(compressedData);

Comments and Ratings (21)

Noir

Noir (view profile)

can anyone specifiy how to input original data @@

I am not able to view or download the file. I am getting "invalid menu handle". Kindly advise. This is 1st time I am attempting file exchange.

José Marçal

x is the argument of the function

mnaa

mnaa (view profile)

pleeeeeeaze reply to me
pleaze

mnaa

mnaa (view profile)

it appear the variable x is not define, please help me

Zahra M

Great and Thanks

OLFA MOUSSA

thx

Ram prasad

zhang yong

Thurein Oo

lot thanks

siva kumar

good.......

xiaofan feng

brilliant, though need specified by oneself.

Shiva Krishna

Deserves more than 5 rating!!!

Kallol Roy

But when I'm decompressing the compressed image I'm getting back an one dimensional row vector. How can this prb be solved?

I used binary image for tedting.

Zhuo Hao

It's short but efficient.

Saeed Mozaffari

simple and efficient

Jeffrey Marten Gillmor

Simple, yet very quick and effective, thanks

Gabriel Peyré

Very nice compact code. One then just need to use an entropy coder to compress the runs length.

Janet Khuu

A note that this function does not find the number of zeros in a run (if used for JPEG coding); otherwise, this is great.

lele zhou

good, thanks

Bush George

Thanks!

MATLAB Release
MATLAB 6.5 (R13)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video