如何去除这张形态学照片中的图像噪点,同时使背景变白,同时又不会过多降低文本的可读性?

How to remove the image noises in this photo with morphology while making the backgorund white and without reducing the text readability too much?

这必须在 MATLAB 中完成。我尝试了 [5 5] 的中值滤波器,尝试了 imerode,imdilate,但文本越来越差。我什至尝试过将 strel 与直线、正方形、圆盘、度线以及任何你可以命名的东西一起使用。无能为力。有没有不破坏文字的方法?

通过使用形态学闭包你会得到一个可以接受的结果:

% Image
img = imread('Noisy_Text.jpg');

% Structuring Element
SE=zeros(3,3);
SE(1,1)=1;
SE(1,3)=1;
SE(2,2)=1;
SE(3,1)=1;
SE(3,3)=1;
Imdilte=imclose(img,SE);

figure();
subplot(1,2,1);
imshow(Imdilte)
subplot(1,2,2);
imshow(img);