Patch Match Filter: Efficient Edge-Aware Filtering Meets Randomized Search for Fast Correspondence Field Estimation

Jiangbo Lu, Hongsheng Yang, Dongbo Min, Minh N. Do

Abstract

This paper introduces the PatchMatch Filter (PMF), a framework that combines the efficiency of randomized search with the accuracy of edge-aware filtering for correspondence field estimation. By operating on superpixels and performing local cost aggregation within subimages, PMF decouples computational complexity from the search range and filter kernel size. The method achieves state-of-the-art performance in stereo matching and optical flow while being significantly faster than exhaustive filtering approaches.

Introduction

Correspondence field estimation, such as stereo matching and optical flow, is a fundamental pixel-labeling problem in computer vision. Historically, researchers faced a trade-off between the high-quality, edge-preserving results of Edge-Aware Filtering (EAF) and the computational efficiency of randomized search methods like PatchMatch. EAF methods are often slow due to exhaustive cost volume searches, while PatchMatch can produce noisy results lacking spatial smoothness.

The PatchMatch Filter (PMF) framework bridges this gap. By weaving together these two techniques, PMF achieves the speed of randomized search without losing the structural integrity provided by edge-aware filtering. It operates on superpixels rather than individual pixels, allowing it to run over 10 times faster than exhaustive filtering methods while maintaining top-tier accuracy.

Methods

The core innovation of PMF is its superpixel-based representation and subimage cost aggregation. The image is first partitioned into superpixels using the SLIC algorithm, which reduces the complexity of the search space.

For each superpixel $S(k)$, the algorithm performs cost aggregation only within a small subimage $R(c_k)$, defined as the bounding box of the superpixel plus a small buffer $r$.

Superpixel-based subimage representation for efficient cost aggregation.

This localized filtering drastically reduces redundant calculations. Labels (such as disparity or motion vectors) are passed between adjacent superpixels through neighborhood propagation. To further improve search efficiency and avoid local optima, the authors introduce "appearance neighbors"—segments that look similar but may be spatially distant—into the search graph. This collaborative search allows the algorithm to find better matches for small objects or large displacements.

Key Results and Insights

PMF was evaluated using the Middlebury benchmarks for stereo and optical flow. The results demonstrate that PMF is remarkably fast and accurate. For optical flow tasks, PMF-OF ran up to 30 times faster than standard cost filtering approaches. In stereo matching, the PMF-S variant excelled at reconstructing slanted surfaces, ranking in the top tier of over 135 algorithms.

Convergence and accuracy analysis of PMF.

A key insight of the work is the decoupling of computational complexity: PMF makes complexity independent of the filter kernel size and only logarithmic relative to the search range. The randomized search converges very quickly, typically requiring only 8 to 10 iterations to reach a stable, high-quality solution. This efficiency makes it a powerful tool for real-time or near-real-time applications.

Conclusion and Future Work

While PMF offers significant advantages in speed and accuracy, its performance is tied to the quality of the initial superpixel segmentation. If a superpixel crosses a depth boundary, the assumption of a shared label may fail. Future research could explore more robust segmentation techniques or apply the PMF framework to other labeling tasks such as image denoising, colorization, or more complex affine motion modeling.

Summary updated

BibTeX
@inproceedings{lu2013patch,
  author = {Jiangbo Lu and Hongsheng Yang and Dongbo Min and Minh N. Do},
  title = {{Patch Match Filter: Efficient Edge-Aware Filtering Meets Randomized Search for Fast Correspondence Field Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  doi = {10.1109/cvpr.2013.242},
}
Figure