XPENG RoboticsCompany & role details

Feature Matching for Visual Odometry and Localization

ORB and LoFTR visual-odometry prototypes with essential-matrix and depth-assisted PnP pose estimation, plus dense matching and long-term localization research.

Illustration of ORB, LoFTR, and DKM feature correspondences, essential-matrix and depth-assisted PnP pose estimation, and an accumulated camera trajectory.
Project summary illustration.

Tools & Skills

  • Visual Odometry
  • Feature Matching
  • ORB
  • LoFTR
  • DKM
  • SuperPoint
  • SuperGlue
  • PnP
  • RANSAC
  • Camera Calibration
  • 3D Visualization

Problem and contribution

Feature matching connects observations of the same scene across images. For visual odometry, those correspondences must also support geometric estimation of camera motion.

I compared traditional and learned matching methods and built frame-to-frame experiments using ORB and LoFTR. The workflow connects matched image points to relative pose estimation, trajectory accumulation, and visual inspection.

Matching experiments

Method Role in the experiments
ORB Detector-and-descriptor baseline with ratio-filtered matches
LoFTR Learned image-pair matching with correspondence confidence
DKM Dense matching and certainty maps, including an indoor image-warping demo
SuperPoint / SuperGlue and other matchers Broader comparison and localization-toolbox integration

The wider research included SIFT, QuadTree Attention, and MatchFormer. Long-term localization motivated investigation of RootSIFT, DISK, PoSFeat, and SCFeat, where appearance changes make descriptor robustness especially important.

Two camera-motion routes

The LoFTR video experiment processes consecutive frames and returns matched points with confidence scores. It supports two geometric paths:

  1. Essential-matrix estimation. Use image correspondences and camera intrinsics with RANSAC, then recover relative rotation and translation direction.
  2. Depth-assisted PnP. Use confidence-filtered matches, backproject points with available depth, and estimate relative pose with PnP RANSAC.

Essential-matrix translation is recovered up to scale. The depth-assisted route can provide metric motion only when depth units and camera calibration are consistent.

Trajectory and inspection tools

The experiment accumulates relative 4 × 4 transforms and visualizes matched points, camera frusta, and the resulting trajectory. Keeping the matching and pose-estimation stages separate makes failures easier to inspect: incorrect correspondences, weak scene geometry, and invalid depth can affect the trajectory in different ways.

The DKM demonstration provides another view of matching behavior by inspecting dense warps and certainty rather than reducing every comparison to a sparse point list.

Outcome and scope

The project produced matching and visual-odometry prototypes for assessing candidate methods on indoor sequences. These are components relevant to SLAM and visual localization; a complete SLAM backend, loop closure, or globally optimized map is outside the demonstrated frame-to-frame workflow.

Project diagram

100%Drag or scroll to explore

Project image

Click outside the image or press Escape to close.