matlab code for average filtering?

pls help to write matlab code for average filtering....

2 个评论

Do you want a moving average, a block average, a moving median (see tags) or a block median filter?

请先登录,再进行评论。

回答(1 个)

Would this do the trick:
windowSize = 5; % Whatever you want.
averagedMatrix = conv2(originalMatrix, ones(windowSize)/windowSize^2, 'same');

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by