SuperPatchMatch: An Algorithm for Robust Correspondences Using Superpixel Patches

Rémi Giraud, Vinh-Thong Ta, Aurélie Bugeau, Pierrick Coupé, Nicolas Papadakis

Abstract

Superpixels have become very popular in many computer vision applications. Nevertheless, they remain underexploited since the superpixel decomposition may produce irregular and non-stable segmentation results due to the dependency to the image content. In this paper, we first introduce a novel structure, a superpixel-based patch, called SuperPatch. The proposed structure, based on superpixel neighborhood, leads to a robust descriptor since spatial information is naturally included. The generalization of the PatchMatch method to SuperPatches, named SuperPatchMatch, is introduced. Finally, we propose a framework to perform fast segmentation and labeling from an image database, and demonstrate the potential of our approach since we outperform, in terms of computational cost and accuracy, the results of state-of-the-art methods on both face labeling and medical image segmentation.

Introduction

Finding correspondences—matching similar regions between two images—is a cornerstone of computer vision tasks like image editing, labeling, and medical diagnosis. Standard approaches usually fall into two camps: pixel-based patches and superpixels. While pixel-based patches are robust, they are computationally expensive. Conversely, superpixels reduce the number of elements to process but are "unstable" because their shapes change based on image content, making them difficult to match reliably across different images.

SuperPatchMatch (SPM) addresses this by bringing the efficiency of the famous PatchMatch algorithm to the irregular world of superpixels. By grouping neighboring superpixels into "SuperPatches," the authors create a robust descriptor that captures spatial relationships, overcoming the inherent instability of individual superpixels.

The SuperPatch and SuperPatchMatch Algorithm

The authors introduce two key innovations to bridge the gap between efficiency and robustness:

1. The SuperPatch Structure

Instead of matching a single superpixel, a SuperPatch is defined as a central superpixel plus all its neighbors within a fixed radius $R$. This structure naturally includes spatial and geometric information, making the descriptor much more robust to the irregular nature of superpixel boundaries. While a single superpixel is unstable, the relative positions of its neighbors are much more consistent.

2. The SuperPatchMatch (SPM) Algorithm

SPM generalizes the PatchMatch algorithm to work on these irregular structures. PatchMatch traditionally relies on a regular grid to propagate good matches. SPM adapts this through three steps:

  • Initialization: Randomly assign matches from a library.
  • Propagation: If a neighbor has a good match, SPM looks for a corresponding neighbor in the target image. Since there is no grid, it uses relative orientation (angles) between superpixel barycenters to find the best candidate.
  • Random Search: It samples potential matches in increasingly smaller windows around the current best match to escape local minima.
Overview of the SuperPatchMatch algorithm steps: (a-b) source and target images, (c) random initialization, (e) warped target, (f-g) propagation and search results, (h) displacement field legend.

Experimental Results

The algorithm was evaluated on two distinct and challenging benchmarks: Labeled Faces in the Wild (LFW) for face labeling and BRATS for brain tumor segmentation in multi-modal MRI scans.

Face Labeling (LFW)

SPM achieved a pixel accuracy of 95.43%, outperforming DCNN architectures (95.24%) and other CRF-based methods. Crucially, SPM is incredibly efficient, processing a subject in just 0.255 seconds, which is significantly faster than standard PatchMatch (3.94s).

Medical Segmentation (BRATS)

On the BRATS dataset, the SuperPatch approach significantly outperformed both standard pixel-patches and single-superpixel methods. For simulated high-grade tumors, it achieved a 90.75% Dice coefficient, compared to only 69.11% for pixel-based patches.

Application of SuperPatchMatch to medical imaging (MRI): (a) source scan, (b) target scan, (c) correspondence mapping with highlighted matches, (d) superpixel decomposition.

Conclusion

SuperPatchMatch demonstrates that geometry matters: by matching neighborhoods rather than individual irregular regions, the algorithm achieves state-of-the-art accuracy without the need for intensive training phases required by Deep Convolutional Neural Networks (DCNNs). While the method's accuracy is currently capped by the quality of the initial superpixel decomposition, future work integrating more sophisticated descriptors could further boost performance. SPM offers a promising path for real-time applications like optical flow initialization, saliency detection, and style transfer.

Summary updated

BibTeX
@article{giraud2017superpatchmatch,
  author = {Rémi Giraud and Vinh-Thong Ta and Aurélie Bugeau and Pierrick Coupé and Nicolas Papadakis},
  title = {{SuperPatchMatch: An Algorithm for Robust Correspondences Using Superpixel Patches}},
  journal = {IEEE Trans. Image Process.},
  year = {2017},
  url = {https://openreview.net/forum?id=K7oOm70qBy},
}
Figure