matlab code for average filtering?

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

2 件のコメント

José-Luis
José-Luis 2013 年 1 月 7 日
doc filter
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 日

0 投票

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

カテゴリ

タグ

質問済み:

2013 年 1 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by