No BSD License  

Highlights from
RLE de/encoding

4.66667

4.7 | 12 ratings Rate this file 65 Downloads (last 30 days) File Size: 802 Bytes File ID: #4955

RLE de/encoding

by Stefan Eireiner

 

19 May 2004 (Updated 24 May 2004)

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

| Watch this File

File Information
Description

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

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

Decompression:
originalData = rle(compressedData);

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (15)
22 Jul 2004 Bush George

Thanks!

14 Nov 2004 lele zhou

good, thanks

26 Mar 2006 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.

19 Apr 2006 Gabriel Peyré

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

25 Apr 2006 Jeffrey Marten Gillmor

Simple, yet very quick and effective, thanks

12 May 2006 Saeed Mozaffari

simple and efficient

14 Nov 2006 Zhuo Hao

It's short but efficient.

19 Dec 2006 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.

25 Oct 2007 Shiva Krishna

Deserves more than 5 rating!!!

15 Nov 2007 xiaofan feng

brilliant, though need specified by oneself.

13 Jun 2008 siva kumar

good.......

26 Jan 2009 Thurein Oo

lot thanks

20 Apr 2009 zhang yong  
09 Dec 2009 Ram prasad  
19 Dec 2011 OLFA MOUSSA

thx

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
coding theory Stefan Eireiner 22 Oct 2008 07:20:18
information theory Stefan Eireiner 22 Oct 2008 07:20:18
data compression Stefan Eireiner 22 Oct 2008 07:20:18
rle Stefan Eireiner 22 Oct 2008 07:20:18
run length encoding Stefan Eireiner 22 Oct 2008 07:20:18
communications Stefan Eireiner 22 Oct 2008 07:20:18
coding Stefan Eireiner 22 Oct 2008 07:20:18
coding Chara 01 Dec 2009 11:22:34
coding Ram prasad 09 Dec 2009 05:58:39
coding Pablo Zurro 21 May 2010 08:08:19
coding Mallikarjun 30 Nov 2011 01:54:26
coding theory Mallikarjun 30 Nov 2011 01:54:29
communications Mallikarjun 30 Nov 2011 01:54:31
good ibrahim 03 Dec 2011 20:54:07

Contact us at files@mathworks.com