How to clear dots in image

조회 수: 2 (최근 30일)
Ali Edinç
Ali Edinç 2020년 6월 9일
댓글: Ali Edinç 2020년 6월 10일
ı worked on this image but couldn`t get rid of the that white dots how can ı do that?
  댓글 수: 1
Ali Edinç
Ali Edinç 2020년 6월 9일
편집: Walter Roberson 2020년 6월 9일
im=imread('4.tif');
im2=im2bw(im);
figure, imshow(im2);
im3=bwareaopen(im2,60);
figure, imshow(im3);
image(logical(im3));
image(logical(im2));
colormap(gray(2))
im3=bwareaopen(im2,60);
figure, imshow(im3);
after that ı cant get back to colors ,ı am new to matlab so can you help ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Akira Agata
Akira Agata 2020년 6월 10일
How about the following?
[X,map] = imread('4.png');
X2 = medfilt2(X);
imwrite(X2,map,'output.png');
  댓글 수: 2
Ali Edinç
Ali Edinç 2020년 6월 10일
Thank you! Also image quality gets worse, can ı do something about that?
Ali Edinç
Ali Edinç 2020년 6월 10일
ı try to obtain closest result to original image

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by