No BSD License
-
Arith06(xC)
Arith06 Arithmetic encoder or decoder
-
Arith07(xC)
Arith07 Arithmetic encoder or decoder
-
Huff06(xC, ArgLevel, ArgSpeed...
Huff06 Huffman encoder/decoder with (or without) recursive splitting
-
HuffCode(HL,Display)
HuffCode Based on the codeword lengths this function find the Huffman codewords
-
HuffLen(S)
HuffLen Find the lengths of the Huffman code words
-
HuffTabLen(HL)
HuffTabLen Find how many bits we need to store the Huffman Table information
-
HuffTree(HL,HK)
HuffTree Make the Huffman-tree from the lengths of the Huffman codes
-
JPEGlike(arg1, arg2, arg3)
JPEGlike Entropy encoding (or decoding) in a JPEG like manner
-
Mat2Vec(W, Method, K, L)
Mat2Vec Convert an integer matrix to a cell array of vectors,
-
TestBin2(L,N)
TestBin2 Find difference of some coding strategies
-
UniQuant(X, del, thr, ymax)
UniQuant Uniform scalar quantizer (or inverse quantizer) with threshold
-
b=BitEst(N,N1);
TestBin Test coding of binary sequence
-
entropy(S)
entropy Function returns 0th order entropy of a source.
-
eob3(arg1, arg2, arg3, arg4)
-
TestArith.m
-
TestHuff.m
-
TestMat2Vec.m
-
contents.m
-
View all files
Huffman Coding and Arithmetic Coding
by Karl Skretting
05 Dec 2002
(Updated 09 Dec 2002)
Functions that compress integer sequences.
|
Watch this File
|
| File Information |
| Description |
This file contains MATLAB functions, m-files, that do Huffman coding and arithmetic coding of integer (symbol) sequences. Complete coding may be done by calling an easy to use main program (or main function), where input argument is the sequences you want to compress and the output is the compressed bitstream, as a vector of bytes. Decoding is done just by switching the arguments. These main programs are: the Huffman coder, Huff06 an updated version of the Huff03 function sbmitted earlier, and two versions of the arithmetic coder, Arith06.m and Arith07.m. The zipped file also contains examples and a contents file.
Example of use:
y=Huff06(xC); % encoding
xC=Huff06(y); % decoding
where xC is a cell array of column vectors of integers representing the symbol sequences and y is a column vector of non-negative itegers (bytes) representing the code, 0 <= y(i) <= 255.
For more information see the web page: http://www.ux.his.no/~karlsk/proj99/ |
| MATLAB release |
MATLAB 6.1 (R12.1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (14) |
| 13 Mar 2003 |
Norbert Marwan
|
|
|
| 26 Jun 2003 |
Antti Stenvall
|
|
|
| 05 Sep 2003 |
Arsalan Naeem
|
|
|
| 30 Sep 2003 |
asem eshtyeh
|
|
|
| 20 Mar 2004 |
derasriya sunil
|
|
|
| 20 Apr 2004 |
Yeditepe University
|
|
|
| 19 Jul 2004 |
Enrique Estalayo
|
|
|
| 17 Oct 2005 |
jeya shree
|
|
|
| 14 Dec 2005 |
M Khan
|
|
|
| 01 May 2006 |
Matlab User
|
|
|
| 21 Mar 2007 |
hassan abid
|
|
|
| 29 Aug 2007 |
Matlab User
|
|
|
| 10 Jan 2008 |
Burak Olcay
|
|
|
| 09 May 2011 |
Karl Skretting
|
|
|
|
Contact us at files@mathworks.com