From partial shape matching through local deformation to robust global shape similarity for object detection

Tianyang Ma, Longin Jan LateckiCVPR 2011

Abstract

This paper presents a robust framework for object detection that moves beyond simple bounding boxes to provide precise contour localization. By combining a novel shape descriptor with graph-based grouping and local affine transformations, the authors tackle the "messiness" of real-world edge detection. The framework detects objects by matching partial edge fragments to a model contour and grouping them using maximum clique inference. A key innovation is a local affine-transformation scheme that allows the model to "deform" to fit the image, enabling the system to handle non-rigid shapes and fill in missing edge data with high precision.

Introduction

Contour-based object detection is powerful because silhouettes are invariant to lighting and color. However, edge detectors are often imperfect in real-world scenarios. Edge fragments can be missing due to low contrast, broken into disconnected pieces, or wrongly connected to background elements. Most existing methods treat edge fragments as "nonseparable building blocks," meaning if a fragment is partially wrong, the whole detection suffers.

Overview of the detection process: from raw image (a) and noisy edge fragments (b, c) to precise contour localization (d).

This research proposes a method for partial matching, where only the "good" parts of an edge fragment are used, and the global shape is reconstructed through a flexible, non-rigid deformation process. This approach allows the system to be much more robust to background clutter and "hallucinated" edges.

Methodology

The framework consists of three main pillars designed to handle the variability of real-world shapes:

1. Non-Histogram Shape Descriptor

Unlike the classic "Shape Context" which bins points into histograms, this method uses raw pairwise distances (in log space) and orientations between points. This preserves more geometric detail. The authors use integral images to efficiently search for the best-matching sub-segments between the image and the model in a 4D tensor space.

The non-histogram shape descriptor uses pairwise distances (D) and orientations (Θ) to capture geometric detail.

2. Maximum Clique Grouping

To find the best set of partial matches that belong to the same object, the authors construct a weighted graph. Each node is a potential partial match, and edges between nodes represent how "compatible" those matches are with each other. Finding the object then becomes a Maximum Clique problem—searching for the largest subset of nodes that are all highly compatible. This is solved using a quadratic programming approach, ensuring that every part of the detection is mutually consistent.

3. Local Affine Deformation

Once a set of fragments is grouped, the system scores the detection. Since parts of the object might be missing in the image, the authors estimate local affine transformations. They use the matched parts to "warp" the missing parts of the model contour onto the image. This allows the system to "complete" the object and calculate a global similarity score that accounts for non-rigid movement, such as a swan moving its neck.

Experimental Evaluation

The authors evaluated their method on the ETHZ Shape Classes dataset, which contains 255 images across five categories: bottles, swans, mugs, giraffes, and apple-logos. This dataset is characterized by significant inner-class variation, scale changes, and cluttered backgrounds.

Key Results

  • State-of-the-Art Accuracy: The method achieved a mean Average Precision (AP) of 0.877 on the ETHZ dataset, significantly outperforming contemporary benchmarks like the Deformable Part Model (DPM).
  • Localization Precision: In tests of boundary localization, this method outperformed the classic Ferrari et al. approach in almost every category. For example, in the "Apple-logos" category, it achieved a coverage/precision score of 0.923/0.948.
  • Robustness to Clutter: Qualitative results demonstrate the model's ability to ignore distracting background edges that typically confuse more rigid matching algorithms.

Conclusion

By allowing for sub-fragment matching and moving beyond simple Hough voting, this framework provides a robust solution to the challenges of real-world contour detection. The approximation of global non-rigid transformations via local affine transforms is a key insight that enables the model to "fill in the blanks" where edge detectors fail. While the current focus is on outer silhouettes and computational complexity remains a challenge, the high precision in localization marks a significant step forward in shape-based object detection.

Summary updated

BibTeX
@inproceedings{ma2011from,
  author = {Tianyang Ma and Longin Jan Latecki},
  title = {{From partial shape matching through local deformation to robust global shape similarity for object detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2011},
  doi = {10.1109/cvpr.2011.5995591},
}
Figure