matlab code for average filtering?
11 次查看(过去 30 天)
显示 更早的评论
pls help to write matlab code for average filtering....
2 个评论
Jan
2013-1-7
Do you want a moving average, a block average, a moving median (see tags) or a block median filter?
回答(1 个)
Image Analyst
2013-1-7
Would this do the trick:
windowSize = 5; % Whatever you want.
averagedMatrix = conv2(originalMatrix, ones(windowSize)/windowSize^2, 'same');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!