English

Hierarchical Recursive Running Median

Data Structures and Algorithms 2015-03-19 v3 Computer Vision and Pattern Recognition

Abstract

To date, the histogram-based running median filter of Perreault and H\'ebert is considered the fastest for 8-bit images, being roughly O(1) in average case. We present here another approximately constant time algorithm which further improves the aforementioned one and exhibits lower associated constant, being at the time of writing the lowest theoretical complexity algorithm for calculation of 2D and higher dimensional median filters. The algorithm scales naturally to higher precision (e.g. 16-bit) integer data without any modifications. Its adaptive version offers additional speed-up for images showing compact modes in gray-value distribution. The experimental comparison to the previous constant-time algorithm defines the application domain of this new development, besides theoretical interest, as high bit depth data and/or hardware without SIMD extensions. The C/C++ implementation of the algorithm is available under GPL for research purposes.

Keywords

Cite

@article{arxiv.1105.3829,
  title  = {Hierarchical Recursive Running Median},
  author = {Alexander Alekseychuk},
  journal= {arXiv preprint arXiv:1105.3829},
  year   = {2015}
}

Comments

9 pages, 6 figures, 2 tables

R2 v1 2026-06-21T18:09:33.862Z