Debian Codegraph @

src/pycolmap/scene/point3d.cc

raw
1 #include "colmap/scene/point3d.h"
2
3 #include "colmap/util/logging.h"
4 #include "colmap/util/misc.h"
5 #include "colmap/util/types.h"
6
7 #include "pycolmap/helpers.h"
8 #include "pycolmap/pybind11_extension.h"
9 #include "pycolmap/scene/types.h"
10
11 #include <memory>
12 #include <sstream>
13
14 #include <pybind11/eigen.h>
15 #include <pybind11/pybind11.h>
16 #include <pybind11/stl.h>
17
18 using namespace colmap;
19 namespace py = pybind11;
20
21 void BindPoint3D(py::module& m) {
22 py::classh_ext<Point3D> PyPoint3D(m, "Point3D");
23 PyPoint3D.def(py::init<>())
24 .def_readwrite("xyz", &Point3D::xyz)
25 .def_readwrite("color", &Point3D::color)
26 .def_readwrite("error", &Point3D::error)
27 .def_readwrite("track", &Point3D::track)
28 .def(
29 "has_error", &Point3D::HasError, "Check if error has been computed.");
30 MakeDataclass(PyPoint3D);
31
32 py::bind_map<Point3DMap>(m, "Point3DMap");
33 }