$25
The following items are the steps that you have to do in this lab session:
Add Gaussian (standard deviation=20) and salt & pepper (density=20%) noise to the provided images:display the images, the noisy images, and their histograms.
Remove the noise by using a moving average, a low-pass Gaussian filter and a median filter:use two different spatial supports: 3x3 pixels and 7x7 pixels; o display the filters by using imagesc() and surf(); o display the resulting images and their histograms.
Implement the slides 41-45 “practice with linear filters”:use filters with a spatial support of 7x7 pixels. o display the filters by using imagesc() and surf(); o display the resulting images.
Apply the Fourier Transform (FFT) on the provided images:display the magnitude (log) of the transformed images;
display the magnitude of the transformed low-pass Gaussian filter (spatial support of
101x101 pixels with sigma=5); o display the magnitude of the transformed sharpening filter, slide 44 (the filter has a spatial support of 7x7 pixels, copy it in the middle of a zeros image of 101x101 pixels).
Notes:
You have to write a report that describes your work and the obtained results (please include the figures). In the report you must indicate all the surnames of the participants (not other names, e.g. the teachers).
About the code:You have to use relative paths.
You have to write and use functions.
You have to provide us a main script to test your code.
The code must be uploaded as M-files. All the files (M-files, images, and report) have to be compressed in a single file named “surnames_labxx.zip/tgz” (all the surnames of the participants have to be indicated), and then the compressed file has to be uploaded.