![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178595/image.png)
How can i remove the noises (white pixels) in the image?
1 次查看(过去 30 天)
显示 更早的评论
Can i know how can i remove the white pixels (noises) from the image?
I've tried using the medfilter but the result I obtained is just a pure plain picture.
Thank you.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168091/image.jpeg)
0 个评论
采纳的回答
Akira Agata
2017-10-11
One typical and simple way to do this is to use imopen function. Here is an example.
% Reading your image
I = imread('123.JPG');
I = rgb2gray(I);
BW = imbinarize(I);
% Apply imopen function
se = strel('disk',3);
BW2 = imopen(BW, se);
% Show the result
imshowpair(BW,BW2,'montage')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178595/image.png)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!