At each sample the oldest value in the window is replaced with the new value and it is checked if the new value affects the median, if so a new value for the median is selected.

Auto generated API documentation and code listings for medianfilter

Code

filter.cpp [code]
filter.h [code]