1D adaptive median filter

When I survey on the Internet about adaptive median filter, I found generally 2D adaptive median filter.
How can I write code of 1D adaptive median filter for smoothing noise on the signal?

2 Comments

Replace all 2-D processes with the corresponding 1-D processes, medfilt2 -> medfilt1,
ordfilt2 -> ordfilt1 and so on?
What part of that answer couldn't you follow? What part of the implementation are you struggling with? You surely have found pseudo-code and code for 2-D adaptive median filters. Why would it be a problem to restrict that filter-algorithm to "1-D images"? Have you looked at the file exchange for 1-D adaptive median filter? If not here's a link for you:
...and technically it wasn't an answer.

Sign in to comment.

Answers (0)

Asked:

on 18 Sep 2019

Commented:

on 19 Sep 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!