File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ void BindImage(py::module& m) {
4747 " name" _a = " " ,
4848 py::arg_v (" points2D" , Point2DVector (), " ListPoint2D()" ),
4949 " cam_from_world" _a = py::none (),
50- " camera_id" _a = kInvalidCameraId ,
51- " id" _a = kInvalidImageId )
50+ " camera_id" _a = m. attr ( " invalid_camera_id " ) ,
51+ " id" _a = m. attr ( " invalid_image_id " ) )
5252 .def (py::init (&MakeImage<Eigen::Vector2d>),
5353 " name" _a = " " ,
5454 " keypoints" _a = std::vector<Eigen::Vector2d>(),
5555 " cam_from_world" _a = Rigid3d (),
56- " camera_id" _a = kInvalidCameraId ,
57- " id" _a = kInvalidImageId )
56+ " camera_id" _a = m. attr ( " invalid_camera_id " ) ,
57+ " id" _a = m. attr ( " invalid_image_id " ) )
5858 .def_property (" image_id" ,
5959 &Image::ImageId,
6060 &Image::SetImageId,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ void BindPoint2D(py::module& m) {
2525 PyPoint2D.def (py::init<>())
2626 .def (py::init<const Eigen::Vector2d&, size_t >(),
2727 " xy" _a,
28- " point3D_id" _a = kInvalidPoint3DId )
28+ " point3D_id" _a = m. attr ( " invalid_point3D_id " ) )
2929 .def_readwrite (" xy" , &Point2D::xy)
3030 .def_readwrite (" point3D_id" , &Point2D::point3D_id)
3131 .def (" has_point3D" , &Point2D::HasPoint3D);
You can’t perform that action at this time.
0 commit comments