Dense Segmentation-Aware Descriptors

Eduard Trulls, Iasonas Kokkinos, Alberto Sanfeliu, Francesc Moreno-Noguer

Abstract

In this work we exploit segmentation to construct appearance descriptors that can robustly deal with occlusion and background changes. For this, we downplay measurements coming from areas that are unlikely to belong to the same region as the descriptor's center, as suggested by soft segmentation masks. Our treatment is applicable to any image point, i.e. dense, and its computational overhead is in the order of a few seconds. We integrate this idea with Dense SIFT, and also with Dense Scale and Rotation Invariant Descriptors (SID), delivering descriptors that are densely computable, invariant to scaling and rotation, and robust to background changes. We apply our approach to standard benchmarks on large displacement motion estimation using SIFT-flow and wide-baseline stereo, systematically demonstrating that the introduction of segmentation yields clear improvements.

Introduction

Dense descriptors, computed for every pixel in an image, are fundamental to modern computer vision tasks such as optical flow, 3D reconstruction, and wide-baseline stereo. However, these descriptors frequently fail at object boundaries. A descriptor centered on the edge of a foreground object inevitably incorporates pixels from the background. If the object moves or the background is occluded in subsequent frames, the descriptor's value changes significantly, leading to matching failures.

Traditional solutions often involve complex iterative schemes or brittle binary masks. This paper introduces Segmentation-aware Descriptors, a method to enhance robustness by incorporating soft segmentation masks directly into the descriptor construction process.

Methodology: Soft Segmentation and Affinity Weighting

The core of the proposed approach is a "soft" isolation of the foreground from the background. This is achieved through two main steps:

1. Soft Segmentation Embeddings

Rather than using hard binary masks, the method maps every pixel into a low-dimensional embedding space. The authors explore two variants: "Eigen" embeddings based on Normalized Cut eigenvectors, which offer high quality at a higher computational cost, and "SoftMask" embeddings based on local color models and PCA, which are faster and capture finer granularity.

Visualization of soft segmentation embeddings, mapping pixels into a low-dimensional space to distinguish image regions.

2. Affinity Weighting

For a descriptor centered at a specific point, the "affinity" of each neighboring pixel is calculated based on their distance in the embedding space. Neighbors that are distant in this space are deemed unlikely to belong to the same object and are downweighted.

Affinity weighting applied to a descriptor center; larger red dots indicate higher weights for pixels likely belonging to the same object.

By multiplying standard descriptor measurements (such as gradient orientations in SIFT) by these affinity weights, the resulting Segmentation-aware SIFT (SDSIFT) and Segmentation-aware SID (SSID) effectively "shun" background information.

Experimental Results

The authors evaluated the segmentation-aware descriptors on the Berkeley Motion Dataset (Moseg) and Strecha’s Wide-baseline Stereo Dataset.

  • Motion Estimation: On the Moseg dataset, SSID significantly outperformed standard SID and SIFT-flow baselines, particularly in scenarios involving large displacements between frames.
  • Stereo Accuracy: In wide-baseline stereo tests using the "Fountain" set, SSID achieved accuracy comparable to the state-of-the-art iterative Daisy descriptor. Notably, SSID reached this performance in a single pass, without requiring the iterative refinement steps typically needed for rotation invariance.
  • Efficiency: The "SoftMask" embedding process adds approximately 7 seconds of overhead per image, with the total dense map computation taking roughly 80-90 seconds.

Discussion and Conclusion

The research demonstrates that "soft" weighting is superior to hard binary masks for handling complex shapes and fuzzy boundaries. By suppressing background noise, the resulting features become "sharper" and more distinct in the feature space.

While the method's performance is tied to the quality of the underlying segmentation, the "SoftMask" approach proves robust even for small, high-granularity features. Future work may extend these "aware" descriptors to object detection and classification, where removing background clutter could further improve recognition rates in unconstrained environments.

Summary updated

BibTeX
@inproceedings{trulls2013dense,
  author = {Eduard Trulls and Iasonas Kokkinos and Alberto Sanfeliu and Francesc Moreno-Noguer},
  title = {{Dense Segmentation-Aware Descriptors}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  url = {https://openreview.net/forum?id=Byb9NpZOWS},
}
Figure