averaging a column in a image matlab
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
Image Analyst
2017 年 9 月 8 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!