Skip to content

Commit dc26507

Browse files
committed
Update PnPProblem.cpp
1 parent 9c3f957 commit dc26507

File tree

1 file changed

+1
-0
lines changed
  • samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src

1 file changed

+1
-0
lines changed

samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void PnPProblem::set_P_matrix( const cv::Mat &R_matrix, const cv::Mat &t_matrix)
9999
_P_matrix.at<double>(1,2) = R_matrix.at<double>(1,2);
100100
_P_matrix.at<double>(2,0) = R_matrix.at<double>(2,0);
101101
_P_matrix.at<double>(2,1) = R_matrix.at<double>(2,1);
102+
_P_matrix.at<double>(2,2) = R_matrix.at<double>(2,2);
102103
_P_matrix.at<double>(0,3) = t_matrix.at<double>(0);
103104
_P_matrix.at<double>(1,3) = t_matrix.at<double>(1);
104105
_P_matrix.at<double>(2,3) = t_matrix.at<double>(2);

0 commit comments

Comments
 (0)