Matching Local Self-Similarities across Images and Videos

Eli Shechtman, Michal IraniCVPR 2007

Abstract

This paper introduces a novel "local self-similarity descriptor" (LSS) that identifies objects and actions by analyzing their internal geometric structure rather than their outward appearance, such as color or texture. By matching how an image or video relates to itself locally, the algorithm can successfully detect complex shapes and behaviors across vastly different visual domains. Experimental results demonstrate that this approach significantly outperforms traditional descriptors like SIFT in scenarios involving sketches, heavy texture, and varying lighting conditions.

Introduction: The Challenge of Complex Visual Data

Most computer vision algorithms rely on a fundamental assumption: that two images of the same object will share common visual properties like similar pixel intensities, color distributions, or edge gradients. However, this assumption often breaks down in the real world. A hand-drawn sketch of a person doesn't share colors or textures with a photograph of a person. Similarly, a person performing a ballet jump looks different depending on the clothes they wear or the lighting of the stage.

Figure 1: The LSS descriptor allows for matching a heart shape across diverse visual domains, including rough textures, latte art, graffiti, and schematic diagrams.

The authors tackle the challenge of "complex visual data" where traditional descriptors (like SIFT or Shape Context) fail because the photometric properties are completely different, even though the underlying "shape" or "logic" of the object remains the same. The core insight is that while appearance changes, the internal structural layout—how parts of an object relate to one another—is often invariant.

The Local Self-Similarity (LSS) Descriptor

The core innovation is the Local Self-Similarity (LSS) descriptor. Instead of describing what a pixel looks like, it describes how a small patch relates to its surrounding neighborhood. The process follows a three-step pipeline for both static images and dynamic video sequences.

1. Correlation Surface

For every pixel $q$, the algorithm takes a small patch (e.g., $5 \times 5$) and compares it to a larger surrounding region (e.g., a radius of 40 pixels) using Sum of Square Differences (SSD). This creates a "correlation surface" showing where that specific pattern repeats nearby. This surface captures the local layout of the image without being tied to specific pixel values.

2. Log-Polar Transformation

This surface is transformed into a log-polar coordinate system with 80 bins. This is a critical step: log-polar representations are naturally resistant to small deformations and shifts. This allows the descriptor to remain robust even if the object is slightly warped, viewed from a different angle, or undergoes non-rigid movement.

Figure 2: The technical pipeline for generating LSS descriptors. (a) Image descriptors use a 2D correlation surface and log-polar transformation. (b) Video descriptors extend this into a 3D space-time volume to capture motion patterns.

3. Ensemble Matching and Space-Time Extension

To find an object (a "template") in a larger image, the authors treat the template as a "global ensemble" of these local descriptors, maintaining their relative geometric positions using a probabilistic "star graph" model. For video, the descriptor expands into the third dimension. It compares small 3D "video bricks" against a local space-time volume, allowing it to capture the "rhythm" of an action (like a dance move) regardless of what the actor is wearing or the background of the scene.

Experimental Evaluation

The authors evaluated their method on several challenging tasks, focusing on scenarios where appearance-based matching typically fails.

  • Object Detection: Matching templates (flowers, hearts, peace symbols) across images with vastly different textures and cluttered backgrounds. In a test of over 60 challenging image pairs, the LSS method correctly detected the target object in 86% of cases. In contrast, standard methods like SIFT and Shape Context failed in the majority of these same cases.
  • Sketch-based Retrieval: Using a database of 72 images of humans in complex poses, the system successfully retrieved matching photos using only 8 rough hand-sketches. This demonstrates the descriptor's ability to bridge the gap between abstract representations and real-world imagery.
  • Action Detection: In video tests involving ballet performers and ice skaters, the LSS descriptor eliminated "missed detections" and "false alarms" that plagued previous methods. It proved particularly effective at handling "temporal aliasing"—fast movements that appear blurry or disjointed between frames.

Key Insights and Limitations

The "aha moment" of this research is that internal self-similarity is often more invariant than appearance. A textured region in one image can match a uniformly colored region in another, provided they share the same spatial layout relative to the rest of the object. Furthermore, because the method measures self-similarity locally, it avoids the "curse of dimensionality" and remains resistant to background clutter.

One of the most significant advantages is that the method requires no learning. Unlike modern deep learning approaches that require thousands of labeled examples, this method can detect a complex action in a video using only a single example clip, without any prior training or foreground segmentation.

However, some limitations remain. Densely computing these descriptors across every pixel or frame is computationally expensive compared to sparse feature detectors. Additionally, while the authors use an image pyramid to handle scale, the descriptor itself has a fixed radius, which may struggle with extreme scale changes. Finally, the method relies on the object having some internal "texture" or "structure"; a perfectly featureless, solid-colored object might not generate a distinctive enough self-similarity map for reliable matching.

Summary updated

BibTeX
@inproceedings{shechtman2007matching,
  author = {Eli Shechtman and Michal Irani},
  title = {{Matching Local Self-Similarities across Images and Videos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2007},
  doi = {10.1109/cvpr.2007.383198},
}
Figure