Course: Digital Image Processing Homework: #1 Due ...
Course: Digital Image Processing Homework: #1 Due date: 15/3/2020 Note: 1) This is individual work. However, peer discussion is encouraged. 2) For every programming assignment, clearly document your code so that the Teaching Associate (TA) can follow your algorithms easily. Include the output images of your functions in the report. *************************************************************************** Question 1. Using the attached two images lenna_low_contrast with size 256 by 256, and lenna_original with size 512 by 512, write your Matlab codes to perform the following tasks: a. Up-sampling images lenna_low_contrast to size 512 by 512, and show the processed image IUS; b. Down-sampling the image lenna_original to size 256 by 256, and show the processed image IDS; c. Give your comments on processed images IUS and IDS. Please tell the difference of up-sampling and down-sampling processing. Question 2. The following table gives the number of pixels at each of the gray levels 0-15 in an image with those gray values only. a. Draw the histogram corresponding to these gray levels b. Perform histogram equalization c. Draw the resulting histogram. d. Analyze why the resulting histogram is not exactly same 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 20 40 60 75 80 75 65 55 50 45 40 35 30 25 20 30 Question 3. Write your Matlab code to enhance the image lenna_low_contrast by using a. appropriate point processing; b. histogram equalization; c. spatial filter d. Compare and analyze their performances.