Abstract
Image matching remains a fundamental challenge in computer vision, particularly when scenes undergo extreme variations in illumination, viewpoint, and texture. This paper presents TP3M, a novel Transformer-based framework that enhances standard 2D image matching by incorporating a third "reference" image to generate pseudo-3D descriptors. By lifting 2D features into a geometrically informed space, TP3M achieves state-of-the-art robustness on benchmarks such as MegaDepth and Aachen Day-Night, significantly outperforming existing 2D-only matching methods like LoFTR and MatchFormer.
Introduction
Finding corresponding points between different views of a scene is essential for tasks like Simultaneous Localization and Mapping (SLAM) and 3D reconstruction. While traditional 2D matching methods perform well under moderate conditions, they often fail in "challenging" scenarios, such as matching a daytime map to a nighttime query or handling extreme perspective shifts.
While true 3D information (e.g., LiDAR or depth maps) provides the necessary geometric invariance to solve these problems, such data is often unavailable or costly to acquire. TP3M addresses this gap by asking whether 3D-like geometric robustness can be extracted using only 2D images. The proposed solution utilizes a reference image to establish a geometric baseline, effectively "upgrading" 2D features into a pseudo-3D space.
Methodology
The TP3M pipeline is an end-to-end network designed to extract and match features with high geometric awareness. The process consists of four primary stages:
- 2D Edge Feature Detection: To ensure stability across lighting changes, the model employs a 3-layer pyramid network featuring BiMLA (Bilateral Multi-Level Attention). This mechanism focuses the model on structural edges and geometric shapes rather than volatile raw textures.
- Reference Image Integration ($I_C$): The system introduces a reference image taken from a viewpoint near the source image ($I_A$). By matching the source to this reference, the model establishes a geometric context that serves as a proxy for depth.
- Pseudo 3D Feature Extraction: Relative positions derived from the source-reference match are fused with the source's 2D features. This process enriches the descriptors with structural information, creating "pseudo-3D" features that are more invariant to environmental changes.
- Coarse-to-Fine Matching: Finally, a hierarchical match is performed between the source's pseudo-3D features and the destination image's ($I_B$) 2D features using a Transformer-based cross-attention mechanism to ensure global consistency.
Experimental Results
TP3M was evaluated on several industry-standard benchmarks, including ScanNet for indoor scenes and MegaDepth for outdoor environments. The results demonstrate a clear performance advantage over established baselines:
- Homography Estimation (HPatches): TP3M achieved an AUC of 0.49 at 1px, a substantial improvement over MatchFormer's 0.37.
- Outdoor Pose Estimation (MegaDepth): At a strict 5° error threshold, TP3M reached 57.22% AUC, surpassing the previous state-of-the-art, ASpanFormer, by approximately 2%.
- Visual Localization (Aachen Day-Night): The model showed exceptional performance in "Night" conditions, confirming that its pseudo-3D descriptors are highly robust to extreme illumination changes.
Qualitative analysis reveals that TP3M maintains a high matching precision (98.99% on outdoor datasets), producing far fewer false positives than competing models in low-texture or poorly lit areas.
Conclusion and Future Work
TP3M demonstrates that incorporating a third view can significantly enhance the robustness of image matching without requiring explicit depth sensors. By focusing on edge-aware features and pseudo-3D descriptors, the framework provides a reliable solution for large-scale visual localization in changing environments.
One limitation of the current approach is the requirement for a reference image, which may not be available in all pair-to-pair matching scenarios. However, such images are typically present in video sequences or existing Structure-from-Motion (SfM) maps. Future research will explore the use of multiple reference images to further boost accuracy and optimizing the Transformer architecture for real-time robotics applications.
Summary updated