Robust Guided Image Filtering

Wei Liu, Xiaogang Chen, Chunhua Shen, Jingyi Yu, Qiang Wu, Jie YangarXiv 2017

Abstract

Guided Image Filtering (GIF) is essential for transferring structural information from a guidance image to a target image. However, traditional methods often fail when guidance and target structures are inconsistent or when the target image is heavily degraded by noise. We present Robust Guided Image Filtering (RGIF), a generalized optimization framework that addresses these challenges. By employing a novel robust exponential error norm and an iterative re-weighted least squares (IRLS) solver, RGIF effectively suppresses texture-copy artifacts and preserves sharp edges even under extreme noise conditions. Our results demonstrate state-of-the-art performance in tasks such as high-ratio depth map upsampling and artifact-free HDR tone mapping.

Introduction

Guided Image Filtering is a fundamental tool in computer vision, used to enhance low-quality target images (e.g., noisy depth maps) using high-quality guidance images (e.g., sharp RGB photos). The efficacy of traditional filters, such as the Guided Filter or Joint Bilateral Filter, hinges on the assumption of structural alignment between the two images.

In practice, this assumption is frequently violated, leading to "structure inconsistency." This manifests as two primary artifacts:

  1. Texture Copying: High-frequency textures from the guidance image are erroneously transferred to smooth regions in the target.
  2. Edge Blurring: Sharp boundaries in the target are smoothed if the corresponding guidance region is flat.

Furthermore, target images from sensors like Time-of-Flight (ToF) cameras often contain significant noise, which standard filters cannot remove without compromising structural detail.

The Robust Guided Image Filtering (RGIF) Framework

To overcome these limitations, we propose a global optimization approach. Unlike local filters, RGIF minimizes a cost function designed for robustness and structural fidelity.

Robust Objective Function

The core of RGIF is a data term utilizing an exponential error norm, akin to the Welsch M-estimator. This norm is significantly more robust to outliers and heavy noise than the standard $L_2$ quadratic penalty. It allows the framework to perform joint denoising and guided filtering, preventing the "double-blurring" effect common in sequential pipelines.

The smoothness term incorporates weights derived from both the guidance and the target images. This dual-weighting scheme enables the filter to intelligently ignore guidance edges that do not correspond to actual structures in the target image.

Figure 1: Comparison of filtering results. The top row shows texture smoothing where RGIF (f) effectively removes patterns while preserving the base structure. The bottom row demonstrates edge preservation in the presence of guidance-target inconsistency.

Iterative Optimization via IRLS

The non-convex nature of the robust error norm necessitates an iterative solution. We employ Iteratively Re-weighted Least Squares (IRLS). In each step, the problem is solved as a linear system using a Preconditioned Conjugate Gradient (PCG) solver. As the process iterates, the intermediate filtered image provides increasingly accurate weights for subsequent refinements, allowing the true underlying structure to emerge from the noise.

Figure 4: Convergence analysis showing the Mean Absolute Error (MAE) decreasing over iteration numbers for various sensitivity parameters (alpha). The iterative approach ensures stable convergence to a high-quality result.

Experimental Results

RGIF was evaluated across diverse tasks, including depth map upsampling (up to 16×), flash/no-flash photography, and HDR tone mapping.

Depth Upsampling and Denoising

In 16× upsampling benchmarks, RGIF significantly outperformed standard Guided Filters and Color-Guided Autoregressive models. By treating noise as outliers through the robust norm, the method maintains sharp depth boundaries while achieving superior noise suppression.

Structure-Texture Separation

The framework excels at distinguishing between meaningful geometric structures and repetitive surface textures. This capability is crucial for applications like detail enhancement and artifact removal in compressed images.

HDR Tone Mapping

Qualitative assessments in HDR tone mapping reveal that RGIF effectively eliminates common artifacts such as halos and gradient reversals. By respecting the target image's own gradients, it ensures that edge enhancement remains natural and artifact-free.

Conclusion and Future Work

Robust Guided Image Filtering provides a powerful solution to the long-standing problem of structure inconsistency in guided filtering. Its iterative, optimization-based approach offers a principled way to handle heavy noise and mismatched guidance information.

A current limitation is the suppression of fine details that appear only in the guidance image; because the filter prioritizes consistency, it may treat such details as noise. Future research will explore the integration of more sophisticated priors to selectively "hallucinate" missing information when appropriate, further pushing the boundaries of image restoration and enhancement.

Summary updated

BibTeX
@misc{liu2017robust,
  author = {Wei Liu and Xiaogang Chen and Chunhua Shen and Jingyi Yu and Qiang Wu and Jie Yang},
  title = {{Robust Guided Image Filtering}},
  year = {2017},
  eprint = {1703.09379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.09379},
}
Figure