Question
remove noise entire noise from this image using matlab code & get the original image
Problem 4 (35 points) 1. Describe in details how would you detect and reduce the periodic noise in the input image shown (you
Sinusoidal Noise
Problem 4 (35 points) 1. Describe in details how would you detect and reduce the periodic noise in the input image shown (you should have received a copy of this image via email) and remove it to get an enhanced image. 2. Use MATLAB to show the results of your answer. Include in your submission your code and resulting image. Sinusoldal Nolse
Sinusoidal Noise
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below is the matlab code:

close all,

clear all,

clc,

ProjectPath = pwd;

baseFileName = strcat(ProjectPath,'\NoisyImg.jpg');
fullFileName=baseFileName;
grayImage = imread(baseFileName);
grayImage = rgb2gray(grayImage);
[rows columns numberOfColorBands] = size(grayImage);

subplot(2,2, 1); imshow(grayImage, [0 255]);
set(gcf, 'Name', ['Results for ' fullFileName]);
title('Original Image');
set(gcf, 'units','normalized','outerposition',[0 0 1 1]); % Maximize figure.
grayImage = double(grayImage);
frequencyImage = fftshift(fft2(grayImage));
subplot(2,2, 2);
amplitudeImage = log(abs(frequencyImage));
Minimum = min(min(amplitudeImage));
MaximumVal = max(max(amplitudeImage));
imshow(amplitudeImage, []);
title('Notice the two spikes perpendicular to periodic frequencies');
% zoom(10)
[midpointX, midpointY] = find(amplitudeImage == MaximumVal);
filterWindowHalfWidth = 1;
for row = midpointY-filterWindowHalfWidth:midpointY+filterWindowHalfWidth
for column = midpointX-filterWindowHalfWidth:midpointX+filterWindowHalfWidth
frequencyImage(row-4, column+7) = 0;
frequencyImage(row+4, column-7) = 0;
end
end
amplitudeImage2 = log(abs(frequencyImage));
Minimum = min(min(amplitudeImage2));
MaximumVal = max(max(amplitudeImage2));
subplot(2,2, 3);
imshow(amplitudeImage2, [Minimum MaximumVal]);
title('Two dots zeroed out');

filteredImage = ifft2(fftshift(frequencyImage));
amplitudeImage3 = abs(filteredImage);
Minimum = min(min(amplitudeImage3));
MaximumVal = max(max(amplitudeImage3));
subplot(2,2, 4);
imshow(amplitudeImage3, [Minimum MaximumVal]);
title('Filtered Image');

Original Image Notice the two spikes perpendicular to periodic frequencies Filtered Image Two dots zeroed out

Add a comment
Know the answer?
Add Answer to:
remove noise entire noise from this image using matlab code & get the original image Problem...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Your assignment it to write code in matlab that takes an image and remove shadow from...

    Your assignment it to write code in matlab that takes an image and remove shadow from the image. Write the whole code yourself, without using any built-in function. would anyone please help me?

  • PLEASE FOLLOW THE INTRUCTIONS ON THE BOTTOM, includes writing MATLAB code Hello. Please provide solutions to...

    PLEASE FOLLOW THE INTRUCTIONS ON THE BOTTOM, includes writing MATLAB code Hello. Please provide solutions to all the parts (a) & (b) In your solutions, include as much details as possible, showing intermediate steps to get to the answer. Keep your solutions organized and readable, thank you =) Take your time to verify your results. *** ALSO VERIFY YOUR RESULTS USING MATLAB, AND COPY AND PASTE THE CODE HERE*** DO NOT use pictures, but rather copy and paste the code,...

  • hi can you sovle this problem and do the matlab code please. thanks Problem #1 From ECE 102 Engineering Computation...

    hi can you sovle this problem and do the matlab code please. thanks Problem #1 From ECE 102 Engineering Computation textbook-, problem #1, page 126: Note: C is coulombs of charge, A is amperes of current The flow of charge in a conductor varies with time according to the function g(t)=(1-3,-)C a) Ifk -0.1s, find the current atl e Express your result rounded to 3 decimal places dt b) What is the current for very large values of time r?...

  • Please solve problem 4 and 5 using matlab and include the screenshot of the result ,...

    Please solve problem 4 and 5 using matlab and include the screenshot of the result , thank you Homework #8 Applied Programming, ENGR 10573 Spring 2018 Due Monday, Apr. 2 uploaded through TCU Online by 11:59 PM. Upload one script or function, named studentlastn ame-homework 8 ) n a single m- file that runs each problem. The homework problems should run sequentially showing I figure and or plots along with the proof that each problem works correctly. The single m-file...

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks.please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me...

  • the picture above is the one you are supposed to use for the MATlab code please...

    the picture above is the one you are supposed to use for the MATlab code please help Problems. Grayscale images are composed of a 2D matrix of light intensities from O (Black) to 255 (White). In this lab you will be using grayscale images and do 2D-array operations along with loops and iflelse branches. 1. We can regard 2D grayscale images as 2D arrays. Now load the provided image of scientists at the Solvay Conference in 1927 using the imread)...

  • Program from problem 1: (Using MATLAB) % Sampling frequency and sampling period fs = 10000; ts...

    Program from problem 1: (Using MATLAB) % Sampling frequency and sampling period fs = 10000; ts = 1/fs; % Number of samples, assume 1000 samples l = 1000; t = 0:1:l-1; t = t.*ts; % Convert the sample index into time for generation and plotting of signal % Frequency and amplitude of the sensor f1 = 110; a1 = 1.0; % Frequency and amplitude of the power grid noise f2 = 60; a2 = 0.7; % Generating the sinusoidal waves...

  • Solve using MATLAB code 22.2 Solve the following problem over the interval from 0 to 1...

    Solve using MATLAB code 22.2 Solve the following problem over the interval from 0 to 1 using a step size of 0.25 where y(0) 1. Display all your results on the same graph. dy dx (a) Analytically (b) Using Euler's method. (c) Using Heun's method without iteration. (d) Using Ralston's method. (e) Using the fourth-order RK method. Note that using the midpoint method instead of Ralston's method in d). You can use my codes as reference.

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in Matlab and show me the code. Thanks. Problem #1: Circuits and linear-systems In the last HW you developed the governing equations for the “Wheatstone”-bridge circuit used extensively in engineering applications (shown below). B R R2 A D G m RA с E The resulting equations were solved for the output voltage and currents using the function: function [V_out, I_vector] =Wheatstone_bridge (v_in, R_vector) In...

  • can you sovle this problem, also I need the code for part d. thanks Problem #5 Ri Vy= Probe I R- 1502 o VOLTMETER IN...

    can you sovle this problem, also I need the code for part d. thanks Problem #5 Ri Vy= Probe I R- 1502 o VOLTMETER INPUT CIRCUIT Probe 2 Express resistance in ohms (2) and voltage in volts (V) Requirements-Part 1 (voltmeter not attached yet) a) Suppose you want to produce a voltage of 1 V across resistor R2 (i.e. Vor 1 V) Use the voltage divider equation to find the value of Ri that is needed to do this. b)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT