NDEVR
API Documentation
PhotogrammetrySfM.h
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2026, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: DronePhotogrammetry
28File: PhotogrammetrySfM
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/BaseValues.h>
35#include <NDEVR/File.h>
36#include <NDEVR/Log.h>
37
38#include <array>
39#include <functional>
40#include <memory>
41#include <unordered_map>
42
43// OpenMVG forward declarations
44namespace openMVG { namespace sfm { struct SfM_Data; } }
45
46namespace NDEVR
47{
50
55 class DRONE_PHOTOGRAMMETRY_API PhotogrammetrySfM
56 {
57 public:
58 using ProgressFn = std::function<void(fltp04)>;
59
62 static bool run(
63 openMVG::sfm::SfM_Data& sfm_data,
64 const std::shared_ptr<InMemoryRegionsProvider>& regions,
65 const std::shared_ptr<InMemoryMatchesProvider>& matches,
66 const std::unordered_map<uint32_t, std::array<double, 3>>& gps_lla,
67 const File& temp_folder,
68 LogPtr log,
69 ProgressFn progress_fn,
70 const bool& cancel_flag,
71 bool lock_focal = false);
72 };
73}
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
An in-memory implementation of openMVG::sfm::Matches_Provider.
An in-memory implementation of openMVG::sfm::Regions_Provider.
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
Runs sequential Structure-from-Motion with GPS-aware initial pair selection.
static bool run(openMVG::sfm::SfM_Data &sfm_data, const std::shared_ptr< InMemoryRegionsProvider > &regions, const std::shared_ptr< InMemoryMatchesProvider > &matches, const std::unordered_map< uint32_t, std::array< double, 3 > > &gps_lla, const File &temp_folder, LogPtr log, ProgressFn progress_fn, const bool &cancel_flag, bool lock_focal=false)
Run sequential SfM.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...