arXiv:2611.03098cs.CVNov 2026

Manuscript Offprint

arXiv:2611.03098

Ray-SCR: Generalizing Scene Coordinate Regression Across Camera Models

Jaemin Cho, Oleksii Nasypanyi, Francois Rameau

Abstract

Among visual localization strategies, scene coordinate regression (SCR) has emerged as an attractive approach for its compactness, accuracy, and speed. Despite these advantages, SCR models generalize poorly across substantially different camera models, such as omnidirectional or strongly rectified imagery. This limitation arises because, changes in field of view, lens distortion, or rectification-induced resampling can make the same scene content appear differently depending on its pixel position, degrading localization accuracy. To cope with this limitation, we introduce Ray-SCR, a lightweight extension to existing SCR architectures that conditions local visual features on their calibrated viewing rays and refines neighboring ray-conditioned features with a shallow local Transformer. We further formulate supervision directly in ray space and use sparse SfM points as metric anchors that link observations across views and camera models. Taken together, these components enable a single scene representation built from a panoramic mapping sequence to accurately localize query images captured with very different cameras, including pinhole, fisheye, and omnidirectional cameras.

We evaluate Ray-SCR across multiple SCR architectures and on datasets with pinhole, fisheye, and omnidirectional cameras. The proposed ray conditioning substantially improves generalization across cameras and leads to state-of-the-art localization performance in these challenging cross-camera settings. The project page is available at here.

1. Introduction

Visual localization techniques allow to estimate the pose of a query image within a known scene. This process is central to many applications in robotics [30], mapping [35], and augmented reality [32]. Scene coordinate regression (SCR) [5, 6] approaches this task by learning, for each scene, a mapping from local image descriptors to 3D scene coordinates. Recently, SCR techniques have become particularly attractive for their fast training and inference, compact scene representation, and high localization accuracy.

Figure

Figure 1. Cross-camera localization with Ray-SCR. A scene mapped from panoramic images is queried using pinhole, fisheye, and 360° cameras with substantially different fields of view and image distortions. Ray-SCR uses calibrated viewing rays associated with local image features to enable localization across these heterogeneous cameras.

Despite these advantages, existing SCR solutions have been designed primarily for perspective cameras, or rectified images, and do not explicitly account for the strong distortions and non-uniform image resolution induced by omnidirectional imaging systems. As a result, the same local scene structure can produce substantially different image features depending on the camera geometry, which limits the ability of SCR models to generalize across heterogeneous cameras.

To mitigate that limitation, one can train SCR with im-ages rendered from different camera configurations, exposing the network to a wider range of distortions. However, SCR relies on local image features, while the distortion affecting each patch depends on its position in the camera field of view. Therefore, without access to the corresponding viewing direction, the network has no explicit information about where a local feature lies within the camera projection. As shown in Table 5, such augmentation significantly improves cross-camera localization, but remains insufficient on its own.

Building on this observation, we propose Ray-SCR, which augments each local visual feature with its corresponding calibrated camera ray, providing the network with the viewing direction associated with that observation. A shallow local transformer further refines neighboring features to capture projection-dependent local patterns. Beyond feature conditioning, we formulate the training objective directly in ray space, using the angular distance between predicted and observed viewing directions. Unlike image-plane reprojection, this measure is independent of the camera projection model and can therefore be applied consistently across pinhole, fisheye, and omnidirectional cameras. In addition, we exploit sparse SfM points as metric 3D anchors, linking observations across views and camera models to a common scene coordinate.

We validate Ray-SCR primarily on 360Loc [14], where scenes mapped from panoramic sequences are queried using five different camera configurations under both day and night conditions. Across several SCR backbones, Ray-SCR consistently improves cross-camera localization and outperforms existing cross-device methods, including CDG-Loc [40]. We further evaluate the approach on OmniScenes [18], where it surpasses scan-based localization methods [21] while retaining a compact scene representation, and on Aachen [33] to assess its behavior in a large-scale perspective setting with heterogeneous camera intrinsics.

Our main contributions are:

  • We introduce Ray-SCR, which conditions local visual features on calibrated camera rays and jointly refines neighboring features to improve scene coordinate regression across heterogeneous cameras.
  • We formulate SCR supervision directly in ray space and complement it with sparse SfM anchors, providing metric 3D supervision while promoting consistent scene-coordinate predictions across views and camera models.
  • We demonstrate the generality of Ray-SCR across several SCR architectures and three benchmarks, achieving state-of-the-art localization on 360Loc and OmniScenes, while substantially improving the corresponding SCR baseline on Aachen.

References (41)