How to remove gaussian noise?

N
Nathaniel · Oct 15, 2020 · 1.9K views
Question
Hello, I'm working on image encryption. I need to see how well my encryption is so i thght of adding noise and testing it.I added gaussian noise with the following code.My problem is i dont know how to remove it before applying decryption algorithm.i get decimal values, I want to get whole numbers in the resulting matrix. I=imread('leena.bmp'); M =0; V=0.01; imshow(I); title('Original Image'); J = imnoise(I,'gaussian',M,V); ?gure,imshow(J); title('Gaussian Noise'); i'm planning to add other noises as well like poisson noise, speckle noise and salt and pepper noise. Is there any possibility that a code exists for removing all these noises separately?
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 16, 2026

For Gaussian noise, the maximum likelihood de-noised answer would just be a local mean, which you can do with conv2():

denoisedImage = conv2(double(noisyImage), ones(3)/9, 'same');,

If you want to do Salt and Pepper noise, then see my attached demos where I use a modified median filter.

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!