Digital Image Processing

Homework 1, Due 2008/3/18

Problem 1

Show a curve

Write a computer program to show the m-path of the uppermost scalp in the

following image,

roberts.bmp

 

 

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.

Fig2.19(a).bmp

 

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.