
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: DIGITAL IMAGE PROCESSING; Subject: Electrical & Computer Engineer; University: Oregon State University; Term: Unknown 1989;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Problems from the textbook: 2.
Write a MATLAB code for zooming and shrinking an image by bilinear or bicubic interpolation. The input to your program is: (i) image, (ii) zooming/shrinking factors along the image rows and columns, and (iii) interpolation method. Use the image of Notre Dame cathedral as input (available on the class website). Your report should include:
2.1) M-file with a well commented code;
2.2) Figure 1 showing the input image that is zoomed by 1.7 along rows and 2.4 along columns using: (a) bilinear interpolation, and (b) bicubic interpolation; The caption of Figures 1a and 1b.
2.3) Figure 2 showing the input image that is shrunk by 4.3 along rows and 3.6 along columns using: (a) bilinear interpolation, and (b) bicubic interpolation; The caption of Figures 2a and 2b.
(Hint: Use the following MATLAB commands: ’imread’, ’imshow’, ’imwrite’, ’meshgrid’, ’interp2’)