Is there a way to get rid of white dots in image?

5 views (last 30 days)
I want to remove the white dots from the image (attached) without affecting the rectangular signal. Is there any way to get rid of these white dots with script for data processing?
Thank you

Accepted Answer

Matt J
Matt J on 19 Sep 2022
Edited: Matt J on 19 Sep 2022
medfilt2 would be appropriate.
A=imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1129070/image.jpg');
imshow(medfilt2(A))

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!