Question: I JUST NEED AN ANSWER FOR THE SECOND PART ON ROTATING THE IMAGE AND YOU CANT USE ANY BUILT IN MATLAB FUNCTIONS. THANK YOU!!!!!!!!!!!!! Problem

I JUST NEED AN ANSWER FOR THE SECOND PART ON ROTATING THE IMAGE AND YOU CANT USE ANY BUILT IN MATLAB FUNCTIONS. THANK YOU!!!!!!!!!!!!! Problem 3.[40 points] Basic Image processing II.(1) Download the file 'butterfly.gif' under "Files" tab "Lab12_data", we will use it as the input image and generate a blurred version using a n-by-n blurring window. For example, if n equals 3, imgOut (2,2) on the right can be calculated by averaging the 9 numbers in the red box from the original image. If any terms in the 3-by-3 box are out of the image, you can ignore them. One solution is to use the MATLAB built-in function filter2(see the extra optional practices as an example). However, here
we would like you to get practices on writing for loops in MATLAB. You must use a nested for loop to solve this problem, make the code work for any n(a positive odd number).
(2) Design an image warping and shift operator so that the image rotates 90degree clock-wise (Hint: Note that the rotation is around (0,0), you may try a few output pixels and see where they are mapped with respect to your source image. This allows you to determine if any shift is necessary). You are not allowed to use any MATLAB images rotation functions to solve this problem.
Submit your .m file as "yourLastName hw12 prob3.m".
Report your blurred images for the case n equals 5,9, and 15 and the rotated image in the write up.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!