Digital Image Processing

Homework 2, Due 4/6

Problem 1

Difference of Two Images

(Page 77) Write a computer program to set to zero the least significant bit of every pixel in an image, subtract this image from the original image, and then scale the difference image to the range [0, 255].obtain an image rotated 21 degrees using nearest neighbor interpolation

Fig0227(a)(washington_infrared).bmp

 

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)

Fig0236(a)(letter_T).bmp

 

 

ftp your homework to

ftp://nukcsie@140.127.208.168/

in the directory \HW2

by the following format:

檔案名稱:hw#_學號.zip

例如:資工同學,作業4

    檔案名稱:hw4_a09755xx.zip.  (注意:檔案名稱不能有中文)

The password is given in class.