basic Weighted Median filter
显示 更早的评论
is there a beginner method for this filter?
if:
I = [10, 200, 21; 7, 9, 10; 200, 20, 50];
and after adding zeros:
0 0 0 0 0
0 10 200 21 0
0 7 9 10 0
0 200 20 50 0
0 0 0 0 0
w = [1, 2, 1; 2, 3, 2; 1, 2, 1];
it should result in [0, 0, 0, 0, 0, 0, 10, 10, 10, 200, 200, 0, 7, 7, 9] for number 10 (2,2)
and so on for each number.
without using Matlab functions (so only by using For loops, If conditions and so on... )
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Filtering 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!