Digital Image Processing
Homework 1, Due 2009/3/16
Problem 1
Rotate an image
Write a computer program to obtain an image rotated 21 degrees using nearest neighbor interpolation
to assign intensity values to the spatiaaly transformed pixels. (Page 89)
Problem 2
Zooming and Shrinking Images by Bilinear Interpolation (or linear interpolation in x or in y)
(a) Write a computer program capable of zooming and shrinking an image by
bilinear interpolation. The input to your program is the desired size of the resulting
image in the horizontal and vertical direction. You may ignore aliasing effects.
(b) Download Fig. 2.19(a) and use your program to shrink this image from 1024 x
1024 to 256 x 256 pixels.
(c) Use your program to zoom the image in (b) back to 1024 x 1024. Explain the
reasons for their differences.
ftp your homework to
ftp://csc551@ftp.csie.nuk.edu.tw
in the directory 影像處理\HW1
by the following format:
檔案名稱:hw#_學號.zip
例如:資工同學,作業1
檔案名稱:hw1_a09355xx.zip
The password is given in class.