The Domain Transform Solver

Akash Bapat, Jan-Michael FrahmCVPR 2019

Abstract

The Domain Transform Solver (DTS) is a novel framework for edge-aware optimization that achieves an order-of-magnitude speedup over current state-of-the-art methods like the Fast Bilateral Solver. By leveraging a distance-preserving 1D mapping of the input space, the authors provide a highly parallelizable algorithm that scales linearly with image resolution and remains independent of blur kernel sizes.

Introduction

Edge-aware optimization is a fundamental component in computer vision, essential for tasks such as depth map refinement, colorization, and semantic segmentation. The primary objective is to smooth noise within regions while preserving sharp boundaries between different objects or segments. Traditionally, this has been achieved using Bilateral Filters or Conditional Random Fields (CRFs). However, these methods are often computationally intensive due to their operation in high-dimensional spaces (combining color and spatial coordinates).

Problem Statement

Existing "fast" solvers frequently rely on spatial quantization techniques like gridding or tiling. While these approaches reduce complexity, they often struggle with high-resolution images because their computational overhead grows with the size of the blur kernel or the dimensionality of the data. Furthermore, these methods can introduce artifacts due to the quantization of the 5D bilateral space. The authors of the Domain Transform Solver sought a method to perform these optimizations directly in pixel space, avoiding complex data structures and maintaining efficiency regardless of the smoothing parameters.

Comparison of a noisy depth map and the 16x upsampled smooth result produced by the solver.

Methodology

The core innovation of this work is the integration of the Domain Transform (DT) into an iterative optimization framework.

  1. 1D Mapping: The Domain Transform defines a mapping that transforms a multi-dimensional image into a 1D space. This mapping preserves distances between pixels based on both their color similarity and spatial proximity.
  2. Iterative Solver: The authors formulate a weighted least squares objective function, which is solved by repeatedly applying the Domain Transform in alternating horizontal and vertical passes.
  3. L2 Norm Derivation: Unlike the original Domain Transform which utilized an L1 norm, this paper derives a version using the L2 norm. This adaptation is shown to provide higher accuracy for optimization tasks.
  4. Linear Complexity: The algorithm’s complexity is $O(Nd)$, where $N$ is the number of pixels and $d$ is the dimensionality. Crucially, the runtime is independent of the "blur" or "smoothness" parameters, ensuring predictable performance even for highly smoothed results.

Experimental Evaluation

The solver was evaluated across several standard benchmarks:

  • Middlebury Dataset: Used for stereo matching, depth map refinement, and synthetic defocus evaluation.
  • Ferstl et al. Dataset: Used for depth super-resolution tasks.
  • Custom High-Resolution Dataset: To demonstrate performance on modern hardware, the authors used 24-megapixel (6000x4000) images captured with a Nikon D5300.

Key Results

The Domain Transform Solver demonstrates significant improvements in both speed and versatility:

  • Speed: DTS is 12x faster than the Fast Bilateral Solver (FBS) for depth super-resolution and 2x faster than the Hardware-Friendly Bilateral Solver (HFBS).
  • Accuracy: On the Middlebury stereo benchmark, DTS achieved competitive accuracy compared to FBS while maintaining a much higher processing speed.
  • High-Resolution Efficiency: The solver processes high-resolution imagery (e.g., 4500x2945 px) at approximately 0.0098 seconds per megapixel.
  • Versatility: The framework successfully addresses diverse problems, including stereo matching, depth upsampling, colorization, and synthetic defocus.
Visual results of the Domain Transform Solver across various tasks: (a) colorization, (b) depth upsampling, and (c-e) stereo depth refinement.

Conclusion and Future Work

The Domain Transform Solver provides a highly efficient, parallelizable solution for edge-aware optimization. Its linear scalability and kernel independence make it ideal for real-time applications on consumer hardware. Future research directions include exploring more advanced optimization techniques like Conjugate Gradient Descent to reduce iteration counts and extending the framework to multi-GPU configurations for massive datasets such as satellite imagery.

Summary updated

BibTeX
@inproceedings{bapat2019domain,
  author = {Akash Bapat and Jan-Michael Frahm},
  title = {{The Domain Transform Solver}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00617},
}
Figure