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
Get step-by-step solutions from verified subject matter experts
