averaging a column in a image matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (2)
Image Analyst
am 8 Sep. 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);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!