A Novel Framework for Image Matching and Stitching for Moving Car Inspection under Illumination Challenges

Andreas El Saer, Lazaros Grammatikopoulos, Giorgos Sfikas, George Karras, Elli Petsa2024

TL;DR

This paper introduces a novel end-to-end framework for robustly stitching together images of moving vehicles, even under challenging lighting and reflective conditions. By combining advanced image matching, semantic segmentation for background/foreground separation, and a unique statistical outlier filtering ensemble, the system achieves accurate and seamless mosaics for improved vehicle inspection.

What Problem Does This Paper Address?

Automated vehicle exterior inspection is crucial for safety and efficiency, but current computer vision methods struggle with dynamic environments, particularly with moving vehicles that have highly reflective surfaces. These challenges lead to difficulties in accurately detecting and localizing defects, often resulting in false positives and requiring significant manual effort. Traditional image matching techniques falter when faced with reflections and complex patterns, making it hard to establish reliable correspondences between images. This paper aims to bridge this gap by developing a robust image matching and stitching pipeline specifically designed to overcome these illumination and motion-related challenges.

Methods

The proposed framework is an end-to-end pipeline that integrates several key components:

  • Image Matching: The system leverages a "Pool of Image Matching Algorithms," initially focusing on RoMa, but also considering LoFTR and TopicFM. These dense feature matchers are chosen for their ability to extract a substantial number of features, which are then refined.
  • Mask Extraction and Refinement: To distinguish the vehicle from its background, the framework employs semantic segmentation and object detection using YOLOv8 and the Segment Anything Model (SAM). This step is crucial for filtering out irrelevant background points.
  • Filtering Module: This is a novel contribution. It addresses two main issues:
  • Background Points: Eliminated using the masks from the previous step.
  • Reflective Surfaces: Points on glossy surfaces are filtered out by analyzing their deviation from the dominant parallax vector (magnitude and direction). This exploits the vehicle's motion as a geometric prior.
  • Outlier Detection Ensemble: An ensemble of six statistical methods (modified DBSCAN, HDBSCAN, Z-score with MAD, sigma clipping, adaptive sigma clipping, and Local Outlier Factor) is used to identify and remove outliers based on parallax vectors. This ensemble approach leverages the strengths of different methods to handle various outlier types.
  • Geometric Verification: After filtering, MAGSAC++ is used for robust fitting to estimate the essential matrix. The essential matrix is then decomposed to recover the camera pose (rotation and translation). An image pair is accepted if the Euler angles derived from the rotation matrix are within a defined threshold (4 degrees in experiments).
  • Image Stitching: Consecutive, accepted image pairs are stitched together using a low-level multi-band blending method to minimize color differences while preserving image integrity. The final mosaic is created by sequentially stitching pairs based on their median parallax.

Datasets

The experiments were conducted on three real-world image datasets:

  • Volkswagen: 16 images of 3000x4096 pixels, showing the left side of a vehicle in an outdoor environment.
  • Mercedes: 8 images of 3000x4096 pixels, showing the left side of a vehicle in an indoor environment. This dataset features less than 65% overlap between consecutive images.
  • Seat: 16 images of 3000x4096 pixels, showing the left side of a vehicle in an outdoor environment.

These datasets are characterized by poor textural variation on vehicle surfaces and were collected using an industry-ready scanner with LIDAR, LED illumination, and deflectometry stripes. The cameras were fixed while the vehicles were moving.

Key Insights and Ideas

  • Reflections are a Major Hurdle: The paper strongly emphasizes that glossy surfaces and reflections are primary challenges for traditional image matching, leading to ambiguous correspondences and false positives.
  • Motion as a Geometric Prior: Exploiting the dominant parallax vector (derived from the vehicle's motion) is a key strategy for filtering out points on reflective surfaces that don't conform to expected motion patterns.
  • Ensemble for Robust Outlier Detection: A single outlier detection method is often insufficient. Combining multiple statistical methods, each with different strengths, provides a more robust and reliable way to identify and remove erroneous matches.
  • Semantic Segmentation for Pre-filtering: Using YOLO and SAM to segment the vehicle from the background significantly reduces the search space and eliminates irrelevant points before more computationally intensive matching and filtering steps.
  • End-to-End Automation: The framework aims for full automation, from initial matching to the final mosaic, reducing the need for manual intervention in the inspection process.

Key Results

  • The proposed filtering scheme and geometric verification are essential for accurate image pair orientation and mosaic generation, as demonstrated by the comparison with skipping the filtering module (Figure 11).
  • Dense matchers (RoMa, TopicFM, LoFTR) generally provide a substantial number of features, outperforming methods like SuperPoint + LightGlue which yielded fewer matches in their experiments.
  • The framework successfully generates high-quality image mosaics for all three datasets, even with challenging lighting and reflective conditions.
  • The entire process (matching, detection, segmentation, filtering, and mosaicking) was processed on a laptop with an i7-11800H and an Nvidia RTX 3060 GPU.

Limitations and Future Work

  • Dataset Availability: The authors note the lack of a suitable dataset with available ground truth for a more thorough evaluation. They suggest that future work could involve creating such a dataset using synchronized 3D scans and image frames.
  • Wheel Artifacts: The rotational movement of vehicle wheels creates discrepancies and artifacts in the stitched image. The current approach considers points on wheels as outliers and removes them, but a more sophisticated "detect and remove" strategy for wheels is proposed as future work.
  • Neural Network Integration: Combining statistical and geometric filtering methods within a neural network, potentially a transformer architecture, is suggested for improved robustness and convergence.
  • Bundle Adjustment: Applying bundle adjustment for global image pose and camera calibration refinement could further improve accuracy and geometric consistency.
  • Neural Implicit Representations: Using methods like NeRFs could lead to more holistic and high-fidelity 3D representations of vehicles.

Summary updated

BibTeX
@misc{saer2024novel,
  author = {Andreas El Saer and Lazaros Grammatikopoulos and Giorgos Sfikas and George Karras and Elli Petsa},
  title = {{A Novel Framework for Image Matching and Stitching for Moving Car Inspection under Illumination Challenges}},
  year = {2024},
  doi = {10.3390/s24041083},
}
Figure