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

TL;DR

This paper introduces a novel Content-Based Image Retrieval (CBIR) system that uses sketch-based queries to find similar shapes in real-world images. It tackles the challenge of retrieving objects in images with non-uniform backgrounds and occlusions by employing a Deformation Tolerant Generalized Hough Transform (DTGHT) and a sophisticated verification phase that leverages Gestalt principles.

What Problem Does This Paper Address?

Traditional Content-Based Image Retrieval (CBIR) systems often struggle with real-world images that have complex backgrounds, varying lighting conditions, and objects that are partially hidden (occluded). Manually segmenting objects of interest in these images is a laborious and often subjective process. This paper aims to overcome these limitations by developing a system that can retrieve images based on shape similarity, even when the target object is not perfectly clear or is partially obscured. The core challenge is to accurately match a user-drawn sketch to potential shapes within an image, robustly handling variations in appearance and context.

Methods

The proposed method consists of two main phases: pre-processing and sketch localization, followed by a verification phase.

1. Pre-processing and Sketch Localization: * Edge Extraction and Thinning: Standard Canny edge detection with Sobel masks is used to create an edge map of the image. This is followed by a thinning process to reduce noise and create cleaner edges. * Salience Filters: Two filters are applied to remove thick, textured areas that can degrade retrieval performance. * Line Segment Merging: Pixels in the edge map are merged into line segments. A segment is defined as an ordered list of adjacent pixels. Special rules are applied to segment endpoints, which can be either single-pixel connections or junctions with other segments. This process assumes that pixels within a continuous segment are more likely to belong to the same object. * Sketch Representation (R-Table): For a user-drawn sketch (S), an R-Table (T) is constructed. This table stores the relative positions of points in the sketch with respect to its centroid. * Deformation Tolerant Generalized Hough Transform (DTGHT): The system uses a DTGHT to compare the sketch's R-Table with the pre-processed image. Unlike the standard GHT, the DTGHT employs an augmented voting area (voting window) to account for potential deformations. This allows for a more flexible matching process. The voting phase is split into exact and spreading phases for efficiency. The point with the highest score in the Hough accumulator is considered the most likely centroid of the target shape.

2. Verification Phase: This phase is crucial for rejecting false positives that might arise from the DTGHT due to complex image content.

  • Justifying Segments: The system checks if segments in the image are "justifying" the presence of the sketch. A segment is considered justifying if a significant portion of its points have valid correspondences with the sketch's points, considering edge orientation and relative position within the voting window.
  • Inhibitory Segments: Segments that are not justifying but intersect the neighborhood of the potential shape are identified as "inhibitory." These segments can negatively influence the confidence of a match.
  • Verification Test: A final test combines the justification and inhibition tests. A match is considered valid only if a sufficient portion of the sketch is justified by image segments and if there are no significant inhibitory segments that contradict the shape. This phase leverages Gestalt principles, such as continuity, to assess perceptual similarity.

Datasets

The paper describes experiments conducted on a database composed of 283 images randomly collected from the web. This database includes a variety of subjects such as cars, horses, guitars, pistols, tennis rackets, saxophones, bottles, watches, crucifixes, vases, animals, faces, landscapes, airplanes, boats, fruits, and mushrooms. The authors emphasize that no manual segmentation was performed on these images, and they often feature non-uniform backgrounds and occluded objects.

Key Insights and Ideas

  • Leveraging Gestalt Principles for Robustness: The integration of Gestalt principles, particularly those related to continuity and perceptual grouping, into the verification phase is a key innovation. This allows the system to go beyond simple pixel-level matching and assess the overall perceptual coherence of a potential shape match.
  • DTGHT for Deformation Tolerance: The use of a Deformation Tolerant Generalized Hough Transform is essential for handling variations in object shape and pose, which are common in real-world images.
  • Two-Phase Approach for Accuracy: The combination of a robust localization phase (DTGHT) with a strict verification phase significantly improves the precision of the retrieval system, effectively filtering out false positives.
  • Handling Real-World Image Complexity: The system's ability to work with images that have non-uniform backgrounds and occluded objects without requiring manual pre-processing is a significant advantage over many existing CBIR methods.

Key Results

The paper reports experimental results using three users who provided sketch queries for six different object types (car, pistol, tennis racket, watch, bottle, guitar). The results are presented in Table 1, showing precision and recall scores for each user and query type.

  • Overall Performance: The average precision across all users and queries was 0.80, and the average recall was 0.62.
  • User Variability: The results show some variability among users, with User 3 (who had prior exposure to the database images) generally achieving higher scores. This highlights the subjective nature of sketch creation and the importance of user familiarity.
  • Qualitative Success: The system demonstrated success in retrieving relevant images despite the challenges of non-uniform backgrounds and occlusions.

Limitations and Future Work

  • Sketch Quality and User Dependence: The performance of the system is inherently dependent on the quality and accuracy of the user-drawn sketch. Variations in user drawing skills can lead to different retrieval outcomes.
  • Computational Cost: While the DTGHT is optimized, the verification phase, which involves detailed segment analysis, can still be computationally intensive.
  • Future Work: The authors suggest further improvements could be made by exploring more sophisticated segmentation rules and potentially incorporating other shape descriptors or features to enhance retrieval accuracy and robustness.

Summary updated

BibTeX
@inproceedings{2003new,
  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