matlab code for average filtering?
11 views (last 30 days)
Show older comments
pls help to write matlab code for average filtering....
2 Comments
Jan
on 7 Jan 2013
Do you want a moving average, a block average, a moving median (see tags) or a block median filter?
Answers (1)
Image Analyst
on 7 Jan 2013
Would this do the trick:
windowSize = 5; % Whatever you want.
averagedMatrix = conv2(originalMatrix, ones(windowSize)/windowSize^2, 'same');
0 Comments
See Also
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!