

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


ECE 599 Multimedia Networking Winter 05 Dr. Thinh Nguyen
Homework 1 Due 1/21/05 at the beginning of the class
In this assignment, you are asked to implement the huffman encoding and decoding programs using your preferred computer language. You will use the image lena.raw from the class website to test your algorithms. Lena.raw is a 512x512 image with each pixel is 1 byte, representing 256 gray levels.
1 2 3 5 6 5 9 10 11 Original image
Diffferential image What is the compression ratio of the new image?
What to turn in:
Note: To represent the code 001, you can represent it as a string “001” so you don’t have to worry about manipulating bits. In reality, one has to represent the codes in raw bits. If you have time, I suggest you to actually do the bit maniplation and write the compressed bits to the file, read the file back, and decode the file to reconstruct the original image.