Complete by Class 10
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. Describe what happens.
Bilinear Interpolation
Repeat the above using bilinear interpolation. Bilinear interpolation is just linear interpolation along each of the 2 image axes.
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.
What to hand in
Hand in to class