Shape Matching by Segmentation Averaging

Hongzhi Wang, John OliensisECCV 2008

Abstract

We use segmentations to match images by shape. To address the unreliability of segmentations, we give a closed form approximation to an average over all segmentations. Our technique has many extensions, yielding new algorithms for tracking, object detection, segmentation, and edge-preserving smoothing. For segmentation, instead of a maximum a posteriori approach, we compute the “central” segmentation minimizing the average distance to all segmentations of an image. Our methods for segmentation and object detection perform competitively, and we also show promising results in tracking and edge–preserving smoothing.

Introduction

Computer vision researchers have long faced a "global/local dilemma" in shape matching. Local features, like edge fragments, are easy to find but lead to a combinatorial explosion of potential matches. Global features, like full contours, are highly distinctive but notoriously difficult to extract reliably; a single shadow or occlusion can break a contour and ruin the match.

Image segmentation—grouping pixels into regions—offers a middle ground, but it has a major flaw: it’s unreliable. Most algorithms try to find the single "best" (Maximum A Posteriori) segmentation, but these often contain "hallucinated" boundaries or miss faint, real ones. This paper asks: instead of betting everything on one potentially flawed segmentation, can we use the statistical average of all possible segmentations to represent an image's shape?

Methods

The proposed framework is based on Segmentation Averaging. The approach rests on three mathematical pillars:

  1. Structure Entropy (SE) and Mutual Information (SMI): A new similarity measure is defined. If two segmentations are superimposed, the resulting "joint segmentation" will have large regions if the boundaries match, leading to low entropy. If the boundaries don't match, the regions are subdivided into many tiny pieces, leading to high entropy.
  2. The Averaging Trick: Computing the average similarity over every possible segmentation is computationally prohibitive. However, the authors demonstrate that a pixel’s contribution to the total entropy is related to the geometric mean of the size of the segment containing it.
  3. Closed-Form Approximation: Since geometric means are difficult to compute, a Taylor expansion is used to approximate them using the arithmetic mean. This arithmetic mean can be calculated directly from a standard pixel-affinity matrix, allowing for the efficient computation of a global shape descriptor without explicit enumeration of segmentations.
Figure 1: Illustration of joint segmentation. Overlapping similar shapes (top) result in larger joint regions compared to dissimilar shapes (bottom), forming the core intuition behind the SMI metric.

Key Insights

  • The "Central" Segmentation: Instead of the most likely segmentation (MAP), the authors propose the "central" segmentation—the one that minimizes the average distance to all other possible segmentations. This is more robust to noise and outliers.
  • Averaging as Regularization: By considering all possible segmentations, the method naturally ignores "hallucinated" boundaries that only appear in a few versions and reinforces boundaries that appear consistently across the distribution.
  • Efficiency via Affinities: Global structural properties can be approximated using only local pixel affinities, turning a complex global problem into a manageable local computation.
Figure 2: A "central" segmentation result for a car image, demonstrating how the method highlights salient structures while suppressing noise.

Results

The method was evaluated on several standard benchmarks:

  • Berkeley Segmentation Dataset (BSDS): The method achieved better region consistency scores (0.629) than Mean-Shift (0.657) and Normalized Cuts (0.699).
  • Object Detection: On UIUC and CalTech datasets, the method achieved an equal error rate of 98.1% on faces and 100% on car rear-views, outperforming several contemporary local-feature-based methods.
  • Tracking: On the PETS 2007 sequence, the shape-based tracker demonstrated near-perfect results, proving resistant to deformations and lighting changes.

Conclusion

This work provides an elegant mathematical bridge between local pixel relationships and global shape structure. By leveraging the "average" view of segmentations, the framework achieves robustness in noisy environments where single-segmentation approaches often fail. Future work includes better texture handling and optimizing computational speed for real-time tracking applications.

Summary updated

BibTeX
@inproceedings{wang2008shape,
  author = {Hongzhi Wang and John Oliensis},
  title = {{Shape Matching by Segmentation Averaging}},
  booktitle = {European Conference on Computer Vision},
  year = {2008},
  url = {https://openreview.net/forum?id=r1NJc9buZS},
}
Figure