Question: Practical Exercise 4: FFT using MATLAB Now you are required to use MATLAB to show the FFT results of the same images used in task1

Practical Exercise 4: FFT using MATLAB

Now you are required to use MATLAB to show the FFT results of the same images used in task1 and task2 from practical exercise 1 (FFT_src.jpg, FFT_src_lowres.jpg).

The steps that you would follow in MATLAB are:

I = imread('FFT_src.jpg','jpg'); % Read the image file (make attention to file path).

F=fft2(fftshift(I(:,:,2))); % Calculate the FFT of the rearranged image data.

imagesc(100*log(1+abs(fftshift(F))));

% Show the result after calculating magnitude spectrum of the rearranged FFT results.

% Notice that fftshift function is needed to rearrange data for visualization.

Q9

Provide two screen prints of your results:

One for FFT_src.jpg, and

One for FFT_src_lowres.jpg).

(5 marks)

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 Databases Questions!