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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started