averaging a column in a image matlab

1 visualización (últimos 30 días)
hasan alhussaini
hasan alhussaini el 8 de Sept. de 2017
Respondida: Image Analyst el 8 de Sept. de 2017
i'm getting an artefact in my image its going down, is there away to get rid of it?
i was thinking maybe use the column on the left and right to average it out?

Respuestas (2)

KSSV
KSSV el 8 de Sept. de 2017
Editada: KSSV el 8 de Sept. de 2017
As you know the index..you eliminate that particular column from the image.
Try:
I(:,1366) = [] ;
And then use imshow on I.

Image Analyst
Image Analyst el 8 de Sept. de 2017
Use a tophat filter, imtophat(). then threshold that and use it as a mask to replace it with the eroded image (local min). Something like (untested)
badPixels = imtophat(grayImage, ones(1, 3));
mask = badPixels > 4; % or whatever number works.
erodedImage = imerode(grayImage, ones(1,3)); % Get local min value.
grayImage(mask) = erodedImage(mask);

Categorías

Más información sobre Image Processing Toolbox 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