Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Jan 24, 2024
1 parent 3a5952a commit 7518756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycolmap/scene/camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void BindCamera(py::module& m) {
.def(
"cam_from_img",
[](const Camera& self,
const py::EigenDRef<Eigen::MatrixX2d>& image_points) {
const py::EigenDRef<const Eigen::MatrixX2d>& image_points) {
std::vector<Eigen::Vector2d> world_points(image_points.rows());
for (size_t idx = 0; idx < image_points.rows(); ++idx) {
world_points[idx] = self.CamFromImg(image_points.row(idx));
Expand All @@ -168,7 +168,7 @@ void BindCamera(py::module& m) {
.def(
"img_from_cam",
[](const Camera& self,
const py::EigenDRef<Eigen::MatrixX2d>& world_points) {
const py::EigenDRef<const Eigen::MatrixX2d>& world_points) {
std::vector<Eigen::Vector2d> image_points(world_points.rows());
for (size_t idx = 0; idx < world_points.rows(); ++idx) {
image_points[idx] = self.ImgFromCam(world_points.row(idx));
Expand Down

0 comments on commit 7518756

Please sign in to comment.