basic Weighted Median filter
Show older comments
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... )
1 Comment
Hakar Doski
on 5 Mar 2021
Answers (0)
Categories
Find more on Image Filtering 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!