matlab code for average filtering?

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

2 commentaires

doc filter
Jan
Jan le 7 Jan 2013
Do you want a moving average, a block average, a moving median (see tags) or a block median filter?

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 7 Jan 2013

0 votes

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

Catégories

En savoir plus sur Get Started with DSP System Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by