04/18/2002
15-462 Graphics I
31
Huffman Coding
•
Codebook is precomputed and static
–
Use probability of each symbol to assign code
–
Map symbol to code
–
Store codebook and code sequence
•
Precomputation is expensive
•
What is “symbol” for image compression?