Online UAV Photogrammetry · Open-Source CPU-Only Windows Application

RGMAP: GNSS-Guided Robust Online Structure from Motion for UAV Orthophoto Mapping

99.88%
Mean Completeness
100% registration on 27 / 28 UAV sequences (vs. 12 valid for ORB-SLAM3)
1.29 s
Mean Runtime / Image
Real-time on 25 / 28 missions; 3.30× faster than Metashape (wall-clock)
3.06 m
Mean ATE (RMSE)
83.4% lower than SfM-on-the-fly; outperforms Metashape (3.91 m)
193 km
Benchmark Scale
28 sequences · 7 datasets · 14,372 images · 193.0 km flight path

Overview Video

A 3-minute walkthrough of RGMAP's motivation, four-stage GNSS-coupled online SfM pipeline, live desktop demos, and benchmark results.

RGMAP Narrated Paper Overview — Covers M1–M4 architecture, live urban & agricultural orthomosaicking, and 28-sequence evaluation.
HD MP4 · 02:45

Bridging Online Visual Tracking and Photogrammetric Reliability

Real-time UAV orthophoto generation is vital for the low-altitude economy, industrial inspection, and emergency rescue, requiring camera poses at the rate images arrive. Existing online structure from motion (SfM) methods register images solely against previously triangulated landmarks, often suffering from tracking failures. Moreover, although GNSS data is inherently required for georeferenced orthophotos, prior works mostly limit it to a post-hoc similarity transformation rather than leveraging it across the pipeline to boost robustness. To address these limitations, we propose RGMAP, a robust GNSS-guided online SfM and orthophoto mosaicking framework that incorporates GNSS priors at four stages: selecting initial pairs by GNSS-measured camera separation, refining PnP poses with Sampson epipolar residuals from untriangulated matches, re-registering failed images using landmarks from GNSS-nearest registered cameras, and adding camera-position factors to bundle adjustment (BA) under a dynamically re-estimated visual-to-ENU similarity transformation. Registered images are concurrently rectified onto a georeferenced plane on the fly. Evaluated across 28 sequences from seven UAV datasets, RGMAP achieves 99.88% mean image registration completeness (100% on 27 sequences), 1.294 s mean processing time per image (3.30× and 2.71× wall-clock speedups over Metashape and OpenDroneMap), and 3.056 m mean ATE RMSE (83.4% lower than SfM on-the-fly). We release RGMAP as a lightweight, CPU-only Windows application to promote widespread adoption and rapid emergency deployment.

M1 · Init

GNSS-Guided Metric Seed Initialization

Selects geometrically well-conditioned initial pairs by ENU antenna separation and scales the initial translation directly to physical meters before map growth.

M2 · Pose

Hybrid PnP + Untriangulated Epipolar Refinement

Couples 2D–3D landmark reprojection residuals with focal-scaled Sampson epipolar constraints from untriangulated 2D–2D frontier matches.

M3 · Recovery

Single-Map GNSS-Neighborhood Recovery

Recovers failed registrations using deduplicated landmarks from GNSS-nearest registered cameras, preventing multi-submap fragmentation across sorties.

M4 · GNSS-BA

Two-Tier GNSS-Constrained Bundle Adjustment

Embeds lever-arm compensated GNSS position factors into sliding-window local BA and periodic whole-map BA to suppress scale and doming drift.

Real-Time Orthomosaicking Demonstrations

Screen recordings of the standalone CPU-only RGMAP Windows application generating georeferenced orthomosaics incrementally as UAV images arrive.

Urban Scene 00:10

Online Urban Orthomosaic Generation

Each refined map snapshot feeds an asynchronous worker that rectifies registered images onto a georeferenced plane and blends them seamlessly in the Windows UI.

Agricultural Scene 00:27

Progressive Coverage Accumulation over Satellite Basemap

Watch newly acquired orthomosaic tiles expand live over the surrounding satellite basemap, maintaining geometric alignment across homogeneous farmland.

Four-Stage GNSS-Coupled Online SfM Pipeline

RGMAP Framework Architecture Click to enlarge

Overview of the RGMAP framework. Incoming UAV images and asynchronous GNSS measurements flow through spatially guided matching, baseline-constrained seed initialization (M1), hybrid epipolar pose refinement (M2), single-map geographic relocalization (M3), and two-tier GNSS-constrained bundle adjustment (M4), while read-only map snapshots drive asynchronous planar orthorectification and multiband mosaicking.

Comprehensive Benchmark Across 28 UAV Sequences

Evaluated on 7 real-world datasets (CAS, ClusterFusion, MSRS, Tongji-STSS, TerrainFusion, WHU, NPU; 14,372 images; 193.0 km) on a single laptop (Core i5-13500HX, 16 GB RAM, CPU-only for RGMAP).

Accuracy vs Processing Time Pareto Plot Click to enlarge

Synthesis of global trajectory accuracy (ATE_RMSE) versus per-frame processing latency (T_pf) on log–log axes across all 28 sequences. RGMAP occupies the favorable lower-left Pareto region with mean T_pf = 1.294 s/image and mean ATE = 3.056 m (median 2.366 m).

Method Mode Valid Seqs Mean Comp. Mean T_pf (s) Mean ATE (m) Online Ortho
Agisoft Metashape Offline 28 / 28 100.00% 4.139 3.909 Offline
OpenDroneMap (ODM) Offline 26 / 28 92.86% 3.127 1.903 Offline
ORB-SLAM3 Online 12 / 28 32.35% 0.423* 31.963* No
SfM on-the-fly Online 26 / 28 78.50% 3.981 18.423 No
RGMAP (Ours) Online 28 / 28 99.88% 1.294 3.056 Yes
Trajectory Completeness Heatmap Click to enlarge

Per-sequence trajectory completeness (%) across all 28 sequences. Hatched gray cells denote complete failure (0%), and orange borders mark 100% registration. RGMAP reaches 100% on 27/28 sequences (mean 99.88%).

Per-Image Runtime Heatmap Click to enlarge

Per-image processing time T_pf (s/frame) across all 28 sequences. RGMAP runs faster than the physical UAV capture interval in 25 of 28 missions (mean 1.294 s/image, 1.022 FPS effective throughput).

ATE RMSE Heatmap Click to enlarge

Sequence-level Sim(3)-aligned ATE_RMSE heatmap (meters). Orange borders mark the lowest error per sequence.

ATE Dot Plot Distribution Click to enlarge

Logarithmic dot-plot of cross-method positional error spread within each dataset group.

Detailed Trajectory Error Examples Click to enlarge

Detailed trajectory error profiles on NPU/phantom3-ieu-kfs, ClusterFusion/guanshanpark, MSRS/building, and STSS/STSS: frame-wise position error, ECDF (gray band = 2 m consumer GNSS noise floor), and 2D spatial error maps.

STSS RTK Ground Checkpoint Validation Click to enlarge

Spatial distribution and zoomed inspection of 9 RTK-surveyed ground checkpoints (cb01–cb09) on the STSS orthomosaic. Red dots show RTK ground truth; RGMAP achieves 0.576 m planar error standard deviation across the 6.67 km mission.

Checkpoint Metashape (Offline) ODM (Offline) RGMAP (Online)
ΔX (m)ΔY (m)ΔP (m) ΔX (m)ΔY (m)ΔP (m) ΔX (m)ΔY (m)ΔP (m)
cb01-1.2010.7811.433-0.0620.2600.2670.4222.2142.254
cb02-1.330-0.3131.367-0.108-0.3890.4030.9471.7131.957
cb03-0.543-0.5130.747-0.596-0.9271.1021.9252.7333.343
cb04-0.005-0.5480.5480.6440.6020.8820.7982.7602.873
cb050.345-0.9641.0230.3870.6030.7171.1781.8742.213
cb061.064-1.3291.702-0.0331.1481.1481.0342.1012.342
cb070.929-0.5661.088-0.0360.4870.4881.8972.8143.394
cb080.9670.2601.001-0.155-0.0240.1570.7821.5921.774
cb090.2610.3370.4260.3850.0590.3900.7952.2432.379
Mean0.054-0.3171.0370.0470.2020.6171.0872.2272.503
RMSE0.8580.7041.1100.3510.6110.7051.1892.2692.561
Std (ΔP)0.420 m0.362 m0.576 m

Decomposing RGMAP's 2.561 m planar RMSE reveals a uniform systematic datum bias (ΔX = +1.087 m, ΔY = +2.227 m, 96.8% of total RMSE) from uncalibrated GNSS lever-arm/timing offsets, while internal geometric consistency reaches 0.576 m Std — closely approaching offline Metashape (0.420 m) and ODM (0.362 m).

Configuration CAS/crop CAS/ground MSRS/Factory MSRS/town NPU/factory STSS/STSS Split Seqs Mean ΔATE
ATEt (s) ATEt (s) ATEt (s) ATEt (s) ATEt (s) ATEt (s)
Full RGMAP 5.213617 1.629135 1.602477 3.9521857 1.037126 0.331340 0 / 6 0.0%
w/o M1 (GNSS Seed Init) 5.209652 1.624126 1.566487 3.7972038 1.013136 0.335479 0 / 6 -1.3%
w/o M2 (Epipolar Refinement) 5.286662 1.671127 1.748479 4.5641864 1.033132 0.328477 0 / 6 +4.5%
w/o M3 (Geo Recovery) 5.216531 1.626161 1.599‡750 3.827§1692 1.004122 0.326§539 3 / 6 -1.4%
w/o M4 (GNSS-Constrained BA) 5.305436 1.776217 3.012379 29.570878 9.137164 1.635490 0 / 6 +320.3%

Controlled leave-one-out ablation across 6 representative sequences. Disabling GNSS-BA (w/o 4) causes mean ATE to surge by +320.3%, disabling epipolar refinement (w/o 2) increases mean ATE by +4.5% and runtime by +7.9%, and disabling geographic recovery (w/o 3) splits 3/6 sequences into disconnected sub-maps.

Lightweight CPU-Only Windows Application & CLI

Designed for out-of-the-box field surveying and emergency response — no GPU, Python, Qt, or Linux container required.

Standalone Desktop & Batch Pipeline

RGMAP ships as a self-contained Windows 10/11 64-bit installer (RGMAP-Setup.exe) bundling all runtime libraries, GDAL/PROJ georeferencing data, and optional XFeat/LighterGlue models, alongside a headless CLI (RGMAP-cli.exe) for scripted batch reconstruction.

CPU-Only Real-Time Windows 10/11 x64 Installer Headless CLI & Batch Scripts WGS84 / UTM GeoTIFF Export Live Satellite Basemap Overlay Optional XFeat + LighterGlue
GitHub Repository Windows App

Quick Build & Packaging (Windows)

# Clone repository
git clone https://github.com/dubing-bit/RGMAP.git
cd RGMAP

# Configure & build Release (MSVC + vcpkg)
cmake --preset windows-msvc-release
cmake --build --preset windows-release --parallel 2

# Build standalone Windows installer (Inno Setup 6)
powershell -ExecutionPolicy Bypass -File packaging/build-windows-installer.ps1

BibTeX

@article{rgmap2026,
  title   = {RGMAP: GNSS-guided robust online structure from motion for UAV orthophoto mapping},
  author  = {Anonymous},
  year    = {2026},
  url     = {https://github.com/dubing-bit/RGMAP}
}