I need a code that produce a moving average matrix with a 5*5 window
Mostrar comentarios más antiguos
Hello everyone,
I have an image of 2781 * 1680, and I want to calculate the average of each pixel with a 5 * 5 sliding window that will move throughout the matrix. Knowing that I use matlab 2010 and that I do not have the function movmean.
Respuesta aceptada
Más respuestas (1)
John D'Errico
el 26 de Sept. de 2017
Editada: John D'Errico
el 26 de Sept. de 2017
I'll bet that you do have a simple function that will solve the problem.
Hint:
help conv2
If that is insufficient, then what does
ones(5,5)/25
do for you?
1 comentario
safa bousbih
el 26 de Sept. de 2017
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
