필터 지우기
필터 지우기

averaging a column in a image matlab

조회 수: 2 (최근 30일)
hasan alhussaini
hasan alhussaini 2017년 9월 8일
답변: Image Analyst 2017년 9월 8일
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?

답변 (2개)

KSSV
KSSV 2017년 9월 8일
편집: KSSV 2017년 9월 8일
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 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);

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by