Digital Image Processing
Lab 1
Exercise 1
Zooming and Shrinking Images by Pixel Replication
(a) Write a computer program capable of zooming and shrinking an image by pixel replication. Assume that the desired zoom/shrink factors are integers. You may ignore aliasing effects. You will need to download Fig. 2.19(a).
(b) Download Fig. 2.19 (a) and use your program to shrink the 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.
Exercise 2
Reduce the image into a 2-level, 255 and 0, image.
Exercise 3
Show the gradient of the image