matlab code for average filtering?

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

2 comentarios

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

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 7 de En. de 2013
Would this do the trick:
windowSize = 5; % Whatever you want.
averagedMatrix = conv2(originalMatrix, ones(windowSize)/windowSize^2, 'same');

Etiquetas

Preguntada:

el 7 de En. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by