Skip to content

Commit

Permalink
Update projector.h
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshuliu authored and eugenegx committed Jun 20, 2018
1 parent ccbad69 commit 0db49ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ bool Projector<T>::Project(const T &u, const T &v,
->get_camera_calibration()
->get_camera2car_homography_mat();

Eigen::Matrix<double, 3, 1> uv_point(u, v, static_cast<T>(1));
Eigen::Matrix<double, 3, 1> uv_point(u, v, 1.0);
Eigen::Matrix<double, 3, 1> xy_p = trans_mat * uv_point;

T scale = xy_p(2);
Expand Down

0 comments on commit 0db49ad

Please sign in to comment.