Manual median filter design
Show older comments
Hello, I want to implement a simple median filter of window size '5' manually.I found a thread here
medain with blockpro(),nlfilter but when I tried with the help blockpro() and nlfilter() both showed nlfilter() and blockpro() not found. I don't have imageprocessing toolbox.
So,can anyone help me out in implementing the median filter manually.
Accepted Answer
More Answers (1)
Image Analyst
on 2 Dec 2013
0 votes
See my blockproc() demos (attached below in blue). Demo1 does the median. Demo2 does a custom filter, like you'd do with nlfilter(). Note: blockproc() normally moves in "jumps" of the window size. To get it to move over just one pixel instead of the whole window width, you'll need to adjust the 'Bordersize' option of blockproc().
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!