hufftext.txt
来自「图像压缩的Huffman编码与解码,matlab源代码」· 文本 代码 · 共 18 行
TXT
18 行
This file contains some MatLab m-files (version 5.2)
which do complete Huffman Coding.
The files are:
hufflen
Based on probability (or number of occurences) of each symbol
the length for the Huffman codewords are calculated.
HL = hufflen(S);
huffcode
Based on the codeword lengths this function find the Huffman codewords
HK = huffcode(HL);
hufftree
make the Huffman-tree from the length of Huffman codes
Htree = hufftree(HL);
huff03
Huffman encoder/decoder, one or two vectors of non-negative
integers are Huffman coded.
y = huff03(x1, x2); % encoding
[x1, x2] = huff03(y); % decoding
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?