[WPI] [CS Dept] [ECE Dept] [CS/EE 545] [Syllabus]

CS/EE 545 Homework 7

Complete by Class 9

Nearest-Neighbor Interpolation

Write a program to shrink or expand images using nearest-neighborinterpolation. Repeat the experiments you did with changing image size in Homework 1, but using non-integral factors. Also, try to reduce an image and then expand it back to the original size using nearest-neighbor interpolation.

Bilinear Interpolation

Repeat the above using bilinear interpolation. Bilinear interpolation is just linear interpolation along each of the 2 image axes.

Also, show that the 4 coefficients used in bilinear interpolation sum to 1.

Cubic Interpolation (optional)

Repeat the above using cubic interpolation. As shown in class, the 1-D cubic interpolation kernel is

where -3<a<0 is a parameter that controls the precise kernel shape.

Color

Write a program to convert a color image to use only the 216 websafe colors 000000, 000033, ..., FFFFFF. Test it on the American Gothic image AmGoth.img, AmGoth.tif, AmGoth.gif. Can you suggest a way to eliminate the banding effect that is visible in the sky and the artifacts that are visible in the faces?

E-mail your programs and solutions to cs545m_ta@cs.wpi.edu.


 
WPI Home Page
[CS Dept] [ECE Dept] [CS/EE 545] [Syllabus]

Contents ©2000 - 2002 Norman Wittels and Michael A. Gennert