
How can i remove the noises (white pixels) in the image?
조회 수: 3 (최근 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.

댓글 수: 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')

추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!