Learning Adaptive Parameter Tuning for Image Processing

Jingming Dong, Iuri Frosio, Jan Kautz

Abstract

The non-stationary nature of image characteristics calls for adaptive processing, based on the local image content. We propose a simple and flexible method to learn local tuning of parameters in adaptive image processing: we extract simple local features from an image and learn the relation between these features and the optimal filtering parameters. Learning is performed by optimizing a user defined cost function (any image quality metric) on a training set. We apply our method to three classical problems (denoising, demosaicing and deblurring) and we show the effectiveness of the learned parameter modulation strategies. We also show that these strategies are consistent with theoretical results from the literature.

Introduction

Most image processing algorithms—such as those for denoising or sharpening—rely on global parameters. However, images are inherently non-stationary; a single global setting often fails to account for varying local content. For instance, a parameter set optimized for a smooth sky might inadvertently blur fine textures like brick walls. While adaptive algorithms exist, they typically rely on hand-crafted heuristics or complex, task-specific statistical models. This paper addresses the need for a simple, general-purpose learning framework capable of teaching any existing algorithm to adjust its parameters pixel-by-pixel based on local features.

Methodology

The proposed framework follows a three-step pipeline:

  1. Feature Extraction: A vector of simple local features (e.g., variance, entropy, and gradient entropy at multiple scales) is extracted for every pixel.
  2. Parametric Mapping: A logistic function maps these features to the algorithm's parameters, ensuring they remain within a predefined "safe" range. The model uses a quadratic combination of features to capture complex interactions.
  3. Derivative-Free Optimization: The model is trained using the Nelder-Mead simplex method. This "black-box" approach is essential for optimizing non-differentiable image quality metrics like MS-SSIM or iterative algorithms like Total Variation (TV) deblurring.

The framework was evaluated on three tasks: Approximate Non-Local Means (ANLM) denoising, adaptive blending of demosaicing algorithms (ARI, ECC, and CS), and TV deblurring under Poisson noise.

Results and Discussion

The adaptive approach demonstrated significant improvements across all tested applications. In denoising, the adaptive ANLM (aANLM) achieved a 0.5 dB gain in PSNR over global settings. More importantly, the model's behavior varied significantly based on the optimization metric.

Comparison of denoising results: (a) Original, (b) Ground truth, (c) Noisy, (d) Global ANLM, (e) Global ANLM optimized for PSNR, (f) Adaptive ANLM optimized for PSNR, (g) Adaptive ANLM optimized for MS-SSIM.

As shown in the figure above, optimizing for PSNR tends to favor larger patches in smooth areas to maximize noise reduction. Conversely, optimizing for MS-SSIM prioritizes contrast and edge preservation, which is more aligned with human perception, even if some residual noise remains. Interestingly, the learned model automatically "discovered" theoretical principles, such as decreasing patch sizes near edges to minimize blurring bias.

In demosaicing, the adaptive mixture (aMix) outperformed the best standalone method by 0.96 dB on average. The model learned to selectively favor different algorithms based on local image characteristics (e.g., edges vs. flat regions). In deblurring, while PSNR gains were modest, qualitative improvements were evident in the sharper reconstruction of fine textures and text.

Conclusion

This framework provides a robust method for local parameter tuning without requiring task-specific heuristics. While it introduces some computational overhead due to pixel-wise feature extraction, the gains in image quality and the ability to optimize for diverse metrics make it a powerful tool. Future work may explore more complex features or deep learning-based feature extraction to further enhance performance and scalability.

Summary updated

Abstract

The non-stationary nature of image characteristics calls for adaptive processing, based on the local image content. We propose a simple and flexible method to learn local tuning of parameters in adaptive image processing: we extract simple local features from an image and learn the relation between these features and the optimal filtering parameters. Learning is performed by optimizing a user defined cost function (any image quality metric) on a training set. We apply our method to three classical problems (denoising, demosaicing and deblurring) and we show the effectiveness of the learned parameter modulation strategies. We also show that these strategies are consistent with theoretical results from the literature.
BibTeX
@inproceedings{dong2018learning,
  author = {Jingming Dong and Iuri Frosio and Jan Kautz},
  title = {{Learning Adaptive Parameter Tuning for Image Processing}},
  booktitle = {Image Processing: Algorithms and Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=mzlpgCuzNey},
}
Figure