

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 / 2
This page cannot be seen from the preview
Don't miss anything!


(20pts) Problems from the textbook: 3.11, 3.
(20pts) Write a MATLAB code for computing an affine transform of an image. The input to your program is: (i) image, (ii) parameters of the affine transform, and (iii) interpolation method. Your report should include:
a) M-file with a well commented code;
b) Figure 1 and the caption: Use the image for Problem 2 that is available on the class website as input, and transform it using the bilinear interpolation and the following spatial transform
x′ y′ 1
x y 1
where
T =
c) Figure 2 and the caption: Use the image generated in Figure 1 as input to your code, and applying the inverse transform T −^1 to Figure 1 and the bilinear interpolation
x′′ y′′ 1
x′ y′ 1
d) Figure 3 and the caption: Subtract Figure 2 from the original image used in (b) (pad zeros at the boundary of Figure 2 in case the images have different sizes); In the caption, explain why Figure 2 is different from the original image.
(Hint: Use the following MATLAB commands: ’maketform’, ’imtransform’)
a) M-file with a well commented code;
b) Figure 4 and the caption: Directly apply the 3 × 3 Laplacian filter with 8 at the center.
c) Figure 5 and the caption: First, smooth the original image by using the 3 × 3 Gaussian filter with σ^2 =. 5 , and then apply the 3 × 3 Laplacian filter with 4 at the center.
d) Figure 6 and the caption: First, smooth the original image by using the 3 × 3 Gaussian filter with σ^2 = 1, and then apply the 3 × 3 Laplacian filter with − 8 at the center.
e) Which sharpening procedure of the above is more visually appealing?
(Hint: Use the following MATLAB commands: ’imfilter’, ’fspecial’)
a) M-file with a well commented code;
b) Figure 7 showing the correlation and the caption.
c) What are (x, y) coordinates of the maximum correlation?
2 / 2