Output distributions of recursive stack filters

In this letter, we provide a method for deriving the output distribution function of any recursive stack filter. In particular, we give the output distribution of the recursive median filter. The method used relies on finite automata and Markov chain theory. The distribution of any recursive stack filter is expressed as a vector multiplication of steady-state probabilities by the truth table vector of the Boolean function defining the filter.