matlab code for average filtering?
조회 수: 11 (최근 30일)
이전 댓글 표시
pls help to write matlab code for average filtering....
댓글 수: 2
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
2013년 1월 7일
Would this do the trick:
windowSize = 5; % Whatever you want.
averagedMatrix = conv2(originalMatrix, ones(windowSize)/windowSize^2, 'same');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!