Abstract
Camera relocalization is a critical task for robotics and augmented reality, requiring the estimation of a camera's 6-degree-of-freedom (6DoF) pose within a known environment. Traditional methods relying on sparse keypoint matching or global image retrieval often struggle with motion blur, textureless surfaces, or repetitive structures. This paper introduces Scene Coordinate Regression (SCoRe) Forests, a method that treats relocalization as a regression problem. By training a random forest to directly predict 3D world coordinates for every pixel in an RGB-D image, the system achieves fast, robust, and dense relocalization that outperforms traditional feature-based baselines.
Introduction
When a mobile agent—such as an AR headset or an autonomous robot—loses its tracking, it must "relocalize" to regain its position. Traditional approaches typically fall into two categories: sparse keypoint matching (e.g., SIFT, ORB) and global image matching. Sparse methods fail in environments lacking distinct visual features, while global matching is computationally expensive and sensitive to viewpoint changes.
SCoRe Forests bridge this gap by providing a dense, interest-point-free representation of the scene. Instead of matching descriptors, the model learns an implicit map of the environment, allowing it to predict the 3D location of any pixel, even on smooth walls or repetitive surfaces.
Methodology
The core of the system is the Scene Coordinate Regression Forest. Unlike standard classification forests, this regression forest predicts a continuous 3D coordinate $(x, y, z)$ in the scene's world frame for each pixel.
Feature Extraction and Training
The forest utilizes "depth-adaptive" pixel comparisons. These features calculate the difference in color or depth between two points, normalized by the current depth to ensure scale invariance. The forest is trained on specific scenes using RGB-D sequences with known ground-truth poses (e.g., from KinectFusion).
Camera Pose Optimization
At test time, the system employs a robust optimization pipeline:
- Prediction: The forest predicts 3D world coordinates for a subset of pixels.
- Hypothesis Generation: Using the Kabsch algorithm, the system aligns these predicted 3D points with the observed 3D points from the depth sensor to generate potential camera poses.
- Preemptive RANSAC: An iterative optimization process filters out noisy predictions (outliers) and refines the most accurate pose hypothesis.
Evaluation and Results
The authors evaluated the method using the "7 Scenes" dataset, a benchmark featuring challenging indoor environments with motion blur, reflections, and textureless regions.
Key findings include:
- High Accuracy: In the "Chess" scene, SCoRe Forests achieved 92.6% accuracy (within 5cm and 5°), significantly outperforming sparse RGB baselines (70.7%).
- Efficiency: The system runs in approximately 100ms per frame on a single CPU, making it suitable for real-time applications.
- Robustness: The method proved resilient to sensor noise and low-resolution inputs, maintaining high performance where traditional feature-based methods failed entirely.
Conclusion and Future Work
SCoRe Forests represent a shift from explicit feature matching to implicit scene regression. By encoding the 3D structure of a room within the parameters of a random forest, the system provides a compact and powerful tool for relocalization. While currently scene-specific, future research aims to extend this approach to RGB-only sensors and improve generalization across diverse environments.
Summary updated