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.
A 3-minute walkthrough of RGMAP's motivation, four-stage GNSS-coupled online SfM pipeline, live desktop demos, and benchmark results.
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.
Selects geometrically well-conditioned initial pairs by ENU antenna separation and scales the initial translation directly to physical meters before map growth.
Couples 2D–3D landmark reprojection residuals with focal-scaled Sampson epipolar constraints from untriangulated 2D–2D frontier matches.
Recovers failed registrations using deduplicated landmarks from GNSS-nearest registered cameras, preventing multi-submap fragmentation across sorties.
Embeds lever-arm compensated GNSS position factors into sliding-window local BA and periodic whole-map BA to suppress scale and doming drift.
Screen recordings of the standalone CPU-only RGMAP Windows application generating georeferenced orthomosaics incrementally as UAV images arrive.
Each refined map snapshot feeds an asynchronous worker that rectifies registered images onto a georeferenced plane and blends them seamlessly in the Windows UI.
Watch newly acquired orthomosaic tiles expand live over the surrounding satellite basemap, maintaining geometric alignment across homogeneous farmland.
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.
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).
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 |
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%).
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).
Click to enlarge
Sequence-level Sim(3)-aligned ATE_RMSE heatmap (meters). Orange borders mark the lowest error per sequence.
Click to enlarge
Logarithmic dot-plot of cross-method positional error spread within each dataset group.
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.
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.201 | 0.781 | 1.433 | -0.062 | 0.260 | 0.267 | 0.422 | 2.214 | 2.254 |
| cb02 | -1.330 | -0.313 | 1.367 | -0.108 | -0.389 | 0.403 | 0.947 | 1.713 | 1.957 |
| cb03 | -0.543 | -0.513 | 0.747 | -0.596 | -0.927 | 1.102 | 1.925 | 2.733 | 3.343 |
| cb04 | -0.005 | -0.548 | 0.548 | 0.644 | 0.602 | 0.882 | 0.798 | 2.760 | 2.873 |
| cb05 | 0.345 | -0.964 | 1.023 | 0.387 | 0.603 | 0.717 | 1.178 | 1.874 | 2.213 |
| cb06 | 1.064 | -1.329 | 1.702 | -0.033 | 1.148 | 1.148 | 1.034 | 2.101 | 2.342 |
| cb07 | 0.929 | -0.566 | 1.088 | -0.036 | 0.487 | 0.488 | 1.897 | 2.814 | 3.394 |
| cb08 | 0.967 | 0.260 | 1.001 | -0.155 | -0.024 | 0.157 | 0.782 | 1.592 | 1.774 |
| cb09 | 0.261 | 0.337 | 0.426 | 0.385 | 0.059 | 0.390 | 0.795 | 2.243 | 2.379 |
| Mean | 0.054 | -0.317 | 1.037 | 0.047 | 0.202 | 0.617 | 1.087 | 2.227 | 2.503 |
| RMSE | 0.858 | 0.704 | 1.110 | 0.351 | 0.611 | 0.705 | 1.189 | 2.269 | 2.561 |
| Std (ΔP) | 0.420 m | 0.362 m | 0.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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ATE | t (s) | ATE | t (s) | ATE | t (s) | ATE | t (s) | ATE | t (s) | ATE | t (s) | |||
| Full RGMAP | 5.213 | 617 | 1.629 | 135 | 1.602 | 477 | 3.952 | 1857 | 1.037 | 126 | 0.331 | 340 | 0 / 6 | 0.0% |
| w/o M1 (GNSS Seed Init) | 5.209 | 652 | 1.624 | 126 | 1.566 | 487 | 3.797 | 2038 | 1.013 | 136 | 0.335 | 479 | 0 / 6 | -1.3% |
| w/o M2 (Epipolar Refinement) | 5.286 | 662 | 1.671 | 127 | 1.748 | 479 | 4.564 | 1864 | 1.033 | 132 | 0.328 | 477 | 0 / 6 | +4.5% |
| w/o M3 (Geo Recovery) | 5.216 | 531 | 1.626 | 161 | 1.599‡ | 750 | 3.827§ | 1692 | 1.004 | 122 | 0.326§ | 539 | 3 / 6 | -1.4% |
| w/o M4 (GNSS-Constrained BA) | 5.305 | 436 | 1.776 | 217 | 3.012 | 379 | 29.570 | 878 | 9.137 | 164 | 1.635 | 490 | 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.
Seam-free georeferenced orthomosaics generated online across compact farmland, >15 km² multi-sortie towns, desert ridges, and high-rise urban blocks.
Click to enlarge
Gallery of georeferenced digital orthomosaics generated incrementally by RGMAP across all 28 benchmark sequences from 7 UAV datasets.
Click to enlarge
Qualitative comparison of fine-grained structural details (top to bottom: Metashape, ODM, RGMAP): (a) lattice transmission tower in TerrainFusion/mavic-factory, (b) perimeter traditional high-rise complex in MSRS/temple, (c) full-corridor industrial mosaic in NPU/phantom3-factory-kfs, and (d) campus rooftop infrastructure and vehicles in STSS/STSS.
Designed for out-of-the-box field surveying and emergency response — no GPU, Python, Qt, or Linux container required.
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.
# 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
@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}
}