NDEVR
API Documentation
PhotogrammetryRunner

Drives the OpenMVG + OpenMVS photogrammetry pipeline entirely in memory. More...

Public Member Functions

void cancel ()
 Request cancellation. The runner will stop at the next safe checkpoint.
PhotogrammetryStage lastStage () const
 Returns the stage at which the last run ended (e_done, e_cancelled, or e_failed).
void run ()
 Run the full pipeline. Blocks the calling thread.
void setProgressCallback (std::function< void(PhotogrammetryStage stage, fltp04 fraction)> callback)
 Called whenever the active stage or progress within a stage changes.
void setResultCallback (std::function< void(PhotogrammetryResult)> callback)
 Called once when the pipeline finishes successfully with the full result.

Detailed Description

Drives the OpenMVG + OpenMVS photogrammetry pipeline entirely in memory.


All heavy processing runs on a caller-supplied thread (typically a BasicThread). Progress and stage transitions are reported via std::function callbacks so this class has no Qt dependency and can be used from any thread.

Usage: PhotogrammetryRunner runner(options, log); runner.setProgressCallback([](PhotogrammetryStage stage, fltp04 fraction) { ... }); runner.setResultCallback([&](PhotogrammetryResult result) { ... }); runner.run(); // blocks the calling thread until done, cancelled, or failed

Definition at line 105 of file PhotogrammetryRunner.h.

Member Function Documentation

◆ setProgressCallback()

void PhotogrammetryRunner::setProgressCallback ( std::function< void(PhotogrammetryStage stage, fltp04 fraction)> callback)

Called whenever the active stage or progress within a stage changes.

fraction is in [0, 1] within the current stage.


The documentation for this class was generated from the following file: