I need a code that produce a moving average matrix with a 5*5 window
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
John D'Errico
2017년 9월 26일
편집: John D'Errico
2017년 9월 26일
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?
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
