
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!

Use Table 9.1 in the textbook as the quantization table. Write out the output of each step of the JPEG encoder (Figure 9.1 in the textbook) for an 8 x 8 block from the Y image of an imaginary image shown below:
200 200 200 200 200 200 200 200 175 175 175 175 175 200 200 200 195 195 195 195 195 200 200 200 195 190 190 190 200 200 200 200 195 195 190 190 200 200 200 200 195 190 190 190 175 175 175 175 195 195 195 195 175 175 175 175 160 160 160 160 160 160 160 160
Related with the Assignment 3, Question 1:
(1) Note that in JPEG coding, the DC coefficients are coded once for the whole image. In our case, since we only have an 8*8 block, we only have one DC coefficient value. We assume that the DPCM coding is simply to copy the DC coefficient value.
(2) You may have realized that in the example of the textbook (Figs. 9.2, 9.3), the DC coefficient is different from that calculated by DCT. This is due to a small implementation detail in JPEG compression: each f(i,j) value is reduced by 128 before using DCT. This small detail will impact only the DC part and has no impact on AC coefficients. In this assignment, it is ok if you do not reduce the f(i,j) values, but you need to be aware of this implementation detail.