OpenMVG (`Open Multiple View Geometry`, an open-source C++ photogrammetry and computer-vision library licensed under `MPL-2.0` across Linux, macOS, Windows, and Docker) is a modular, research-grade Structure-from-Motion (`SfM`) and multiple-view geometry engine built for drone mapping developers, photogrammetry researchers, and 3D reconstruction engineers. Engineered around both `Incremental SfM` and fast `Global SfM` solvers, robust `AC-RANSAC` (`A Contrario RANSAC`) geometric filtering, `SIFT`/`AKAZE` feature extraction, camera intrinsic calibration, and `Ceres Solver` bundle adjustment, OpenMVG recovers precise 3D camera poses and sparse point clouds from unordered image sets—feeding directly into dense multi-view stereo (`MVS`) engines such as `OpenMVS`, `CMVS/PMVS`, or `MeshLab` for full 3D mesh and orthomosaic reconstruction.
1. In-Depth Review: Why Photogrammetry & Computer-Vision Teams Use OpenMVG
- Both `Global SfM` and `Incremental SfM` Pipelines in One Clean C++ Suite: Lets engineers choose traditional sequential `Incremental SfM` or rapid rotation/translation-averaging `Global SfM` depending on dataset size and baseline geometry.
- Parameter-Free `AC-RANSAC` Outlier Rejection & `Ceres` Bundle Adjustment: Eliminates manual inlier-threshold tuning during feature matching and refines camera intrinsics/extrinsics (`pinhole`, `radial`, `brown`, `fisheye`, `spherical 360°`) with high geometric accuracy.
- Modular CLI Binaries & Direct Handoff to `OpenMVS` (`openMVG_main_openMVG2openMVS`): Exports calibrated camera poses and sparse point clouds cleanly into `OpenMVS` for dense depth-map fusion, surface meshing, and texture mapping.
2. Key Features & Capabilities
- `Incremental` & `Global` Structure-from-Motion (`SfM`) Solvers: Reconstruct 3D camera trajectories and sparse tie-point clouds from aerial drone surveys, terrestrial photos, or `360°` equirectangular imagery.
- Feature Extraction & Matching (`SIFT`, `AKAZE`, `Cascade Hashing`, `ANN`): Detect and match keypoints across overlapping frames with multi-threaded CPU acceleration (`OpenMP`).
- Broad Camera Models & EXIF Focal-Length Sensor Database: Supports `Pinhole`, `Pinhole Radial K1/K3`, `Brown-Conrady`, `Fisheye`, and `Spherical` camera models with automatic sensor-width lookup.
- `GPS` / `EXIF` Priors & Ground Control Point (`GCP`) Georeferencing (`openMVG_main_geodesy_registration_to_gps_position`): Align reconstructed `SfM` scenes to `WGS84`/`UTM` coordinates cleanly.
- Native Export Bridges (`OpenMVS`, `PMVS/CMVS`, `MVE`, `Colmap`, `PLY`, `JSON`): Integrate OpenMVG effortlessly into custom Python/C++ photogrammetry pipelines or Docker workflows.
- 100% Free & Open-Source (`MPL-2.0` License): Free for academic research, government mapping, and commercial 3D reconstruction pipelines.
- Official Links: Project Portal, Documentation & GitHub
Always download OpenMVG source code, official Docker images, and pipeline manuals directly from official OpenMVG portals:
- Official OpenMVG GitHub Repository: https://github.com/openMVG/openMVG
- Official OpenMVG ReadTheDocs Manual & Pipeline Guide: https://openmvg.readthedocs.io/
- Official OpenMVG Docker Hub Images: https://hub.docker.com/r/openmvg/openmvg
4. Step-by-Step Installation Guide
- Check OS, Build Tools / Docker & Hardware Requirements: Confirm your workstation or server runs 64-bit `Linux` (Ubuntu/Debian/RHEL), `macOS`, `Windows` (`CMake` + `Visual Studio` / `vcpkg`), or `Docker` with at least 8 GB RAM (16 GB–64 GB+ recommended for large multi-hundred-image aerial `SfM` reconstructions) and fast `NVMe`/`SSD` storage.
- Pull the Official Docker Image or Build from Source (`CMake`): For instant deployment without compiling dependencies, run `docker pull openmvg/openmvg` (or clone `https://github.com/openMVG/openMVG.git` recursively and build with `CMake` + `Ceres Solver` per https://openmvg.readthedocs.io/).
- Verify `OpenMVG` CLI Binaries: Run `openMVG_main_SfMInit_ImageListing --help` in your terminal or container to confirm all `openMVG_main_*` executables are on your `PATH`.
- Test with Sample Dataset & `sensor_width_camera_database.txt`: Verify your camera sensor database path is configured so EXIF focal lengths resolve accurately.

5. How to Use OpenMVG: Beginner Workflow
- Initialize Image Listing & Intrinsics (`openMVG_main_SfMInit_ImageListing`): Point OpenMVG at your overlapping photo folder (`-i ./images -o ./matches -d sensor_width_camera_database.txt`) to generate `sfm_data.json`.
- Compute Image Features (`openMVG_main_ComputeFeatures`): Extract `SIFT` or `AKAZE` keypoints and descriptors across all frames (`-i ./matches/sfm_data.json -o ./matches -m SIFT`).
- Match Features Geometrically (`openMVG_main_PairGenerator` & `openMVG_main_ComputeMatches`): Generate image pairs (exhaustive or `GPS`-guided) and filter matches via `AC-RANSAC`.
- Run Structure-from-Motion (`openMVG_main_SfM` with `--sfm_engine INCREMENTAL` or `GLOBAL`): Solve camera poses, focal lengths, and the sparse 3D point cloud (`sfm_data.bin` & `cloud_and_poses.ply`).
- Export to `OpenMVS` (`openMVG_main_openMVG2openMVS`) or Inspect in `CloudCompare`: Convert the `SfM` output into `scene.mvs` for dense point-cloud and textured 3D mesh generation, or inspect `cloud_and_poses.ply` in `CloudCompare`.
6. Frequently Asked Questions (FAQ)
- How does `OpenMVG` differ from `OpenMVS`?`OpenMVG` handles the first half of photogrammetry—feature matching, camera calibration, and sparse Structure-from-Motion (`SfM`) pose estimation—whereas `OpenMVS` (`Open Multi-View Stereo`) takes OpenMVG's calibrated cameras and builds dense point clouds, 3D surface meshes, and photorealistic textures.
- What is the difference between `Incremental SfM` and `Global SfM` in `OpenMVG`?`Incremental SfM` adds images one by one with repeated bundle adjustment (very robust on challenging image sequences), while `Global SfM` solves all camera rotations and translations simultaneously (much faster on well-connected multi-view networks).
- Is OpenMVG free for commercial use?Yes. OpenMVG is open-source under the `Mozilla Public License 2.0` (`MPL-2.0`).