NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

P2-Net: Joint Description and Detection of Local Features for Pixel and Point Matching

Bing Wang, Changhao Chen, Zhaopeng Cui, Jie Qin, Chris Xiaoxuan Lu, Zhengdi Yu, Peijun Zhao, Zhen Dong, Fan Zhu, Niki Trigoni, Andrew Markham · DOI

TL;DR

This paper introduces P2-Net, a novel framework that directly learns to find correspondences between 2D image pixels and 3D point cloud points. It achieves this by jointly detecting and describing local features in both modalities within a shared latent space, overcoming the traditional two-step approach that relies on 3D reconstruction.

What Problem Does This Paper Address?

Establishing accurate matches between 2D images and 3D point clouds is a fundamental challenge in computer vision, crucial for applications like 3D reconstruction, pose estimation, and visual localization. Existing methods typically involve a two-step process: first reconstructing a 3D model from images, and then matching 2D features to the reconstructed 3D points. This approach has several drawbacks: it's sensitive to the quality of 3D reconstruction, struggles with challenging lighting or viewpoint changes, and treats 3D data as secondary to 2D images. Furthermore, directly matching pixels and points is difficult due to the inherent differences in how they represent information (appearance vs. structure) and the sparsity of point clouds. This paper aims to bridge this gap by enabling direct, fine-grained pixel-to-point matching.

Methods

P2-Net employs a dual, fully-convolutional network architecture designed for simultaneous feature description and keypoint detection.

  • Joint Description and Detection: The core idea is to learn a shared latent representation for both 2D image pixels and 3D point cloud points. This allows the network to simultaneously extract descriptive features and identify salient keypoints in both modalities.
  • Ultra-Wide Reception Mechanism: To handle the intrinsic information variations between 2D and 3D data (e.g., a point in a sparse point cloud often represents a larger spatial area than a pixel), the 2D feature extractor uses an "ultra-wide reception mechanism." This is implemented using dilated convolutional layers with progressively increasing dilation rates (up to 16), allowing the network to capture a wider context.
  • P2-Loss Function: A novel loss function, P2-Loss, is introduced to optimize both description and detection. It comprises two components:
  • Circle-Guided Descriptor Loss: This loss encourages distinctive descriptors by using a "circle loss" approach with a full sampling strategy. Unlike traditional hard-triplet losses, it considers a wider range of negative matches, leading to more robust convergence and avoiding ambiguity, especially in the challenging 2D-3D cross-domain setting.
  • Batch-Hard Detector Loss: This component focuses on repeatability. It employs a "batch-hard" strategy to ensure that detected keypoints are robust to viewpoint and illumination changes, by encouraging higher detection scores for more discriminative correspondences.

Datasets

The paper utilizes the following datasets:

  • 7Scenes dataset: Used for training and evaluating the direct pixel-to-point matching and visual localization tasks. This dataset consists of indoor scenes with RGB-D sequences, known for challenging conditions like motion blur and perceptual aliasing. The authors annotated 2D-3D correspondence labels on this dataset.
  • HPatches dataset: Used for evaluating the performance of the proposed P2-Loss on single-domain image matching.
  • 3DMatch dataset: Used for evaluating the performance of the proposed P2-Loss on single-domain point cloud registration.

Key Insights and Ideas

  • Direct 2D-3D Matching is Feasible and Beneficial: The paper demonstrates that directly learning correspondences between 2D pixels and 3D points is achievable and outperforms traditional indirect methods, especially in challenging scenarios.
  • Bridging the Modality Gap: The "ultra-wide reception mechanism" is a clever way to address the fundamental differences in information density and spatial representation between 2D images and 3D point clouds.
  • Circle Loss for Cross-Domain Robustness: The circle-guided descriptor loss proves crucial for achieving convergence in the cross-domain 2D-3D matching task, where traditional triplet and contrastive losses struggle. This highlights the importance of a more flexible similarity penalty.
  • Joint Detection and Description is Key: Experiments show that jointly learning to detect and describe features significantly improves performance compared to using pre-trained detectors or descriptors, emphasizing the synergistic relationship between these two tasks.
  • The "Stairs" Scene as a Stress Test: The paper highlights the Stairs scene from the 7Scenes dataset as particularly challenging due to its repetitive textures. P2-Net's ability to achieve outstanding performance here underscores the robustness of its keypoint detection and matching.

Key Results

  • State-of-the-Art Visual Localization: P2-Net achieves state-of-the-art results on the 7Scenes dataset for indoor visual localization, outperforming existing methods by significant margins (e.g., 2.6% and 5% improvement in pose estimation accuracy).
  • Competitive Pixel-to-Point Matching: The framework demonstrates competitive performance on fine-grained image and point cloud matching tasks, outperforming traditional descriptors and other learning-based methods.
  • P2-Loss Superiority: When applied to existing 2D and 3D matching networks (like D2-Net, D3Feat, R2D2, ASLFeat), the P2-Loss consistently improves performance, especially under challenging illumination and view variations.
  • Robustness in Challenging Scenarios: P2-Net shows remarkable robustness, particularly on the difficult "Stairs" scene, where other methods fail.
  • Efficient Single-Pass Processing: The dual fully-convolutional architecture allows for feature description and keypoint detection in a single forward pass, making it efficient for real-world applications.

Limitations and Future Work

  • Dataset Annotation: The paper notes the lack of publicly available datasets with 2D-3D correspondence labels and highlights the effort involved in annotating the 7Scenes dataset. Future work could involve developing more automated or semi-automated methods for generating such annotations.
  • Generalization to Diverse 3D Data: While the method shows good generalization, further exploration of its performance on different types of 3D data (e.g., scanned objects, CAD models) could be beneficial.
  • Real-time Performance: While efficient, further optimization for real-time applications on resource-constrained devices might be an area for future research.
  • Downstream Task Expansion: The paper demonstrates visual localization as a downstream task. Exploring P2-Net's utility in other applications like object recognition, scene understanding, or augmented reality could be valuable.

Summary updated

BibTeX
@inproceedings{wang2021p,
  author = {Bing Wang and Changhao Chen and Zhaopeng Cui and Jie Qin and Chris Xiaoxuan Lu and Zhengdi Yu and Peijun Zhao and Zhen Dong and Fan Zhu and Niki Trigoni and Andrew Markham},
  title = {{P2-Net: Joint Description and Detection of Local Features for Pixel and Point Matching}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01570},
}
Figure