Does median filtering truly preserve edges better than linear filtering

Image processing researchers commonly assert that "median filtering is better than linear filtering for removing noise in the presence of edges." Using a straightforward large-n decision-theory framework, this folk-theorem is seen to be false in general. We show that median filtering and linear filtering have similar asymptotic worst-case mean-squared error (MSE) when the signal-to-noise ratio (SNR) is of order 1, which corresponds to the case of constant per-pixel noise level in a digital signal. To see dramatic benefits of median smoothing in an asymptotic setting, the per-pixel noise level should tend to zero (i.e., SNR should grow very large). We show that a two-stage median filtering using two very different window widths can dramatically outperform traditional linear and median filtering in settings where the underlying object has edges. In this two-stage procedure, the first pass, at a fine scale, aims at increasing the SNR. The second pass, at a coarser scale, correctly exploits the nonlinearity of the median. Image processing methods based on nonlinear partial differential equations (PDEs) are often said to improve on linear filtering in the presence of edges. Such methods seem difficult to analyze rigorously in a decision-theoretic framework. A popular example is mean curvature motion (MCM), which is formally a kind of iterated median filtering. Our results on iterated median filtering suggest that some PDE-based methods are candidates to rigorously outperform linear filtering in an asymptotic framework.

[1]  G. Matheron Random Sets and Integral Geometry , 1976 .

[2]  C. L. Mallows,et al.  Some theoretical results on Tukey’s 3R smoother , 1979 .

[3]  Frederick R. Forst,et al.  On robust estimation of the location parameter , 1980 .

[4]  David C. Hoaglin,et al.  Applications, basics, and computing of exploratory data analysis , 1983 .

[5]  B I Justusson,et al.  Median Filtering: Statistical Properties , 1981 .

[6]  Jean Serra,et al.  Image Analysis and Mathematical Morphology , 1983 .

[7]  D. Mason Weak Convergence of the Weighted Empirical Quantile Process in $L^2(0, 1)$ , 1984 .

[8]  M. Braga,et al.  Exploratory Data Analysis , 2018, Encyclopedia of Social Network Analysis and Mining. 2nd Ed..

[9]  S. Semmes Quasiconformal mappings and chord-arc curves , 1988 .

[10]  D. Mumford,et al.  Optimal approximations by piecewise smooth functions and associated variational problems , 1989 .

[11]  Peter J. Rousseeuw,et al.  The Remedian: A Robust Averaging Method for Large Data Sets , 1990 .

[12]  Jitendra Malik,et al.  Scale-Space and Edge Detection Using Anisotropic Diffusion , 1990, IEEE Trans. Pattern Anal. Mach. Intell..

[13]  Murk J. Bottema Deterministic properties of analog median filters , 1991, IEEE Trans. Inf. Theory.

[14]  A. Tsybakov,et al.  Minimax theory of image reconstruction , 1993 .

[15]  Jianqing Fan,et al.  On curve estimation by minimizing mean absolute deviation and its implications , 1994 .

[16]  I. Johnstone,et al.  Wavelet Shrinkage: Asymptopia? , 1995 .

[17]  Jean-Michel Morel,et al.  Variational methods in image segmentation , 1995 .

[18]  Inge Koch,et al.  On the asymptotic performance of median smoothers in image analysis and nonparametric regression , 1996 .

[19]  J. Morel,et al.  Partial differential equations and image iterative filtering , 1997 .

[20]  I. Duff,et al.  The state of the art in numerical analysis , 1997 .

[21]  I. Johnstone,et al.  Minimax estimation via wavelet shrinkage , 1998 .

[22]  F. Cao Partial differential equations and mathematical morphology , 1998 .

[23]  D. Donoho Wedgelets: nearly minimax estimation of edges , 1999 .

[24]  James A. Sethian,et al.  Level Set Methods and Fast Marching Methods , 1999 .

[25]  Nitin Sampat,et al.  Sensors and Camera Systems for Scientific, Industrial, and Digital Photography Applications , 2000 .

[26]  David L. Donoho,et al.  Nonlinear Pyramid Transforms Based on Median-Interpolation , 2000, SIAM J. Math. Anal..

[27]  Jason Jianjun Gu,et al.  Analysis of eye tracking movements using FIR median hybrid filters , 2000, ETRA.

[28]  Maya R. Gupta,et al.  Vector color filter array demosaicing , 2001, IS&T/SPIE Electronic Imaging.

[29]  G. Sapiro,et al.  Geometric partial differential equations and image analysis [Book Reviews] , 2001, IEEE Transactions on Medical Imaging.

[30]  Dag Stranneby Digital Signal Processing: DSP and Applications , 2001 .

[31]  E. Candès,et al.  Recovering edges in ill-posed inverse problems: optimality of curvelet frames , 2002 .

[32]  Kenneth E. Barner,et al.  Nonlinear Signal and Image Processing: Theory, Methods, and Applications , 2003 .

[33]  A. Ben Hamza,et al.  Removing Noise and Preserving Details with Relaxed Median Filters , 1999, Journal of Mathematical Imaging and Vision.

[34]  Guillermo Sapiro,et al.  Vector Median Filters, Inf-Sup Operations, and Coupled PDE's: Theoretical Connections , 2000, Journal of Mathematical Imaging and Vision.