Scilab Function
Last update : 06/02/2007

huffdeco - Decoding of a compressed bit sequence.

Calling Sequence

B=huffdeco(QT,QM);

Parameters

Description

huffdeco is the reverse operation to huffcode. The output arguments of huffcode can directly be used as input arguments for huffdeco

Examples

// Generate a Testmatrix
A=testmatrix('frk',10)+1;
A=A(:).';
[QT,QM]=huffcode(A);
disp('compressed Bit sequence:');
disp(QT);
disp('Code Table:');
disp(QM);
// Now, the reverse operation
B=huffdeco(QT,QM);
disp('Original:');
disp(A);
disp('Result after Uncompress:');
disp(B);
plot2d(B-A);
// End of Demo

See Also

huffcode ,   huffman ,  

Authors

Dr. Andreas Geissler geisslea@web.de