Homework Assignment #1
Image Files: |
| |||||||||||||||||||||||||||
*: Be careful to have 4-byte alignment for each pixel row. Otherwise it will not be correctly displayed. | ||||||||||||||||||||||||||||
Notes: | [1] The students are required to finish this problem using your own
code. If you are using Matlab, make sure that you can't use the existed
Matlab functions (such as imread, imwrite) to simplify
your task. [2] Being able to read "Black & White" and "Graphics" by the converter is optional. Full points will be given to the solutions that can handle RGB24 and Grayscale images. Bonus points will be added to the solutions that can handle "Black & White" and "Graphics" images. | |||||||||||||||||||||||||||
References: | [1] PPM/PGM/PBM
files format specification [2] Bitmap file format specification | |||||||||||||||||||||||||||
Bitmap file format tips: | Bitmap files share the following structure:
Several .bmp file samples (4x4 pixels) to help you understand the format:
| |||||||||||||||||||||||||||
Notes: | [1] Implementation of fast DCT is not required for this
problem. You can directly use the DCT and IDCT equations (in the course
#2 slides) to implement these functions or use existing FFT and inverse
FFT algorithms to perform this task. [2] Refer to course #2 slides for the JPEG quantization table at quality factor of 50. [3] Please use the lena_rgb image from problem 1. |
Matlab references: | imread, imwrite, blkproc |
Reference link: | PSNR/SNR tutorial |
Shuffling table: |
One reference shuffling table: the IP table defined in
DES:
|