need code for Image processing for noise removal

1 visualización (últimos 30 días)
Samia Ahmed
Samia Ahmed el 22 de Abr. de 2018
Editada: Walter Roberson el 22 de Abr. de 2018
I need to remove the keep the spot in the middle and remove the bright element on the right and the other gray element on the left. Please help me. I used erosion and other filtering, couldn't come up correctly. Image size is 640x512 pixel
  2 comentarios
Samia Ahmed
Samia Ahmed el 22 de Abr. de 2018
Editada: Walter Roberson el 22 de Abr. de 2018

here is the code. Please help me

I = imread ('image 6.jpg');
I2 = rgb2gray(I);
se1 = strel([0 1 1 0;  1 1 1 1;1 1 1 1; 0 1 1 0]);
se2 = ones(4,4)/16;
se3 = strel('disk', 10);
e = imerode(I2,se1);
fo = imopen(e, se3);
favg = filter2(fspecial('average',4),fo)/255;
fim = imfilter(favg, se2);
% fi2 = imfilter(e, se2);
% fi3 = imfilter(fi2, se2);
% fi4 = imfilter(fi3, se2);
% fi5 = medfilt2(fi4);
subplot (2, 2, 1); 
imshow (I); 
title ('Input'); 
subplot (2, 2, 2); 
imshow (e); 
title ('Erosion');
subplot (2, 2, 3); 
imshow (favg);
title ('Thresholding'); 
subplot (2, 2, 4); 
imshow (fim);
title ('Median Filter');

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by