Joint Recovery of Dense Correspondence and Cosegmentation in Two Images

Tatsunori Taniai, Sudipta N. Sinha, Yoichi Sato

Introduction

In computer vision, identifying common objects across images (cosegmentation) and establishing pixel-level mappings between them (dense correspondence) are fundamental tasks. Traditionally, these problems are treated in isolation. Cosegmentation focuses on extracting foreground masks, while dense correspondence aims to find a flow field that aligns two images. However, these tasks are intrinsically linked: a valid correspondence field should only exist between common foreground objects, and a successful segmentation should be supported by geometric consistency in the matching.

This paper proposes a unified framework that treats cosegmentation and dense correspondence as a joint optimization problem. By leveraging the mutual constraints between these two tasks, the authors demonstrate that knowing what to match is as critical as knowing how to match it, particularly when dealing with different instances of the same object category under varying poses and lighting conditions.

Methodology: Hierarchical MRF and Dynamic Recovery

The core of the proposed approach is a Hierarchical Markov Random Field (MRF) model. Unlike standard pixel-grid MRFs, this model operates on a hierarchy of nested image regions (superpixels).

Joint Labeling

Each node in the hierarchical graph is assigned a dual label:

  1. Segmentation Label: A binary indicator for foreground vs. background.
  2. Transformation Label: A similarity transform (encompassing translation, rotation, and scale) that maps the region to its corresponding location in the other image.

Dynamic Hierarchy

A significant innovation is the use of a dynamic hierarchy. While most hierarchical models rely on a fixed, pre-computed structure, this framework recovers the hierarchy iteratively. The algorithm merges regions that exhibit similar transformations and segmentation labels, allowing the graph structure to adapt to the specific objects present in the scene.

Two-Pass Optimization

To handle the massive search space of 5-degree-of-freedom transformations, the authors employ a two-pass optimization strategy:

  • Bottom-Up Pass: Builds the initial hierarchy and estimates coarse labels.
  • Top-Down Pass: Refines pixel-level details and ensures boundary accuracy. The optimization is made tractable through "local expansion moves," which utilize iterated graph cuts to efficiently explore the label space.
Figure 6: Qualitative results showing the joint recovery of dense correspondence (flow maps) and cosegmentation masks for two different car instances.

Evaluation and Results

To evaluate this joint task, the authors introduced a new benchmark dataset comprising 400 image pairs with manually annotated ground truth for both segmentation and flow. This dataset includes subsets from FG3DCar, JODS, and PASCAL, representing one of the first major efforts to provide ground truth for "semantic" matching between different object instances.

Performance Metrics

The proposed method achieved state-of-the-art results across both tasks:

  • Correspondence: On the FG3DCar dataset, the method reached a flow accuracy of 82.9%, significantly outperforming SIFT Flow (63.4%) and DSP (48.7%).
  • Cosegmentation: The method achieved an intersection-over-union (SAcc) score of 0.756 on FG3DCar, surpassing specialized cosegmentation algorithms like the method by Faktor & Irani (0.689).

The framework proved particularly robust in scenarios with large appearance variations, such as matching vehicles of different colors or types, where traditional feature-matching techniques often fail due to background clutter.

Discussion and Key Insights

The success of the joint framework stems from several key insights:

  • Mutual Constraints: By enforcing that the flow field is only valid on the foreground, the model effectively masks out background noise that typically plagues traditional dense correspondence algorithms.
  • Piecewise Similarity: Modeling flow as piecewise similarity transforms allows the method to handle complex changes in object pose and scale more effectively than simple 2D translation models.
  • Iterative Discovery: Allowing the graph structure to evolve alongside the labels enables the model to "discover" object parts and boundaries more accurately than static grouping methods.

Limitations and Future Work

While powerful, the current implementation is computationally intensive, requiring approximately 7 minutes to process a single image pair. Future research could focus on optimizing the algorithm for real-time performance or extending the framework to "multi-image" cosegmentation across larger image sets. Additionally, incorporating category-specific priors (e.g., "car" vs. "airplane") could further enhance the accuracy of initial models in an unsupervised setting.

Summary updated

BibTeX
@inproceedings{taniai2016joint,
  author = {Tatsunori Taniai and Sudipta N. Sinha and Yoichi Sato},
  title = {{Joint Recovery of Dense Correspondence and Cosegmentation in Two Images}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  doi = {10.1109/cvpr.2016.460},
}
Figure