Course: CIS451/651 Data Compression in Multimedia
    Professor: Paul D. Amer
    Semester: Spring 2013
    Title:  Homework - Chapter 7 - Lossless Image Compression

    Notice

    Because this assignment involves sequences of bits and pixels, it is required that your answers be NEATLY organized. Difficult-to-read answers will be returned without grading.

    Tasks

    Read Chapter 7. You may omit reading Section 7.3 and the details of JBIG in Section 7.6.3 (you need to know what JBIG is.)

    1. (3 pts) Chapter 7 Projects and Problems: 1
      • assume Modified Huffman (MH) (therefore, every line is 1-D encoded)
    2. (3 pts) Chapter 7 Projects and Problems: 2
    3. (1 pt) Chapter 7 Projects and Problems: 3
    4. (2 pts) Chapter 7 Projects and Problems: 4
    5. (2 pts) Encode the following line using 1-D Modified Huffman (MH) Fax encoding.  W represents a white pel, and B represents a black pel.
    6. (2 pts) Decode the following single line (broken into two lines for readability) using 1-D Modified Huffman (MH) Fax encoding.  Assume the encoding begins with a run of W pels.
    7. (2 pts) Encode the following using 2-D Modified READ (MR) Fax encoding.   Only encode the coding line.  Assume initially that a points to a virtual white pel to the left of the coding line.
    8. (1 pt) The facsimile standard assumes each line begins with a white pel.
    9. (Required CISC651; Extra credit CISC451; 2 pts) Describe a document that would have the worst 1-D facsimile encoding, and compute (roughly) how much compression would result. (Show your work.)
    10. (Required CISC651; Extra credit CISC451; 2 pts) For your document in the prior question, compute (roughly) how much compression would result using MMR encoding. (Show your work.)
    11. (2 pts) Use the lossless JPEG model 2 (see section 7.2.1) to encode the following 4X4 "image."
    12. (2 pts) The following 4X4 image is the result of applying the lossless JPEG model 2.  Decode the image back to its original values.
          1.  +2   +2   +1    0
             +1    0    0   +1
             -1   -1   -1   -1
              0   +1   +1    0
    13. (4 pts) Repeat the previous two questions, this time assuming the lossless JPEG model 3
    14. (5 pts) Extra Credit for all students - Lossless JPEG

    Notes

    1. Graduate students must do all assignments individually. Undergraduate students may collaborate in groups of 2 for assignments. Only one submission with both names should be turned in from a group.
    2. Clearly label your answers, and please submit answers in the order assigned.
    3. (repeated from course syllabus) Academic Honesty: Unless explicitly stated otherwise, students are not permitted to access or compare any homework, or program-project answers with those of any other student or group past or present, alive or dead, or any Internet web site prior to submitting the assignment. Comparing answers, or getting answers off the Internet before submitting one's work is considered cheating. If you do not have time to complete an assignment, it is better to submit partial solutions than to get answers from someone else. While it is obviously difficult to enforce this policy, students who do not follow this policy should be keenly aware that in this class, they a re cheating, and if caught, will be prosecuted according to University guidelines. This applies both to the student (or group) who gets answers and the student (or group) who gives answers.
    4. (repeated from course syllabus)  Lateness Policy: Assignments are due at the beginning of class. Unexcused late assignments will be penalized up to 10% per school day (weekends do not count) up to a 2-day maximum penalty of 20%. Without prior discussion with the professor, assignments will not be accepted more than two school days late without a university approved excuse.