Digital Image Processing

Homework 2, Due 2015/4/8

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].

Fig0227(a)(washington_infrared).bmp

 

Problem 2

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

 

Problem 3

Power-Law Transformations

Write a computer program to do power-law transformations on the dress such that it looks (1) brighter and then (2) darker.  (Page 110)

http://www.addictinginfo.org/2015/02/27/what-color-is-this-dress-the-internet-has-gone-crazy-trying-to-figure-it-out-images/

dress.bmp

Upload your homework to  e起來-高大教學平台 .