Digital Image Processing
Homework 4, Due 2019/5/21
Problem 1
Blurring prior to resizing
Write a program to blur and then resize the image. (Figure 4.19, Page 238)
(a) Resize the image to 50% of its original size using the resizing method in Exercise 1 of Lab 1.
(b) Blur the image with a 3*3 averaging filter using the Averaging Filter in Lab 3, and then resize the image to 50% of its original size using the resizing method in Exercise 1 of Lab 1.
Problem 2
Moiré patterns
Write a program to show Moiré patterns. (Figure 4.20, Page 239)
(a) Rotate the image 5 degrees clockwise using the result of Problem 2 in Homework 2.
(b) Multiply the original image and (a) to obtain Moiré patterns. (Sample result: Lines5.bmp)
Problem 3
Show the spectrum and phase
Write a program to perform to show the spectrum and phase of a rotated rectangle. (Figure 4.24(c), Page 251)
(a) Rotate the rectangle using the result of Problem 2 in Homework 2.
(b) Show the spectrum and phase.
Upload your homework to e起來-高大教學平台 .