Expand description
Visual localization foundation library built around reusable SfM / visual maps.
visloc-rs starts with map-based localization: connect query image features
to 3D landmarks, estimate a camera pose with PnP + RANSAC, and return an
inspectable LocalizationResult. SLAM, mapping, and sensor fusion are kept
out of the initial core, but the type and trait boundaries leave room for
those pipelines to be added later.
§Minimal Example
use nalgebra::{Point3, UnitQuaternion, Vector3};
use visloc_rs::prelude::*;
let camera = Camera::pinhole(1, 640, 480, 500.0, 500.0, 320.0, 240.0);
let pose = Pose::from_world_to_camera(UnitQuaternion::identity(), Vector3::zeros());
let point = Point3::new(0.0, 0.0, 5.0);
let mut map = VisualMap::new();
let mut landmark = Landmark::new(1, point);
landmark.descriptor = Some(vec![1.0, 0.0]);
map.landmarks.insert(1, landmark);
let query = QueryImage {
camera: camera.clone(),
keypoints: vec![camera.project(&pose.transform_world_point(&point)).unwrap()],
descriptors: vec![vec![1.0, 0.0]],
};
let result = localize(query, map);
assert_eq!(result.correspondence_count, 1);Most applications should start with LocalizationPipeline or
ColmapMapProvider and then replace
feature extraction, matching, candidate selection, or pose estimation through
the exposed traits.
Re-exports§
pub use visloc_core as core;pub use visloc_fusion as fusion;pub use visloc_io as io;pub use visloc_localization as localization;pub use visloc_mapping as mapping;pub use visloc_objects as objects;pub use visloc_slam as slam;pub use visloc_tracking as tracking;pub use visloc_vision as vision;
Modules§
- geometry
- global_
descriptor_ onnx - In-Rust learned global-descriptor (visual place recognition) ONNX runtime.
- global_
descriptor_ store - Restart-safe, bounded-memory storage for global image descriptors.
- incremental_
sfm - Incremental structure-from-motion from an unordered image set.
- prelude
- Common imports for applications using the default visual-localization stack.
- superpoint_
onnx - Phase-27 — in-Rust SuperPoint ONNX runtime.
- types
- verified_
pair_ snapshot - Lossless verified-pair snapshot codec shared by the SfM diagnostics.
Structs§
- Adaptive
ImuPose Motion Model - Adaptive motion model that wraps an
ImuPredictiveMotionModeland aConstantPoseMotionModeland dispatchespredict_posethrough whichever inner model the per-frame failure / success counters select. Both inner models are kept fed at all times bySelf::observeso the switch is instantaneous when it fires (the IMU’s pending-sample buffer and last-successful-pose anchor stay current even while constant-pose is dispatching predictions). - Adaptive
ImuPose Motion Model Config - Adaptive
Velocity Gate Config - Adaptive refined-velocity writeback gate for
OnlineSlamLocalBaConfig. - AllLandmarks
Selector - AllMap
Selector - Appearance
Loop Candidate Build Result - Build and PnP-verify appearance-based long-range loop-closure candidates
for
frameagainst the per-keyframe mean descriptors cached indescriptor_cache(seeOnlineSlamLoopClosureRefinementState::appearance_descriptor_cache). - Appearance
Loop Candidate Diagnostic - Per-candidate evidence retained after primary PnP succeeds, so threshold changes can be based on measured covisibility support rather than only an aggregate accept/reject count.
- Appearance
Loop Scanner Settings - Tunables for
OnlineSlamPipeline::scan_appearance_loops. MirrorsPairwiseLoopClosureScannerConfigbut with names that emphasise the pipeline-level use (“how aggressively should the periodic scan run?”). Defaults are chosen so a typical local-mapping window doesn’t get confused for a loop, and so visually disjoint keyframes are rejected before the verifier ever fires. - Applied
MapUpdate - Atlas
Submap - BaConfig
- Configuration for
BundleAdjustment::optimize. - BaIteration
Stats - BaObservation
- One 2D image-point measurement linking a keyframe to a landmark.
- BaResult
- BaRig
Observation - One observation from an arbitrary sensor rigidly attached to a shared rig
frame.
poses[keyframe_id]storesT_rig<-world; the fixed extrinsic isT_sensor<-rig. This is the non-central counterpart ofBaObservationand allows every sensor pixel to constrain one body pose without requiring a same-landmark observation in a designated left camera. - BaStereo
Observation - One rectified-stereo measurement linking a keyframe to a landmark. The
keyframe’s pose is the LEFT camera’s
T_world_to_camera. The right camera is assumed rectified: shared intrinsics, optical axes parallel, and image rows aligned, so the right pixel only needs its horizontal coordinate (v_r = v_l). The shared baseline lives onBundleAdjustment. - Bias
Release Schedule - A second, higher excitation gate gating when
MotionBasedViInitializeris allowed to release the gyro/accel bias slots to the LM solver. - Brute
Force Matcher - Bundle
Adjustment - Bundle-adjustment problem: poses, landmarks, observations, plus a single shared pinhole camera (multi-camera support is left as a future extension).
- Bundle
Adjustment Refiner LocalRefinerimplementation that runs windowed bundle adjustment on a staged map update. Existing keyframes and landmarks in the window (already inVisualMap) are added as fixed gauge; the newly-staged keyframe poses and landmark positions are the BA variables. Observations from both the existing window and the staged update feed the residual.- Camera
- Chordal
Rotation Init - Diagnostics from
PoseGraph::initialize_rotations_chordal. - Colmap
Export Summary - Summary of a
write_colmap_text_model_for_3dgscall. - Colmap
MapProvider - Constant
Pose Motion Model - Constant
Velocity Motion Model - Corner
Deep Adapter - Adapter that exposes any
CornerFeatureExtractorthrough the deep interface, using the (already L2-clippable) patch descriptor and a constant score. Useful for A/B testing the deep contract while keeping the classical extractor untouched. - Corner
Feature Config - Corner
Feature Extractor - Correspondence2
D3D - Correspondence
Builder - Correspondence
Set - Covisibility
Keyframe Score - A keyframe ranked by how many selected landmarks it shares.
- Covisibility
Local BaConfig - Configuration for
refine_visual_map_with_covisibility_ba. - Covisibility
Local BaResult - Result of one covisibility local-BA solve.
- Covisibility
Local BaSelection - Selection diagnostics for one covisibility local-BA problem.
- Covisibility
Local MapConfig - Cross
Check Matcher - Cross
Submap Alignment Config - Appearance retrieval and independent metric-scale checks applied before a cross-submap PnP bridge is admitted to the Atlas.
- Cross
Submap Alignment Result - Cross
Submap Boundary Factor Result - Auditable result of a DROID-style boundary factor: descriptors are matched directly between the last tracked frame of the old submap and the stereo seed of the new submap, then verified in metric 3D before Atlas admission.
- Cross
Submap Candidate Diagnostic - Cross
Submap Landmark Match - Cross
Submap Scale Estimate - Cross
Submap Window Alignment Result - Aggregate result for a broader recovery pass over multiple retained source keyframes. Individual alignment diagnostics remain available so callers can audit which boundary/current view supplied the verified bridge.
- Deep
Feature Set - Output of a deep-style feature extractor: keypoints, scores, and unit-norm
descriptors. Convertible to
FeatureSetviaDeepFeatureSet::into_feature_setfor use with classical matchers. - Descriptor
Match - DltPnP
- Essential
Matrix Loop Closure Verifier - Geometric verifier that runs the classical essential-matrix RANSAC from
visloc-vision::two_viewon the supplied correspondences and reports inlier statistics, mean Sampson error, and a combined score. - Essential
Matrix Visual Odometry Config - Configures the essential-matrix VO frontend. The Sampson threshold and
RANSAC iteration count tune the inlier search;
default_translation_scaleis the scale applied when no per-pair scale is supplied. - Essential
Matrix Visual Odometry Frontend - Two-view VO frontend backed by the classical essential-matrix RANSAC
pipeline in
visloc-vision. Compared toTwoViewMatchVisualOdometryFrontend— which estimates a translation-only flow — this frontend recovers a full SE3 relative pose (rotation + scaled translation) and reports inliers against the Sampson distance. - External
Deep Feature - External
Deep Feature Set - External
Deep Match - External
Deep Match Set - Feature
Set - Fixed
Landmark Selector - Fixed
Landmark Submap Selector - FnFeature
Extractor - Frame
- Frame
Localization Result - Frame
Prior Source - Frame
Prior Sync Evaluation Config - Frame
Prior Sync Evaluation Result - Frame
Prior Sync Summary - Frame
Timestamp Index - Gauss
Newton Pose Refiner - Generalized
Camera Rig - Validated sensor geometry used by generalized absolute pose.
- Generalized
Correspondence2 D3D - One world-point to rig-sensor pixel correspondence.
- Generalized
DltPose Estimator - Linear non-central absolute-pose initializer.
- Generalized
Gauss Newton Pose Refiner - Shared-rig nonlinear pose refiner.
- Generalized
PnPRansac - Deterministic pixel-space RANSAC for one generalized rig frame.
- Generalized
Ransac Report - Generalized-camera RANSAC result.
- Global
Reconstruction Tuning - Tunables for
reconstruct_global_sfmbeyond the shared incremental- mapper config (which supplies triangulation gates and the BA recipe). - Global
SfmEdge - One verified pairwise constraint between two views of the view graph.
- Global
SfmPoses - Result of the global pose solve.
- Gnss
Measurement - Gravity
Prior - Rotation-alignment gravity prior on every non-fixed pose.
- Gravity
Velocity Alignment - Outcome of
estimate_gravity_and_velocities: the world-frame gravity vector recovered from IMU preintegration factors against FIXED visual poses, plus the per-keyframe velocities that come along for free from the same linear solve. - Grayscale
Image - Gyro
Bias Alignment - Outcome of
estimate_gyro_bias: the shared gyro bias recovered from ROTATION-ONLY alignment against a window’s fixed visual poses, run BEFORE gravity/velocity alignment — seedocs/motion_based_vi_alignment.md’s “Gyro-bias recovery” section for the motivating real-data diagnosis and the full derivation. - HogLike
Feature Config - Configuration for
HogLikeFeatureExtractor. - HogLike
Feature Extractor - Deep-style feature extractor with classical SIFT/HOG-flavored descriptors.
Output descriptors are unit-norm 128-D vectors so they pair directly with
cosine-similarity matchers (e.g.
super::super::matching::mutual_softmax::MutualSoftmaxMatcher). - Hybrid
Loop Closure Verifier - Loop-closure verifier that consults both the essential-matrix and PnP backends and reports a consensus decision: the candidate is accepted iff both verifiers accept it AND their recovered relative poses agree to within the configured rotation / translation-direction tolerances. This catches ambiguity where a 2D-2D essential fit looks plausible but disagrees with the 3D map structure (or vice versa).
- Hybrid
Loop Closure Verifier Config - Configuration for
HybridLoopClosureVerifier: maximum allowed disagreement between the essential-matrix and PnP recovered poses before the hybrid verifier rejects the candidate as inconsistent. - Image
Localizer - Image
Sequence Summary - Image
Tracker - ImuMeasurement
- ImuPredictive
Motion Model - Inertial pose predictor: a “loosely coupled” replacement for
ConstantPoseMotionModel/ConstantVelocityMotionModelthat integrates body-frame IMU samples forward from the previous successful pose to produce the next pose prior. Mirrors the inputs ofcrate::Tracker’s motion-model slot so it can be dropped in viaTracker::new_with_motion_model. - ImuPredictive
Motion Model Config - Static parameters for
ImuPredictiveMotionModel. - ImuPreintegrated
Delta - Output of pre-integrating a window of IMU samples between two keyframes.
Quantities are in keyframe-
i’s body frame and gravity-free; the BA-side residual combines them with the world-frame gravity vector and the global(R, v, p)of both keyframes. - ImuPreintegration
Factor - BA-side pre-integration factor connecting two keyframes with the
gravity-compensated
(ΔR, Δv, Δp)produced byImuPreintegrator. The optional bias-correction path (Self::residual_with_bias_correction) lets a BA-side solver shift the integrator’s linearisation point without re-running the pre- integration, using the first-order Jacobians stored onImuPreintegratedDelta. - ImuPreintegrator
- Accumulator that ingests body-frame IMU samples one at a time and
maintains a running
ImuPreintegratedDelta. Construct withImuPreintegrator::new(no bias) orImuPreintegrator::new_with_biaswhen the IMU-side bias estimate is known; in either case, the accumulator subtracts the supplied bias from every gyro / accel sample before integrating, and accumulates the first-order bias-Jacobians of the running delta (Forster eq. 35-39). - InMemory
MapProvider - Incremental
SfmConfig - Tunable knobs for
incremental_sfm. - Incremental
SfmResult - Output of
incremental_sfm. - Intersect
Candidate Selector - Kabsch
Ransac Config - Configuration for
estimate_relative_pose_kabsch_ransac. - Kabsch
Ransac Report - Output of
estimate_relative_pose_kabsch_ransac. - Keyframe
- Keyframe
Decision - Keyframe
Policy Config - Kitti
Image Sequence - Kitti
Odometry Benchmark Config - Kitti
Odometry Benchmark Summary - Kitti
Odometry Segment Error - Kitti
Oxts Record - OXTS sample with its synchronised timestamp.
- Kitti
Oxts Sample - One synchronised OXTS sample (parsed from a single
oxts/data/<frame_id>.txt). - Kitti
Projection - Kitti
Trajectory Parse Error - Landmark
- Landmark
Candidate - Landmark
Candidate Mapping Failure - Landmark
Candidate Observation - Landmark
Candidate Validation Config - Landmark
Candidate Validation Report - Landmark
Descriptor Store - Linear
Triangulator - Loaded
Image Frame - Local
MapWindow - Local
MapWindow Config - Local
Mapping Pipeline - Local
Mapping Result - Local
Refinement Result - Localization
Config - Localization
Pipeline - Localization
Prior - Localization
Result - Localization
Success - Loop
Appearance Candidate Config - Opt-in appearance-based long-range loop-candidate source for
OnlineSlamLoopClosureRefinementConfig. The shared-landmark detector (detect_loop_closure_candidates) can only ever propose candidates that still reference the SAME map landmark ids the current frame’s inliers carry; once the tracker drifts around a loop and revisits a place, the mapper has typically re-triangulated fresh landmark ids for the very same walls, so shared-id candidates are inherently short-range (near-in-time keyframes only). This stream instead ranks past keyframes by cosine similarity of their cached mean local descriptor against the current frame’s, restricted to candidates at leastmin_keyframe_id_gapkeyframe-ids older — i.e. genuinely long-range, appearance-only place recognition, mirroringOnlineSlamRelocalizationAppearanceConfig’s retrieval machinery (relocalization_mean_descriptor/ cosine ranking) but tuned for long-range loop detection rather than short-range recovery-after-loss. - Loop
Candidate Pair - An appearance-proposed loop candidate (older revisited frame ← newer query frame), before geometric verification.
- Loop
Candidate Verification Diagnostic - Geometry-verification diagnostics for one appearance-proposed loop
candidate. This is intended for benchmark artifacts and failure analysis:
it records candidates that were never attempted because of
max_verificationsas well as candidates rejected by PnP. - Loop
Closure Candidate - Loop
Closure Config - Loop
Closure Constraint - Pose-graph-style constraint between two keyframes derived from a verified loop-closure candidate. This is intentionally a lightweight data type — no solver lives in this crate yet — so downstream optimization layers can adopt it without committing to a specific backend.
- Loop
Closure Verification - Output of running a
LoopClosureVerifieron a candidate. - Loop
Closure Verifier Config - Configuration thresholds for
EssentialMatrixLoopClosureVerifier. - MapAtlas
- MapProvider
Stats - MapUpdate
Validation Report - Materialized
Atlas - Measurement
Buffer - Motion
Based ViInitialization Result - VIBA1 / VIBA2 outcome.
- Motion
Based ViInitializer - State machine that fires a single VIBA1 inertial-only solve once the
keyframe count + cumulative-translation thresholds are met. See the
module docstring and the design note
docs/motion_based_vi_alignment.mdfor the full contract. - Motion
Based ViInitializer Config - Configuration for
MotionBasedViInitializer. - Motion
ViRaw Residual Activation Config - Multi
Scale Deep Config - Configuration for
MultiScaleDeepExtractor. - Multi
Scale Deep Extractor - Wraps a single-scale
DeepFeatureExtractorwith image pyramid detection so it can recover features across multiple scales. Each keypoint produced by an octave is rescaled into the original image’s pixel coordinates, so downstream consumers (essential RANSAC, PnP, scanner) can treat the merged output exactly like a single-scale extraction. The descriptor itself is unchanged from the inner extractor’s output: at coarser octaves the descriptor patch covers a larger world-space region, which is exactly the scale invariance classical multi-scale frontends rely on. - Mutual
Softmax Config - Configuration for
MutualSoftmaxMatcher. - Mutual
Softmax Matcher - LightGlue-style matcher operating on unit-norm descriptors. See module docs.
- Noop
Local Refiner - Noop
Visual Odometry Frontend - Observation
- Online
BaImu State Row - Per-(trigger, keyframe) summary of the streaming IMU refinement
state — one entry per row produced by
write_online_ba_imu_state_csv. Exposed so callers that want to post-process the same data programmatically don’t have to re-parse the CSV. - Online
BaTrigger Stats - Per-trigger BA outcome, exposed so callers can inspect the LM trace, the number of tracks/observations refined, and how many poses the trigger touched.
- Online
Slam Admitted Loop Constraint - One loop-closure constraint admitted into the running pose graph this
frame, with enough detail for external diagnostics (e.g. a per-frame CSV
log distinguishing shared-landmark from appearance-sourced closures).
Reported on
OnlineSlamLoopClosureRefinementStats::admitted_constraints; does NOT include constraints admitted via thepcm_batch_rescreenpromotion path (those remain counted only inOnlineSlamLoopClosureRefinementStats::loop_closures_pcm_promoted). - Online
Slam Config - Online
Slam Covisibility Local BaConfig - Per-session configuration for visual-only covisibility local BA inside
OnlineSlamPipeline. - Online
Slam Covisibility Local BaStats - Per-frame outcome of the visual-only covisibility local BA stage.
Exposed on
OnlineSlamResult::covisibility_local_ba;Someonly when the stage was configured, a new keyframe was applied, and the trigger interval fired. - Online
Slam Local BaConfig - Configuration for the sliding-window local VI-BA stage.
- Online
Slam Loop Closure Refinement Config - Per-session configuration for the online loop-closure + pose-graph
refinement stage owned by
OnlineSlamPipeline. When attached viaOnlineSlamConfig::pose_graph_refinement, the pipeline maintains a runningPoseGraphmirror ofmap.keyframes, runs the configuredLoopRefinementVerifieron every candidate emitted bydetect_loop_closure_candidates, and folds verifiedLoopClosureConstraints into the graph. Whentrigger_every_new_constraintsnew verified edges have accumulated since the last solve,PoseGraph::optimize_se3_iterativeruns and the optimised keyframe poses are written back into the map. - Online
Slam Loop Closure Refinement State - Running state for the online loop-closure + pose-graph refinement
stage. Lives on
OnlineSlamPipelinewhenOnlineSlamConfig::pose_graph_refinementisSome. - Online
Slam Loop Closure Refinement Stats - Per-frame outcome of the online loop-closure + pose-graph
refinement stage. Exposed on
OnlineSlamResult::pose_graph_refinementand used by the demos to audit verifier acceptance + PGO trigger cadence. - Online
Slam Motion ViInit Config - Pipeline-level configuration for the motion-based VI init stage.
- Online
Slam Pipeline - Online
Slam Rejected Loop Constraint - A verified loop measurement rejected before graph insertion. Keeping the measurement is essential for deciding offline whether a robust gate caught a false closure or over-rejected a ground-truth-consistent one.
- Online
Slam Relocalization Appearance Candidate - One appearance-retrieval keyframe candidate considered by the relocalization recovery path.
- Online
Slam Relocalization Appearance Config - Online
Slam Relocalization Config - Per-session configuration for the relocalization-on-tracker-death
stage owned by
OnlineSlamPipeline. When attached viaOnlineSlamConfig::relocalization, the pipeline owns aLocalizationPipelineand runs it against the full visual map on every frame whose primarytrack_framecall returnedlocalization.success == false. The recovered solution is accepted when it clears every gate below; on acceptance, the tracker’s history is overwritten viaTracker::accept_relocalization_resultand the frame proceeds through the rest ofprocess_frameas if primary tracking had succeeded. - Online
Slam Relocalization Covisibility Config - Online
Slam Relocalization State - Running state for the relocalization-on-tracker-death stage. Lives
on
OnlineSlamPipelinewhenOnlineSlamConfig::relocalizationisSome. Owns a dedicatedLocalizationPipelinewith default thresholds so the relocalization attempt is independent of the tracker’s own (typically much stricter, motion-prior-dependent) localization pipeline. - Online
Slam Relocalization Stats - Per-frame outcome of the relocalization-on-tracker-death stage.
Exposed on
OnlineSlamResult::relocalization;Someonly on frames where the stage actually attempted a recovery (i.e. the primary tracker returnedsuccess == falseAND the stage was enabled). - Online
Slam Result - Online
Slam ViInit Config - Optional auto-bootstrap stage that runs a
crate::VisualInertialInitializerover the pipeline’s incoming IMU stream and atomically promotes the recovered(R_w←b, b_g, b_a)into the running pre-integrator on the first keyframe. - Online
Stereo VoBa - Sliding-window stereo VO + BA composition.
- Online
Stereo VoBa Config - Configuration for
OnlineStereoVoBa. - Ordered
Pair Candidate - One unique, normalized image pair and all policies that proposed it.
- Ordered
Pair Generator Config - Pair-generation policy shared by sequential SfM frontends.
- Ordered
Pair Hints - Optional dynamic inputs produced by tracking, retrieval, or track mining.
- P3PGrunert
- Grunert’s P3P solver:
P3Pfixed toP3PSolver::Grunert. - Pairwise
Keyframe View - One keyframe’s appearance in a pairwise loop-closure scan: the frame id is
what the produced
LoopClosureCandidateuses forquery_frame_id/matched_keyframe_id. The keypoint and descriptor slices are typically borrowed from aFeatureSet(seePairwiseKeyframeView::from_features). - Pairwise
Loop Closure Scanner Config - Configuration for
scan_pairwise_loop_closures. - Pairwise
Matches - Geometrically verified matches between two images of the set. The match
indices are keypoint indices into
features[image_i]/features[image_j], and are assumed to have already survived an essential-matrix RANSAC (i.e. they are inliers, not raw descriptor nearest neighbours). - Pairwise
Pose Factor - A relative-pose constraint between two BA keyframes, e.g. an IMU pre-integration delta, a wheel-odometry tick, or an external pose-graph edge being lifted into BA.
- PerImage
Cameras - Validated, index-aligned per-image pinhole calibrations.
- PerPose
Gravity Observation - Per-keyframe observation of the gravity direction in camera
coordinates. Each entry constrains
R_wc ツキ g_world 竕・g_camera_observedat the named keyframe; the residual and Jacobian shape are identical toGravityPrior’s global pose-independent variant, except the observation is sourced per-keyframe rather than shared across all poses. - PerPose
Gravity Prior - Per-keyframe gravity-alignment prior. Each
PerPoseGravityObservationadds a rotation-domain residual at its keyframe; the prior as a whole shares a single world-frame gravity vector and stiffness. - PnPLoop
Closure Verifier - PnP-based loop-closure verifier. Reuses the project’s
PnPRansacto re-localize the current frame against landmarks observed by the candidate keyframe; if the recovered absolute pose has enough inliers and a small reprojection error, the candidate is accepted and the relative pose (older keyframe → current frame) is filled intoLoopClosureVerification::relative_pose. - PnPLoop
Closure Verifier Config - Configuration thresholds for
PnPLoopClosureVerifier. - PnPRansac
- Pose
- Pose
Covariance - Pose
Estimation Failure Diagnostics - Pose
Estimator Diagnostics - Pose
Graph - Sparse pose graph keyed by keyframe id. Stores per-node poses plus a flat list of sequential and loop-closure edges, and provides a single translation-only Gauss-Newton step that keeps node rotations fixed.
- Pose
Graph Edge - Edge in a sparse
PoseGraph. Encodes a measuredprevious_to_currentSE3 between two keyframes plus a positive weight used by translation-only least squares. - Pose
Graph Optimization Step - Single Gauss-Newton step diagnostics.
- Pose
Graph Se3Config - Configuration for
PoseGraph::optimize_se3_iterative. - Pose
Graph Se3Iteration Stats - Per-iteration diagnostics for
PoseGraph::optimize_se3_iterative. - Pose
Graph Se3Result - Result of a full SE(3) Gauss-Newton run.
- Pose
Prior Measurement - Pose
Prior Visual Override Config - Pose
Trajectory - Position
Covariance - Position
Prior - A bundle of per-keyframe absolute position constraints.
- Position
Prior Observation - One absolute position measurement for a single keyframe. The
expected world-frame camera centre is compared against the BA’s
current estimate of
竏坦盞 ツキ t. Designed for translation-domain priors fed from GNSS, an external altimeter, or 窶・in evaluation scenarios 窶・ground-truth poses; the prior constrains TRANSLATION only, complementingGravityPriorwhich constrains ROTATION only. - Prior
Config - Prior
Submap Selector - Projection
Correspondence Builder - ORB-SLAM3-style projection-guided correspondence building: instead of
matching every candidate landmark descriptor against every query
descriptor (
CorrespondenceBuilder’s all-vs-all search), each candidate landmark is projected into the query image with a pose prior and matched only against the query keypoints that fall withinsearch_radius_pxof the projection. This trades the appearance-only search for a much smaller, geometrically-gated candidate window per landmark, which both disambiguates repeated/near-duplicate descriptors (only one is ever in the window) and is materially cheaper when the map is large. - Projection
Guided Tracking Config - Provided
Feature Extractor - Query
Image - Radial
Tangential - OpenCV-style radial-tangential distortion coefficients
(k₁, k₂, p₁, p₂). Thek₃/ higher-order radial term is intentionally not modelled — EuRoC and most automotive sensors publish only the 4-coefficient form, and addingk₃later is an additive change to this struct, not a redesign. - Radius
Landmark Selector - Radius
Submap Selector - Ransac
Report - Reconstructed
Landmark - A single reconstructed 3D point with its full multi-view track.
- Relative
Pose Error - One relative-pose-error sample over a single Δ-spaced pair.
- Relative
Pose Error Config - Configuration for the TUM-style relative pose error (RPE).
- Relative
Pose Error Statistics - Distribution statistics for one RPE channel (translation or rotation).
- Relative
Pose Error Summary - Aggregated TUM-style relative pose error over all Δ-spaced pairs.
- RigBa
Stats - RigCorrespondence
Build - CSR plus the measurements collected while building it.
- RigCorrespondence
Csr - Read-only compact CSR for rig-local observation correspondences.
- RigCorrespondence
CsrBuilder - Deterministic builder for one rig-local observation graph.
- RigCorrespondence
Preview Stats - Preview measurements for a canonical rig-local correspondence graph.
- RigFrame
- Images captured at one timestamp and governed by one
world -> rigpose. - RigFrame
Image - One image and its calibrated sensor slot within a synchronized rig frame.
- RigSensor
- One calibrated sensor rigidly attached to a generalized camera rig.
- RigSfm
Config - Conservative controls for generalized-rig incremental reconstruction.
- RigSfm
Result - Output poses retain both the physical frame state and derived image states.
- RigSfm
Work Stats - Counters used to prove that frontier growth stays proportional to sparse observation support rather than rescanning the frame/track Cartesian product.
- SE3
- SO3
- Selectable
MapProvider - SfmTrack
- One reconstructed 3D point and the image observations that support it.
- Sim3
- A similarity transform in 3D:
Sim(3) = (s, R, t), acting on a point asS · p = s · R · p + t. - Sim3
Edge - Edge in a
Sim3PoseGraph: a measured relative similaritymeasurementsuch that, at the solution,pose_to ≈ measurement ∘ pose_from. - Sim3
Pose Graph - Sparse
Sim(3)pose graph keyed by keyframe id. - Sim3
Pose Graph Config - Configuration for
Sim3PoseGraph::optimize. - Sim3
Pose Graph Iteration Stats - Per-iteration diagnostics for
Sim3PoseGraph::optimize. - Sim3
Pose Graph Result - Result of a full
Sim3PoseGraph::optimizerun. - Simple
Keyframe Policy - Sparse
Factor Graph - Sparse
Factor Graph Config - Sparse
Factor Graph Update Stats - Sparse
Factor Key - Sparse
Factor Measurement - Optimizer-facing measurement carried by every edge. Geometric factors start with zero correction and isotropic information; learned update operators may replace these values in-place later.
- Sparse
Keyframe Factor - Staged
MapUpdate - Stereo
Adaptive Depth Gate Config - Configuration for
StereoDepthGate::Adaptive. - Stereo
Bootstrap Config - Tunable knobs for
bootstrap_stereo_landmarks. - Stereo
Bootstrap Landmark - A surviving triangulated stereo match.
- Stereo
Depth Gate Diagnostics - Per-frame diagnostics emitted by the stereo-depth gate.
- Stereo
Depth Gate State - Stateful memory for adaptive stereo-depth gating.
- Stereo
Feature - One triangulated stereo feature, anchored to its descriptor index in the
left
FeatureSet. - Stereo
Feature Config - Configuration for
triangulate_stereo_features. Defaults are tuned for rectified KITTI imagery. - Stereo
Pair Correspondence - One pair of metric 3D points (frame
aand frameb) believed to be the same physical scene point. Used byestimate_relative_pose_kabsch_ransac. - Stereo
Replenish Config - Tunable knobs for
build_stereo_replenish_candidates. - Stereo
Track - One multi-frame stereo track: a single landmark’s world-frame position
(anchored from the seed frame’s stereo triangulation, lifted into world
using the seed frame’s pose) plus its observations across one or more
frames. Produced by
extend_stereo_tracks_via_projection. - Stereo
Track Observation - One observation contributed by a multi-frame
StereoTrack. - Stereo
VoBa Config - Configuration for
refine_stereo_vo_with_ba. - Stereo
VoBa ImuInput - IMU input wired into a stereo-VO BA refinement. The caller supplies
n_frames − 1sample windows:windows[i]covers the integration interval from keyframeito keyframei + 1. The refiner pre- integrates each window withImuPreintegrator::new_with_biasat the initial bias linearisation point, registers a velocity / bias state per keyframe, and pushes anImuPreintegrationFactorfor every non-empty window. Whenbias_random_walk_weightisSome(w), every consecutive bias pair is also tied with aBiasRandomWalkFactorof weightw. - Stereo
VoBa ImuRefinement - Refined IMU state from a BA solve that included
StereoVoBaImuInput. The vectors are indexed by keyframe id (so entryicorresponds toinitial_poses[i]). Keyframes that did not participate in any IMU factor have their velocity left at the build-time initial value and their bias at the inputbias_*_init. - Stereo
VoBa ImuSample - Single body-frame IMU sample for a stereo-VO BA inter-keyframe window.
dtis the time elapsed since the previous sample (or since the window start for the first sample).gyroandaccelare body-frame; gravity is not pre-subtracted fromaccel— the BA-side IMU factor handles gravity compensation throughStereoVoBaImuInput::gravity_world. - Stereo
VoBa Refinement - Result of
refine_stereo_vo_with_ba. - Stereo
VoFrontend - Stateful rectified-stereo VO frontend. Each
process_paircall extracts features in both eyes, triangulates them, matches the previous frame’s left features against the new frame’s, and recovers the relative pose via 2D-3D PnP RANSAC with a 3D-3D Kabsch fallback. The first call seeds the world frame at identity; subsequent calls compose the recovered relative pose into the running world-frame trajectory. - Stereo
VoFrontend Config - Configuration for
StereoVoFrontend. Defaults are tuned for KITTI- scale rectified stereo with the project’sCornerFeatureExtractorpatch descriptors at radius 9; tighterkabsch.inlier_threshold_m/ looserstereo.max_depth_mmay be appropriate for sequences with faster motion or longer-range structure. - Stereo
VoPair Diagnostics - Stereo
VoReconstruction - Output of
reconstruct_stereo_vo_with_ba: a BA-grade sparse reconstruction (refined poses + merged multi-view landmark tracks) ready for COLMAP export. - Submap
IdRemap - Submap
Merge Evidence - Submap
Merge Quality - Submap
Merge Verification Config - Time
Delta - Timed
- Timestamp
- Track
Build Stats - Diagnostics from feature-track construction before triangulation.
- Track
Extension Config - Configuration for
extend_stereo_tracks_via_projection. Defaults are tuned for KITTI-scale per-frame motion (~1 m/frame at stride 1, ~7 m/frame at stride 8) and the project’sCornerFeatureExtractordescriptor scale. - Tracker
- Tracking
Config - Tracking
Evaluation Config - Tracking
Evaluation Result - Tracking
Result - Tracking
Stats - Trajectory
Error Summary - Trajectory
Evaluation Config - Trajectory
Evaluation Result - Trajectory
Sample - Trajectory
Similarity Transform - Trajectory
Summary - Trajectory
Translation Error - Triangulated
Landmark - Triangulation
Config - TumTrajectory
Parse Error - TwoView
Feature Match - TwoView
Match Set - TwoView
Match Visual Odometry Config - TwoView
Match Visual Odometry Frontend - Lightweight two-view VO frontend that turns externally supplied correspondences into a translation-only relative-pose estimate.
- Unknown
Focal Localization - Result of
LocalizationPipeline::localize_with_unknown_focal. - Verified
Submap Merge - Viba2
Config - Configuration for
run_viba2_inertial_with_scale— the outer-loop scale-recovery wrapper aroundrun_inertial_only_vi_ba. - Viba2
Stats - Outcome of
run_viba2_inertial_with_scale. - Visual
Inertial Initialization Result - Outcome of a successful stationary-window initialisation. All fields are in SI units; angles are encoded as a unit quaternion.
- Visual
Inertial Initializer - Stateful accumulator that ingests IMU samples one at a time and reports the recovered bootstrap as soon as the buffer satisfies every stationary-window predicate.
- Visual
Inertial Initializer Config - Configuration knobs for
VisualInertialInitializer. The defaults match the EuRoC stationary holding period (gravity z-up, ~0.5 s of quiet samples, conservative noise thresholds). - Visual
Map - Visual
MapValidation Report - Visual
Odometry Estimate - Visual
Odometry Pose Prior - Visual
Odometry Prior Provider - VoLoop
Closure Config - Configuration for
close_loops_on_vo_trajectory. - VoLoop
Closure Result - Output of
close_loops_on_vo_trajectory.
Enums§
- Adaptive
Motion Mode - Diagnostic snapshot of which inner motion model the adaptive wrapper is currently dispatching predictions through.
- BaError
- Calibration
Error - Camera
Model - Camera projection models understood by the shared geometry front-end.
- Colmap
Error - Common
Image Error - Corner
Feature Error - Correspondence
Build Error - Covisibility
Local BaError - Cross
Submap Candidate Failure Reason - Deep
Feature SetError - External
Deep Error - Feature
SetError - Frame
Prior Sync Evaluation Failure - Global
Reconstruction Error - Errors surfaced by
reconstruct_global_sfm. - Grayscale
Image Error - HogLike
Feature Error - Image
Sequence Error - Image
Sequence Validation Issue - ImuVelocity
Refresh Policy - Configuration for the adaptive IMU↔ConstantPose motion model
(
AdaptiveImuPoseMotionModel). - Incremental
SfmError - Why
incremental_sfmcould not build a reconstruction. - Keyframe
Decision Reason - Kitti
Dataset Error - Kitti
Oxts Error - Landmark
Candidate Mapping Failure Reason - Landmark
Candidate Validation Issue - Landmark
Init - Landmark initialisation strategy for
refine_stereo_vo_with_ba. SeeStereoVoBaConfig::landmark_init. - Linear
Solver - Linear solver backend used by pose-graph optimizers when the normal
equations
(H + λI) δ = -g(or the translation-only analogue) are solved. - Local
Refinement Reason - Localization
Failure Reason - Loop
Closure Candidate Source - Which stream a folded
LoopClosureConstraint(reported onOnlineSlamLoopClosureRefinementStats::admitted_constraints) came from. - Loop
Closure Verification Failure Reason - Reason a
LoopClosureVerificationrejected a candidate. - Loop
Refinement Solver - Which pose-graph solver backs
OnlineSlamLoopClosureRefinementConfig’s periodic PGO trigger. - Loop
Refinement Verifier - Which geometric verifier
OnlineSlamLoopClosureRefinementConfigruns on loop-closure candidates every frame. - MapAtlas
Error - MapUpdate
Validation Issue - Motion
Based ViInitialization Status - Read-only snapshot of
MotionBasedViInitializer’s internal state. - Motion
Based ViRejection Reason - Why a
MotionBasedViInitializer::try_initializecall returned without a fresh result. - Motion
ViInitialization Event - State-transition event exposed on
crate::OnlineSlamResult::vi_motion_init.Someonly on the frame where the motion-based stage actually changed state. - Motion
ViInitialization Status - Read-only snapshot of the motion-based VI init stage. Returned by
crate::OnlineSlamPipeline::motion_vi_initialization_status. - Next
Image Policy - Ranking policy for the next image offered to incremental PnP registration.
- Online
Slam Config Error - Configuration-level error raised on
crate::OnlineSlamPipeline::new(and exposed bycrate::OnlineSlamConfig::validate) for invalid combinations the type system cannot rule out. - Online
Slam Loop Constraint Rejection Reason - Front-end gate that rejected an otherwise geometrically verified loop constraint before it entered the pose graph.
- Ordered
Pair Source - Why an ordered view-graph pair was proposed.
- PerImage
Camera Error - Errors returned while constructing or applying a per-image calibration set.
- PerImage
Camera Global Error - Error from the per-image-camera global convenience wrapper.
- PerImage
Camera Incremental Error - Error from the per-image-camera incremental convenience wrapper.
- PnpMinimal
Solver - Minimal PnP solver chosen at run time; see the module docs.
- Pose
Estimation Failure Reason - Pose
Graph Edge Kind - Kind of an edge inside a
PoseGraph. - Pose
Graph Error - Errors returned by
PoseGraph::optimize_translations_once. - Pose
Graph Parse Error - RigBa
Backend - Bundle-adjustment backend used by the native calibrated-rig mapper.
- RigCorrespondence
Build Error - Errors found before a rig-local CSR can be materialized.
- RigSfm
Error - RigTrack
Builder - Deterministic feature-track construction policy for rig reconstruction.
- Robust
Kernel - Robust kernel applied to each pose-graph edge’s residual norm-squared. Down-weights edges whose squared residual exceeds the kernel threshold so outlier loop closures cannot dominate the least-squares solve.
- Sensor
LogError - Sparse
Factor Inactive Reason - Sparse
Factor Kind - Sparse
Factor State - Stationary
Rejection Reason - Diagnostic reason a stationary-window check failed.
- Stereo
Depth Gate - Runtime policy for the lower stereo-depth gate.
- Stereo
Relative Pose Mode - Stereo
VoBa Error - Stereo
VoError - Errors returned by
StereoVoFrontend::process_pair. The feature extractor’s error is type-erased into aBox<dyn Error>so the sameStereoVoErrortype accepts anyFeatureExtractorimplementation (classicalCornerFeatureExtractor, learnedHogLikeFeatureExtractor, or a future ONNX-backed deep head). - Track
Source - Which algorithm builds step 1’s feature tracks from
pairwise— the M2 port indocs/colmap_port_plan.md(“PersistentCorrespondenceGraph”).Self::UnionFindis the original ad hoc union-find ([build_tracks]), kept as the default (see the M2 results section in that doc for the ETH3D A/B that motivated staying opt-in rather than flipping the default).Self::CorrespondenceGraphinstead builds the same tracks by routing throughvisloc_vision::two_view::correspondence_graph::CorrespondenceGraph([build_tracks_via_graph]) — COLMAP’s persistent view-graph object, which also exposesNumObservationsForImage/NumCorrespondencesForImage/ExtractTransitiveCorrespondences-style queries the union-find has no way to answer, for future milestones (M4’s transitive pairing, in particular). Both paths are proven to produce byte-identical tracks on this crate’s existing fixtures (see thegraph_tracks_match_union_find_tracks_*tests). - Tracking
Evaluation Failure - Tracking
Event - Tracking
Failure Reason - Tracking
State - Trajectory
Alignment - Trajectory
Evaluation Failure - Trajectory
File Error - Triangulation
Failure Reason - TwoView
Match Error - ViInit
Fallback - Behaviour when the pipeline’s auto-bootstrap stage runs out of buffer space or wall-clock IMU duration without successfully recovering a stationary window.
- ViInitialization
Event - State-transition event exposed on
crate::OnlineSlamResult::vi_init.Someonly on the frame where the auto-bootstrap stage actually transitioned state;Noneotherwise. The terminal events (Succeeded/GaveUp) are emitted at most once per sequence. - ViInitialization
Status - Read-only snapshot of the pipeline’s VI initialisation stage.
Returned by
crate::OnlineSlamPipeline::vi_initialization_status. - Visual
MapValidation Issue - VoLoop
Closure Error - Error returned by
close_loops_on_vo_trajectory.
Constants§
- HOG_
BINS - Number of orientation bins per HOG cell.
- HOG_
CELLS_ PER_ SIDE - Number of cells per side (final descriptor is
CELLS_PER_SIDE^2 * HOG_BINS). - HOG_
CELL_ SIZE - Pixels per cell side. Patch side is
HOG_CELLS_PER_SIDE * HOG_CELL_SIZE. - HOG_
DESCRIPTOR_ DIM - Total descriptor dimension.
- KITTI_
OXTS_ FIELD_ COUNT - Number of whitespace-separated fields expected in a KITTI OXTS data row.
Traits§
- Candidate
Selector - Deep
Feature Extractor - Deep-style frontend trait: produces keypoints with per-feature scores and unit-norm descriptors. Mirrors the output contract of SuperPoint/DISK so an ONNX-backed implementation can drop in later without touching consumers.
- Descriptor
Provider - Feature
Extractor - Frame
Localizer - Keyframe
Policy - Local
Refiner - Localization
Prior Provider - Loop
Closure Verifier - Trait for a loop-closure candidate verifier. Concrete implementations
receive 2D-2D correspondences in pixel coordinates between the older
keyframe (
previous_xy) and the current/query frame (current_xy) plus the shared camera intrinsics. - MapProvider
- Matcher
- Motion
Model - Pose
Estimator - Pose
Refiner - Robust
Pose Estimator - Submap
Selector - Timed
Measurement - Triangulator
- Visual
Odometry Frontend
Functions§
- appearance_
loop_ candidate_ descriptor_ store - Build a
visloc_core::types::LandmarkDescriptorStorescoped to a single keyframe’s own observed landmarks (no covisible-neighbor expansion). Used bybuild_appearance_loop_candidatesto restrict descriptor-based correspondence building to exactly the candidate keyframe’s landmarks, since appearance candidates by construction share no landmark ids with the current frame. ReturnsNonewhen the keyframe has no observations at all. - bearing_
alignment_ error_ deg - Angular error in degrees between two unit bearings (antipodal-aware).
- bootstrap_
stereo_ landmarks - Match descriptors between the two feature sets, triangulate each
surviving pair, and return the matches that pass the configured depth /
reprojection-error gates. Results are returned in
left_keypoint_indexorder. - bootstrap_
stereo_ landmarks_ from_ correspondences - Triangulate known left→right correspondences (e.g. Basalt stereo optical
flow) without descriptor matching.
correspondencesare(left_keypoint_index, right_pixel)pairs intoleft_keypoints. - build_
appearance_ loop_ candidates - build_
appearance_ loop_ candidates_ with_ diagnostics - build_
pyramid - Build a 2× downsampled image pyramid by averaging 2×2 pixel blocks. Each
successive level is half the width and half the height of the previous
one. The averaging is a coarse low-pass filter that suffices for
keypoint detection at coarser scales — Gaussian smoothing would be more
faithful but adds a separable convolution this crate doesn’t currently
need elsewhere. The first element of the returned
Vecis the input image at scale1.0, the second is at0.5, etc. Levels stop when further downsampling would drop one of the dimensions to zero. - build_
rig_ correspondence - Build a compact rig-local CSR and return its preview statistics.
- build_
rig_ correspondence_ csr - Build a compact rig-local CSR from feature counts and verified pairs.
- build_
rig_ correspondence_ csr_ from_ features - Convenience wrapper using the existing feature-set representation.
- build_
stereo_ metric_ points - Triangulate same-instant stereo features into metric cam0-frame points, keyed by cam0 keypoint index. Unlike replenishment candidate construction, this requires neither a tracked pose nor an anchor keyframe and can run before online tracking/loop closure.
- build_
stereo_ replenish_ candidates - Build stereo-replenishment
LandmarkCandidates for the current frame. - build_
stereo_ temporal_ correspondences - Build 2D-3D correspondences for PnP between two consecutive frames, using
frame-
a’s stereo triangulations and frame-b’s left features. - close_
loops_ on_ vo_ trajectory - Close loops on an open stereo-VO trajectory and return the globally consistent poses.
- close_
loops_ on_ vo_ trajectory_ with_ globals - Like
close_loops_on_vo_trajectorybut with the per-frame global descriptors supplied by the caller instead of computed internally as a k-means VLAD over the local SuperPoint descriptors. - close_
loops_ on_ vo_ trajectory_ with_ globals_ and_ loop_ matches - Like
close_loops_on_vo_trajectory_with_globals, but use caller-supplied descriptor matches for selected loop candidates. The key is(older, newer)and the match convention isquery_index = newer left feature,train_index = older left feature. Candidates without an entry fall back to the built-in brute-force descriptor matcher. - close_
loops_ on_ vo_ trajectory_ with_ loop_ matches - Like
close_loops_on_vo_trajectory, but use caller-supplied descriptor matches for selected loop candidates. The key is(older, newer)and the match convention isquery_index = newer left feature,train_index = older left feature. Candidates without an entry fall back to the built-in brute-force descriptor matcher. - common_
image_ sequence_ summary - correspondences_
2d3d_ for_ loop_ candidate - Build 2D-3D correspondences for a loop-closure candidate by intersecting the current frame’s tracking inliers with the older keyframe’s observed landmarks. Each shared landmark contributes one entry pairing the current frame’s pixel observation with the landmark’s world position.
- correspondences_
for_ loop_ candidate - Build pixel-space two-view correspondences for a loop-closure candidate
from the current frame’s tracking inliers and an older keyframe’s
observations. Each shared landmark id contributes one correspondence
(keyframe_xy, current_xy). - decode_
common_ image - detect_
loop_ candidates - Propose loop candidates by gap-constrained appearance retrieval: for each
query frame, its strongest earlier matches beyond
min_frame_gapwhose cosine similarity clearsmin_similarity. - estimate_
free_ poses_ from_ prior_ rays - Approximate free-camera poses by scaling a prior↔free essential edge to the metric baseline implied by multi-ray centre triangulation in the incremental prior frame.
- estimate_
gravity_ and_ velocities - Recover the world-frame gravity vector and per-keyframe velocities from
a window of IMU preintegration factors evaluated against FIXED visual
body poses (
map’s poses are assumed already converted to world-to-body, exactly asMotionBasedViInitializer::try_initialize_with_bias_seed’scandidate_mapconversion produces). - estimate_
gyro_ bias - Recover the shared gyro bias from a window of IMU preintegration
factors’ ROTATION component evaluated against FIXED visual body poses
(
map’s poses are assumed already converted to world-to-body, exactly asMotionBasedViInitializer::try_initialize_with_bias_seed’scandidate_mapconversion produces — same precondition asestimate_gravity_and_velocities). - estimate_
relative_ pose_ kabsch_ ransac - 3D-3D Kabsch (Procrustes) registration with RANSAC.
- extend_
stereo_ tracks_ via_ projection - Build multi-frame stereo tracks by projecting each frame’s stereo triangulations forward through subsequent VO poses and searching for descriptor-matching stereo features near the predicted pixel.
- filter_
pose_ priors_ by_ edge_ disagreement - Drop incremental priors whose centres systematically disagree with
two-view edge bearings on prior–prior pairs (GT-free). For each prior,
flip_fractionis the weight-weighted share of incident prior–prior edges whose essentialdirection_ijis antipodal to the prior displacement. Priors withincident >= min_incidentandflip_fraction >= min_flip_fractionare candidates; at mostmax_dropsworst (highest flip fraction) are cleared. - filter_
pose_ priors_ by_ free_ centre_ residual - Drop incremental priors whose centres disagree with a free (rotation- pinned, centre-free) global position solve after leave-one-out Sim(3) alignment onto the other priors. Bent hubs that are locally consistent with wrong edges still stick out against the free gauge. Returns filtered priors and how many were kept.
- filter_
pose_ priors_ by_ track_ quality - Drop incremental priors whose local track support is too thin or whose
mean reprojection exceeds
max_mean_reprojection_px. Returns filtered priors and how many were kept. - generate_
ordered_ pairs - Generate a sorted, duplicate-free ordered view graph.
- gt_
bearing_ in_ prior_ frame - Unit bearing from
fromcamera towardtocamera, infrom’s frame (GT). - incremental_
rig_ sfm - Reconstruct synchronized rig frames with one generalized body pose per timestamp. The first pose fixes the world gauge; the calibrated inter- sensor baseline fixes metric scale.
- incremental_
sfm - Run incremental SfM over an unordered image set.
- incremental_
sfm_ with_ initial_ poses - Run incremental SfM from an externally supplied, partial pose model.
- incremental_
sfm_ with_ per_ image_ cameras - Run the existing incremental mapper using one validated camera per image.
- incremental_
sfm_ with_ sequence_ fallback_ overrides - Run incremental SfM with a sequence-fallback admission exception for a
caller-provided set of pair entries. The pair indices must refer to the
supplied
pairwiseslice. Only entries selected by the caller’s conservative high-support F→E promotion are eligible for the relaxed triangulation fraction; every other sequence edge keeps the ordinary gate. - incremental_
sfm_ with_ track_ membership - Run the plain incremental mapper with an externally supplied set of observation partitions instead of constructing tracks from pairwise correspondences.
- kitti_
projection_ to_ pinhole_ camera - localize
- localize_
frame - localize_
frame_ with_ descriptor_ store - localize_
frames - localize_
frames_ with_ descriptor_ store - localize_
with_ descriptor_ store - loop_
closure_ constraints_ from_ candidates - Convenience helper that builds a constraint per verified candidate. Keeps the same ordering as the input slice and silently drops candidates that were not verified or lack a recovered relative pose.
- map_
provider_ stats - metric_
temporal_ quadrilateral_ tracks - Return deterministic, observation-disjoint stereo-temporal
quadrilaterals for diagnostics and independent correspondence screening.
The returned tracks contain exactly four
(image, keypoint)observations. - metric_
temporal_ quadrilateral_ tracks_ in_ frame_ gap - Return the same deterministic, observation-disjoint exact quadrilaterals for an explicit temporal-baseline range. Invalid or reversed ranges yield no tracks. This is intended for bounded long-range correspondence audits.
- online_
ba_ imu_ state_ rows - Flatten a streaming trigger history into the per-(trigger, keyframe)
IMU-state rows that
write_online_ba_imu_state_csvwrites out. Triggers whoseOnlineBaTriggerStats::resultisError whoseStereoVoBaRefinement::imu_refinementisNone(i.e. the trigger ran visual-only) contribute no rows. Exposed for tests and callers that need the in-memory representation. - online_
slam_ results_ to_ html_ report - pair_
correspondences - pair_
essential_ mean_ sampson_ error - Mean Sampson distance (normalized coords) over essential inliers.
- pairwise_
pose_ factors_ from_ loop_ closures - Convert a slice of verified
LoopClosureConstraints into BA-readyPairwisePoseFactors, all sharing the same scalarweight. Convenience wrapper for the common case where every loop edge is treated as equally-informative. For per-edge weighting (e.g. scaling byinlier_count), callLoopClosureConstraint::to_pairwise_pose_factordirectly. - parse_
external_ deep_ features_ txt - parse_
external_ deep_ matches_ txt - parse_
gnss_ measurements_ txt - parse_
kitti_ calibration_ txt - parse_
kitti_ oxts_ sample - Parse a single OXTS data line into a
KittiOxtsSample. - parse_
kitti_ oxts_ timestamp_ line - Parse one KITTI
timestamps.txtrow into wall-clock nanoseconds. - parse_
kitti_ oxts_ timestamps_ txt - Parse the textual KITTI
timestamps.txt(one row per frame, formatted asYYYY-MM-DD HH:MM:SS.fffffffff) into a list of wall-clock nanoseconds since the Unix epoch. - parse_
stereo_ vo_ imu_ samples_ txt - Parse a plain-text per-window IMU sample file.
- parse_
timestamp_ nanoseconds_ txt - parse_
two_ view_ matches_ txt - preview_
rig_ correspondence_ stats - Collect bounded correspondence preview statistics without exposing the temporary builder state to callers.
- preview_
rig_ correspondence_ stats_ from_ features - Convenience preview wrapper using the existing feature-set representation.
- preview_
track_ build_ stats - Build only the feature-track topology and return its diagnostics, without seed selection, triangulation, registration, or bundle adjustment. This is intended for cheap preflight rejection of a candidate view graph before an expensive independent mapper arm is launched.
- prior_
free_ essential_ gt_ bearing_ error_ deg - Essential primary-bearing error vs GT for a prior↔free pair (degrees).
- read_
common_ image - read_
common_ image_ sequence - read_
common_ image_ sequence_ dir - read_
common_ image_ sequence_ dir_ with_ timestamp_ file - read_
common_ image_ sequence_ dir_ with_ timestamps - read_
common_ image_ sequence_ with_ timestamps - read_
external_ deep_ features_ txt - read_
external_ deep_ matches_ txt - read_
gnss_ measurements_ txt - read_
kitti_ calibration_ txt - read_
kitti_ image_ sequence_ dir - read_
kitti_ image_ sequence_ dir_ with_ timestamp_ file - read_
kitti_ oxts_ dir - Read every synchronised OXTS record under
<oxts_root>/data/together with the matching<oxts_root>/timestamps.txtentries. - read_
kitti_ pinhole_ camera - read_
timestamp_ nanoseconds_ txt - read_
two_ view_ matches_ txt - reconstruct_
global_ sfm - End-to-end GLOMAP-style reconstruction: estimate per-pair relative poses from verified matches, average them globally, triangulate the feature tracks against the averaged cameras, and finish with one bundle adjustment over everything registered.
- reconstruct_
global_ sfm_ with_ per_ image_ cameras - Run the existing global mapper using one validated camera per image. The
returned poses/tracks are in the reference-camera ray convention; callers
can use
PerImageCameras::from_reference_pixelfor native-pixel output. - reconstruct_
global_ sfm_ with_ priors - Like
reconstruct_global_sfm, but pins cameras that already have absolute poses (typically from a prior incremental solve) and places the remaining images in that gauge. - reconstruct_
stereo_ vo_ with_ ba - Build a COLMAP-grade sparse reconstruction from a stereo VO trajectory.
- refine_
rig_ sfm_ with_ fixed_ frame_ rotations - Refine an existing rig reconstruction while holding the supplied frame rotations fixed.
- refine_
stereo_ vo_ with_ ba - Refine a stereo VO trajectory with multi-frame stereo bundle adjustment.
- refine_
visual_ map_ with_ covisibility_ ba - Run covisibility-selected local BA and write refined poses/landmarks back to
map. - refine_
visual_ map_ with_ covisibility_ ba_ and_ neighbor_ allowlist - Run covisibility BA with variable neighbors admitted by the active sparse factor graph. Boundary anchors outside the allowlist still constrain the solve and therefore preserve the local/global gauge relationship.
- relative_
pose_ from_ essential - relative_
world_ to_ camera - Compute the relative SE3
previous_to_currentsuch thatto_pose.world_to_camera == relative * from_pose.world_to_camera. This is the same convention used byPoseGraphEdge::measurement. - rematch_
essential_ admission_ ok - Gate for free↔prior rematch E-gains: optional chirality margin floor and optional triangulation anchor from two other prior↔free essentials.
- reproject
- scan_
pairwise_ loop_ closures - Walk every keyframe pair
(i, j)withi < jand a sufficient frame-id gap, brute-force match descriptors, and run the verifier on the resulting 2D-2D correspondences. Returns oneLoopClosureCandidateper accepted pair, withverificationpopulated andgeometrically_verified = true. Rejected pairs are dropped (vs theverify_loop_closure_candidates_*helpers which mutate caller-supplied candidates in place); this routine is meant for the “I have a list of keyframes and want loop detection, not just verification” case. - select_
covisibility_ local_ ba_ window - Select the covisibility local-BA window without running the optimizer.
- select_
covisibility_ local_ ba_ window_ with_ neighbor_ allowlist - Select a local-BA window while restricting variable neighbor keyframes to an upstream active-factor set. Fixed boundary anchors remain unrestricted.
- slice_
imu_ samples_ for_ keyframes - Slice a globally-timestamped IMU stream into per-keyframe pre-integration
windows that match the
StereoVoBaImuInput::windowslayout. - stereo_
pair_ correspondences - Build
StereoPairCorrespondences by joining the per-frame triangulations on temporal descriptor matches: each match links a left keypoint at frameato a left keypoint at frameb; if both have a stereo triangulation the pair contributes one 3D-3D correspondence. - tracking_
results_ to_ csv - tracking_
results_ to_ html_ report - triangulate_
stereo_ feature_ matches - Triangulate explicit rectified-stereo matches into metric 3D points.
- triangulate_
stereo_ features - Match the left and right
FeatureSets using the rectified-stereo epipolar constraint and triangulate every accepted correspondence into a metric 3D point. Returns oneStereoFeatureper match that passes theStereoFeatureConfiggates. - triangulate_
stereo_ pixel - Triangulate a 3D point in the left camera’s frame from a rectified
stereo pixel pair.
cameracarries the (shared) pinhole intrinsics andbaselineis the positive distance between the camera centers. - triangulate_
two_ view_ left_ frame - DLT triangulation for one (left, right) observation pair, returning the 3D point expressed in the left camera frame.
- umeyama_
similarity_ transform - Closed-form similarity registration (Umeyama 1991).
- validate_
common_ image_ sequence_ dimensions - validate_
common_ image_ sequence_ timestamps - verify_
loop_ closure_ candidates - Run
verifieron every supplied candidate, mutating eachLoopClosureCandidatein place:verificationis set to the verifier output andgeometrically_verifiedis replaced withLoopClosureVerification::verified. Candidates whose matched keyframe is no longer inmapare left untouched. - verify_
loop_ closure_ candidates_ hybrid - Run a
HybridLoopClosureVerifieron every supplied candidate. For each candidate this builds both 2D-2D and 2D-3D correspondences, runs the two backends in turn, combines them into a consensusLoopClosureVerification, and writes the result back intoverification/geometrically_verifiedin place. Candidates whose matched keyframe is no longer inmapor whose stored keyframe pose is missing are left untouched. - verify_
loop_ closure_ candidates_ pnp - Run a PnP-based
PnPLoopClosureVerifieron every supplied candidate. For each candidate this builds 2D-3D correspondences viacorrespondences_2d3d_for_loop_candidate, runs PnP RANSAC on them, and updatesverificationandgeometrically_verifiedin place. Candidates whose matched keyframe is no longer inmap, or whose stored keyframe pose is missing, are left untouched. - write_
colmap_ binary_ model_ for_ 3dgs - Binary counterpart of
write_colmap_text_model_for_3dgs. Writescameras.bin,images.bin, andpoints3D.binunderout_dirin the same little-endian layout COLMAP’s reference reader expects (seeparse_cameras_bin,parse_images_bin,parse_points3d_binfor the exact byte layouts). Useful for downstream trainers that only ingest the binary form (Inria 3DGS / nerfstudio both accept it transparently). All other semantics — single shared camera, sparse per-frame stereo landmarks lifted throughpose.camera_to_world(),frame_idxas the COLMAP image id,image_name(frame_idx)for theNAMEfield — match the text writer exactly. - write_
colmap_ reconstruction_ for_ 3dgs - Write a COLMAP text model from a merged-track sparse reconstruction.
- write_
colmap_ reconstruction_ for_ 3dgs_ with_ cameras - Write a merged-track COLMAP text model with one calibrated camera per
output image. This is the multi-camera counterpart to
write_colmap_reconstruction_for_3dgs; all camera ids and intrinsics are retained, and eachimages.txtheader points at the camera corresponding to that frame. The legacy single-camera writer is intentionally untouched. - write_
colmap_ text_ model_ for_ 3dgs - Write a COLMAP text model suitable for bootstrapping a 3D Gaussian Splatting (3DGS) / NeRF training pipeline.
- write_
online_ ba_ imu_ state_ csv - Write the per-(trigger, keyframe) IMU refinement state from a
streaming BA run to a CSV file. One row per keyframe inside each
trigger’s window; triggers without an
imu_refinement(visual-only, or refinerErr) contribute nothing. Returns the number of data rows written (header line excluded). - write_
online_ slam_ results_ html_ report - write_
png_ gray - write_
tracking_ results_ csv - write_
tracking_ results_ html_ report
Type Aliases§
- Camera
Id - FrameId
- Landmark
Candidate Id - Landmark
Id - Localization
Ransac - The RANSAC PnP estimator of the default
LocalizationPipeline: its minimal solver is chosen at run time byLocalizationConfig::pnp_solver. - Pose
Covariance Matrix - RigObservation
Id - Flattened id of an image/keypoint observation in a rig-local graph.
- Sim3
Information - A
7×7Sim(3)information matrixΩ(inverse measurement covariance). - Sim3
Tangent - Tangent vector
ξ = [ρ; ω; σ]ofSim(3): translation partρ(0..3), rotation partω(3..6), and log-scaleσ(6). - Submap
Id - Timed
Frame - Timed
Pose