| 1 |
#include "colmap/geometry/essential_matrix.h" |
| 2 |
|
| 3 |
#include "colmap/util/logging.h" |
| 4 |
|
| 5 |
#include "pycolmap/pybind11_extension.h" |
| 6 |
|
| 7 |
#include <pybind11/eigen.h> |
| 8 |
#include <pybind11/pybind11.h> |
| 9 |
#include <pybind11/stl.h> |
| 10 |
|
| 11 |
using namespace colmap; |
| 12 |
using namespace pybind11::literals; |
| 13 |
namespace py = pybind11; |
| 14 |
|
| 15 |
void BindEssentialMatrixGeometry(py::module& m) { |
| 16 |
m.def("essential_matrix_from_pose", |
| 17 |
&EssentialMatrixFromPose, |
| 18 |
"cam2_from_cam1"_a, |
| 19 |
"Construct essential matrix from relative pose."); |
| 20 |
} |