Probabilistic Non-Local Means

Yue Wu, Brian Tracey, Premkumar Natarajan, Joseph P. Noonan

TL;DR

This paper introduces a novel "Probabilistic Non-Local Means" (PNLM) algorithm for image denoising. By deriving the theoretical statistics of patch differences under Gaussian noise and formulating probabilistic weights, PNLM offers a more principled approach to image denoising that outperforms traditional Non-Local Means (NLM) and its variants in terms of image quality metrics like PSNR and SSIM.

What Problem Does This Paper Address?

Image denoising is a crucial step in many image processing pipelines, aiming to remove unwanted noise while preserving important image details. The Non-Local Means (NLM) algorithm, introduced by Buades et al., is a popular and effective method that leverages the redundancy of information in images by averaging similar patches. However, the original NLM algorithm uses a weight function that, while intuitive, has been observed to assign non-zero weights to dissimilar patches, leading to suboptimal denoising performance. The authors identify this as a key limitation and aim to address it by developing a more theoretically grounded weighting scheme that better reflects true patch similarity.

Methods

The core contribution of this paper is the development of a Probabilistic Non-Local Means (PNLM) framework. Instead of the exponential weighting function used in classic NLM, PNLM utilizes a weight function derived from the theoretical probability density function (p.d.f.) of patch differences.

Here's a breakdown of the key methodological steps:

  • Identifying NLM Weight Function Defects: The authors analyze the standard NLM weight function, $w_{i,k} = \exp(-D_{i,k}/h')$, where $D_{i,k}$ is the squared difference between two patches. They highlight that this function can assign significant weights to dissimilar patches, especially when patch differences are far from their expected values, leading to "weight errors."
  • Deriving Theoretical Patch Difference Statistics: A major theoretical contribution is the derivation of the probability distribution of patch differences under Gaussian noise. They first consider the case of perfectly matching clean patches and then extend it to account for overlapping patches, which leads to a correlated chi-squared distribution. This distribution is approximated by a scaled and shifted chi-squared distribution, $D_{i,k} \sim \gamma_k \chi_{\eta_k}^2$.
  • Formulating Probabilistic Weights: The derived p.d.f. of patch differences, $f_{i,k}(D)$, is then used to define the new probabilistic weights: $w_{i,k} = f_{i,k}(D_{i,k}/\rho^2)$. This formulation interprets the weight as the probability of observing a particular patch difference given that the patches are similar. The parameter $\rho^2$ is introduced to account for the ratio of true to estimated noise variance.
  • Adapting for Practical Use: The paper also discusses how to estimate the parameters of the p.d.f. and proposes a more robust "Center Pixel Weight" (CPW) for the case where a patch is compared to itself.

Datasets

The paper does not introduce new datasets. Instead, it uses standard benchmark images for evaluation, including:

  • Checkerboard
  • Lenna
  • House
  • Cameraman

These images are corrupted with synthetic Gaussian noise at various noise levels ($\sigma$) for testing.

Key Insights and Ideas

  • The inadequacy of NLM's exponential weighting: The paper provides a strong theoretical and visual argument for why the standard NLM weight function is problematic, showing it can assign undue importance to dissimilar patches.
  • Theoretical grounding for patch similarity: By deriving the p.d.f. of patch differences, the authors establish a principled, probabilistic framework for quantifying patch similarity, moving beyond heuristic weighting schemes.
  • Connecting denoising to noise statistics: The PNLM framework explicitly connects the denoising process to the underlying noise statistics, suggesting potential for adapting to different noise types.
  • Improved performance through probabilistic weights: Replacing NLM's weights with the derived probabilistic weights leads to significant improvements in denoising quality, as demonstrated by quantitative metrics.
  • Potential for computational speed-up: The probabilistic framework naturally provides a criterion for rejecting dissimilar patches early, which can be used to accelerate denoising algorithms.

Key Results

The paper demonstrates the effectiveness of the PNLM framework through extensive simulations:

  • Quantitative Improvements: PNLM consistently outperforms the classic NLM algorithm and other NLM variants (NLEM, JSNLM) in terms of average Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index Measure (SSIM) across various noise levels and image datasets. For example, in Table II, PNLM shows higher PSNR and SSIM scores compared to NLM for all tested noise levels on the "checker" image.
  • Performance of Variants: Replacing the standard NLM weights with the proposed probabilistic weights in other NLM variants (NLEM and JSNLM) also leads to improved performance, highlighting the general applicability of the probabilistic weighting scheme.
  • Accuracy of Theoretical p.d.f.: Figure 2 and Table I show that the derived theoretical p.d.f.s closely approximate the estimated p.d.f.s from simulations, validating the theoretical derivations. The P-values from goodness-of-fit tests are generally above 5%, indicating satisfactory predictions.
  • Visual Denoising Quality: Figure 3 provides visual examples of denoising results, showing that PNLM produces cleaner images with better preservation of details compared to NLM and other methods.

Limitations and Future Work

  • Assumptions: The derivation of patch difference statistics relies on the assumption of Gaussian noise. While the paper suggests that the framework can be extended to other noise types by replacing the p.d.f., this remains a direction for future work.
  • Computational Cost: While the probabilistic framework offers potential for speed-up through early rejection, the core computation of probabilistic weights might still be intensive. The paper mentions fast NLM implementations as a related area of research.
  • Parameter Tuning: The paper discusses the parameter $\rho^2$ and its relation to noise variance estimation. Further research into robust and automatic estimation of these parameters could be beneficial.
  • Extension to other noise types: The authors explicitly state that the framework can be extended to handle non-i.i.d. noises and changing variances by adapting the p.d.f. $f_{i,k}$.
  • Application to other algorithms: The paper suggests that the probabilistic thresholds derived from $f_{i,k}$ can be used in other contexts, such as for patch rejection in algorithms like BM3D, offering a theoretically-based alternative to empirical thresholds.

Summary updated

Abstract

In this paper, we propose a so-called probabilistic non-local means (PNLM) method for image denoising. Our main contributions are: 1) we point out defects of the weight function used in the classic NLM; 2) we successfully derive all theoretical statistics of patch-wise differences for Gaussian noise; and 3) we employ this prior information and formulate the probabilistic weights truly reflecting the similarity between two noisy patches. The probabilistic nature of the new weight function also provides a theoretical basis to choose thresholds rejecting dissimilar patches for fast computations. Our simulation results indicate the PNLM outperforms the classic NLM and many NLM recent variants in terms of peak signal noise ratio (PSNR) and structural similarity (SSIM) index. Encouraging improvements are also found when we replace the NLM weights with the probabilistic weights in tested NLM variants.
BibTeX
@article{wu2013probabilistic,
  author = {Yue Wu and Brian Tracey and Premkumar Natarajan and Joseph P. Noonan},
  title = {{Probabilistic Non-Local Means}},
  journal = {IEEE Signal Processing Letters},
  year = {2013},
  doi = {10.1109/lsp.2013.2263135},
}
Figure