Skip to content

Commit

Permalink
Call is unnencessary
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Jan 25, 2024
1 parent b3b9e5a commit cacd37f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pycolmap/scene/camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,8 @@ void BindCamera(py::module& m) {
"img_from_cam",
[](const Camera& self,
const py::EigenDRef<const Eigen::MatrixX3d>& world_points) {
return py::cast(self)
.attr("img_from_cam")
.call(world_points.rowwise().hnormalized());
return py::cast(self).attr("img_from_cam")(
world_points.rowwise().hnormalized());
},
"Project list of points from world / infinity to image plane.")
.def(
Expand Down

0 comments on commit cacd37f

Please sign in to comment.