Debian Codegraph @

src/pycolmap/scene/reconstruction_manager.cc

raw
1 #include "colmap/scene/reconstruction_manager.h"
2
3 #include "pycolmap/pybind11_extension.h"
4
5 #include <pybind11/pybind11.h>
6 #include <pybind11/stl.h>
7 #include <pybind11/stl_bind.h>
8
9 using namespace colmap;
10 using namespace pybind11::literals;
11 namespace py = pybind11;
12
13 void BindReconstructionManager(py::module& m) {
14 py::classh<ReconstructionManager>(m, "ReconstructionManager")
15 .def(py::init<>())
16 .def("size", &ReconstructionManager::Size)
17 .def("get",
18 py::overload_cast<size_t>(&ReconstructionManager::Get),
19 "idx"_a)
20 .def("add", &ReconstructionManager::Add)
21 .def("delete", &ReconstructionManager::Delete, "idx"_a)
22 .def("clear", &ReconstructionManager::Clear)
23 .def("read", &ReconstructionManager::Read, "path"_a)
24 .def("write", &ReconstructionManager::Write, "path"_a);
25 }