matlab code for average filtering?

3 visualizzazioni (ultimi 30 giorni)
MANJUNATHA
MANJUNATHA il 7 Gen 2013
pls help to write matlab code for average filtering....
  2 Commenti
Jan
Jan il 7 Gen 2013
Do you want a moving average, a block average, a moving median (see tags) or a block median filter?

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 7 Gen 2013
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