Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Rotate the any image you want by 20 degrees using nearest interpolation. Registe

ID: 667991 • Letter: R

Question

Rotate the any image you want by 20 degrees using nearest interpolation. Register the rotated image by rotating it in the opposite direction. N.B the registered image will have different number of pixels from the input image (A black border will be added by Matlab). To fix this problem you need to neglect the first and last 83 rows and columns. Find the difference between the input image and registered image and display it in the best way possible in Matlab. Find the MSE between the two images. Is the MSE in your opinion a good measure of the quality of the registered image.

Explanation / Answer

function mse = MSE(A, B) % Compute the Mean Squared Error between two images C = (double(A)-double(B)).^2; mse = mean(C(:));