MCPcopy Create free account
hub / github.com/colmap/colmap / IsPyceresAvailable

Function IsPyceresAvailable

src/pycolmap/helpers.h:462–469  ·  view source on GitHub ↗

Test if pyceres is available

Source from the content-addressed store, hash-verified

460
461// Test if pyceres is available
462inline bool IsPyceresAvailable() {
463 try {
464 py::module::import("pyceres");
465 } catch (const py::error_already_set&) {
466 return false;
467 }
468 return true;
469}
470
471template <typename Parent>
472inline void DefDeprecation(

Callers 2

BindCostFunctionsFunction · 0.85
BindBundleAdjusterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected