matlab code for average filtering?

조회 수: 11 (최근 30일)
MANJUNATHA
MANJUNATHA 2013년 1월 7일
pls help to write matlab code for average filtering....
  댓글 수: 2
José-Luis
José-Luis 2013년 1월 7일
Jan
Jan 2013년 1월 7일
Do you want a moving average, a block average, a moving median (see tags) or a block median filter?

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2013년 1월 7일
Would this do the trick:
windowSize = 5; % Whatever you want.
averagedMatrix = conv2(originalMatrix, ones(windowSize)/windowSize^2, 'same');

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by