Answered You can hire a professional tutor to get the answer.

QUESTION

Problem 4. (35 pts): Write a MATLAB code for zooming and shrinking an image using the bicubic interpolation. The input to your program is:

Problem 4. (35 pts): Write a MATLAB code for zooming and shrinking an image using the bicubic interpolation. The input to your program is: (i) image, (ii) transformation parameters, and (iii) interpolation method. Use the image available on the class website as input. Your report should include:1) (5pts) M-file with a well-commented code;2) (10pts) Figure 1 showing the result when the input image is enlarged by 2.4 along rows, shrunk by 1.4 along columns, and rotated by 33.5 degrees clockwise. The caption of Figure 1.3) (10 pts) Figure 2 showing the inverse transform of the resulting image in Figure 2.4) (10 pts ) Figure 3 showing the difference between the original (input) image and Figure 2. In the caption of Figure 3, comment on the meaning of bright and dark pixels of Figure 3.(Hint: Use the following MATLAB commands: ‘imread’, ‘imshow’, ‘imwrite’, ‘meshgrid’, ‘interp2’)Problem 5. (25pts): 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:1) (5pts) M-file with a well commented code;2) (10pts) Figure 4 showing the result when the input image is spatially transformed using the matrix T and bilinear interpolation, where T is specified as0.3 0.1 00.5 1.9 10 0 1T      3) (10pts): Figure 5 showing the difference between the input image and the image that has been obtained by apply the inverse spatial transform 1Tto Figure 4 (apply zero padding if images have different sizes); In the caption of Figure 5, explain the meaning of bright and dark pixels of Figure 5.(Hint: Use the following MATLAB commands: ‘maketform’, ‘imtransform’)

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question