A New Content Based Image Retrieval Method Based on a Sketch-Driven Interpretation of Line Segments

Marco Anelli, Alessandro Micarelli, Enver Sangineto

Abstract

We present a new method for image retrieval by shape similarity able to deal with real images with non-uniform backgrounds and possible touching or occluding objects. First, we perform a sketch-driven segmentation of the scene by means of a Deformation Tolerant version of the Generalized Hough Transform (DTGHT). Using the DTGHT, we select candidate segments in the image to be matched with the user sketch. These candidate segments are then matched with the sketch to check the consistency of the corresponding shapes.

Introduction

Content-Based Image Retrieval (CBIR) is the challenge of finding specific images in a database based on visual content rather than metadata. While many systems perform well under controlled conditions—where objects are centered and backgrounds are clean—they often fail in real-world environments. This research addresses three major hurdles: non-uniform backgrounds that create noise, partial occlusion of objects, and the heavy manual labor typically required to segment objects before indexing. Our goal is to create a system that can take a rough user sketch and find matching shapes in a database of raw, unsegmented web images.

Methodology

The proposed system utilizes a multi-stage pipeline that transitions from raw pixels to high-level shape verification:

  • Pre-processing & Salience Filtering: Standard Canny edge detection is enhanced with a "salience filter" that identifies and removes dense, highly textured areas (e.g., grass or fabric patterns) to reduce background noise.
  • Segment Building: Following Gestalt principles of continuity, individual edge pixels are grouped into continuous lines or curves. This approach prioritizes continuous structures over scattered points, mimicking human perception.
  • Deformation Tolerant Generalized Hough Transform (DTGHT): To locate objects, the system uses an evolved Hough Transform with a "voting window" and a "spreading phase." This allows for successful retrieval even if the user's sketch is imprecise or the object in the image is slightly deformed.
  • Verification Phase: This critical step involves two tests. The Justification Test checks if a sufficient portion of the sketch aligns with image segments. The Inhibitory Test identifies segments that contradict the sketch (e.g., correct location but wrong orientation), effectively reducing false positives.

Experimental Setup

The system was evaluated using a dataset of 283 images harvested from the web. This included 10 target categories—such as cars, horses, guitars, and pistols—alongside miscellaneous distractor images like landscapes and airplanes to test the system's ability to ignore irrelevant data.

Results and Discussion

The system was tested by three different users, including those unfamiliar with the database. The overall performance yielded an average precision of 0.80 and an average recall of 0.62.

Table 1: Precision and recall metrics for various object categories across three test users.

As shown in Table 1, performance varied significantly by object type. Categories with distinct, bold outlines like Pistols and Guitars achieved high precision (0.93 and 0.85, respectively). Conversely, Watches proved difficult to retrieve (0.54 precision, 0.18 recall) due to their small size and intricate internal details which are often lost during salience filtering.

Key insights from the results include the importance of edge orientation in the verification phase and the effectiveness of "inhibitory segments" in filtering out false matches. By treating the image as a collection of segments rather than isolated pixels, the system successfully bridges the gap between low-level features and high-level object recognition.

Conclusion and Future Work

While the DTGHT-based method is robust against background noise and minor deformations, limitations remain regarding massive changes in scale and 3D rotation. Future work will focus on optimizing the verification phase for larger datasets and developing more sophisticated salience filters to preserve fine details in complex objects like watches while still discarding environmental noise.

Summary updated

BibTeX
@inproceedings{anelli2003new,
  author = {Marco Anelli and Alessandro Micarelli and Enver Sangineto},
  title = {{A New Content Based Image Retrieval Method Based on a Sketch-Driven Interpretation of Line Segments}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2003},
}
Figure