A Fast Parallel Median Filtering Algorithm Using Hierarchical Tiling
Louis Sugy
Abstract
Fig. 1.A 17 × 17 median filter is applied to smooth a 30-megapixel photograph.The 8-bit red, green, and blue channels are filtered separately.Thanks to a computationally efficient and GPU-friendly algorithm, our method takes only 2.2 ms on an L40S GPU -3 times faster than the current state of the art.Median filtering is a non-linear smoothing technique widely used in digital image processing to remove noise while retaining sharp edges.It is particularly well suited to removing outliers (impulse noise) or granular artifacts (speckle noise).However, the high computational cost of median filtering can be prohibitive.Sorting-based algorithms excel with small kernels but scale poorly with increasing kernel diameter, in contrast to constant-time methods characterized by higher constant factors but better scalability, such as histogram-based approaches or the 2D wavelet matrix.This paper introduces a novel algorithm, leveraging the separability of the sorting problem through hierarchical tiling to minimize redundant computations.We propose two variants: a data-oblivious selection network that can operate entirely within registers, and a data-aware version utilizing randomaccess memory.These achieve per-pixel complexities of 𝑂 (𝑘 log(𝑘 ) ) and 𝑂 (𝑘 ), respectively, for a 𝑘 × 𝑘 kernel -unprecedented for sorting-based methods.Our CUDA implementation is up to 5 times faster than the current state of the art on a modern GPU and is the fastest median filter in most cases for 8-, 16-, and 32-bit data types and kernels from 3 × 3 to 75 × 75.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a7c4d2e0-02c3-4be3-8895-67cf0ede285dBuilds on1
Related papers
- Fast Isotropic Median FilteringBen WeissSIGGRAPH 2025 · 1 citation
- GS-TG: 3D Gaussian Splatting Accelerator with Tile Grouping for Reducing Redundant Sorting while Preserving Rasterization EfficiencyJoongho Jo, Jongsun ParkDAC 2025 · 2 citations
- Minuet: Accelerating 3D Sparse Convolutions on GPUsJiacheng Yang, Christina Giannoula, Jun Wu, Mostafa Elhoushi et al.EuroSys 2024 · 2 citations
- DPF: Differentiable Polyphase Filtering for Large-Kernel ApproximationZhe Cao, Zhizhen Wu, Zhonggui Chen, Rui Wang et al.SIGGRAPH 2026
- PAGANI: a parallel adaptive GPU algorithm for numerical integrationIoannis Sakiotis, Kamesh Arumugam, Marc F. Paterno, Desh Ranjan et al.SC 2021 · 4 citations
