1. | The luminance quantisation Table 5.1 is used in the baseline JPEG for a quality factor of 50 per cent. Find the quantisation table for the following quality factors:
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2. | In problem 1 find the corresponding tables for the chrominance. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3. | The DCT transform coefficients (luminance) of an 8 x 8 pixel block prior to quantisation are given by:
Find the quantisation indices for the baseline JPEG with the quality factors of:
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4. | In problem 3, if the quantised index of the DC coefficient in the previous block was 50, find the pairs of symbol-1 and symbol-2 for the given quality factors. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5. | Derive the Huffman code for the 25 per cent quality factor of problem 4 and hence calculate the number of bits required to code this block. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6. | A part of the stripe of the wavelet coefficients of a band is given as:
Assume the highest bit plane is 6. Using EBCOT identify which coefficient is coded at bit plane 6 and which one at bit plane 5. In each case identify the type of fractional bit plane used. |
|
Answers
1. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2. | the same as problem 1. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4. | for 50% quality: DIFF = 62 - 50 = 12, symbol_1 = 4; symbol_2 = 12 scanned pairs (3,1)(0,3)(0,1)(0,-1)(1,-1)(6,1)(6,1)(1,1)(1,1)(35,3) and the resultant events: (3,1)(0,2)(0,1)(0,1)(1,1)(6,1)(6,1)(1,1)(1,1)(15,0)(15,0)(3,3) for 25% quality: DIFF= 31-50 = -19, symbol_1 = 5, symbol_2 = -19-1 =-20 scanned pairs: (4, 1)(57, 1) events: (4,1)(15,0)(15,0)(15,0)(9,1) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5. | for DC: DIFF= -19 ⇒ CAT = 5; DIFF-1 = -20 VLC for CAT = 5 is 110 and -20 in binary is 11101100, hence the VLC for the DC coefficient is 11001100 for AC, using the AC VLC tables: for each (15,0) the VLC is 11111111001 and for (9, 1) the VLC is 111111001 total number of bits: 8 + 3 x 11 + 9 = 50 bits. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6. | At bit-plane 6 coefficient 65 at clean-up pass. At bit-plane 5 coefficient 65 at all passes and coefficient 50 at clean-up pass. |