Maen Khdour 1171944 Activities (1): Apply DCT to an image Objective: To visualize the importants of applying DCT to an image by changing the lest important coeeficnets to zero. Tasks:
- Read an image into a matrix
- Apply 2D-DCT to the matrix
- Convert the last K coeffcients to zero (multiply the last (in zigzag scan) DCT-Coefficients by zeros while all other coeeficients are left the same).
- Apply inverse 2D-DCT transform to the modified DCT coefficients.
- Display the recosntracted image.
- Repreat the procedure from 3 to 5 while changing the vale of K.
- Comment on your findings. 29 Multimedia Networking
Note: when we change the number of block,not always work depends on the size of pic and the resize we used to made the pic suitable with n*n matrix for Zigzag function