Skip to content

Commit

Permalink
Merge pull request #79 from rameau-fr/feature/fix-fy-error-bug-in-uni…
Browse files Browse the repository at this point in the history
…t-tests

Fix fy retrieval bug from intrinsics
  • Loading branch information
rameau-fr authored Aug 28, 2024
2 parents ef63759 + ab0d5e5 commit d8501be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_calibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void calibrateAndCheckGt(std::string config_path, std::string gt_path) {
camera_pose_matrix_gt = transform * camera_pose_matrix_gt * transform;

double fx_gt = camera_matrix_gt.at<double>(0, 0);
double fy_gt = camera_matrix_gt.at<double>(1, 0);
double fy_gt = camera_matrix_gt.at<double>(1, 1);
double cx_gt = camera_matrix_gt.at<double>(0, 2);
double cy_gt = camera_matrix_gt.at<double>(1, 2);
cv::Mat rot_gt(3, 3, CV_64F);
Expand All @@ -96,7 +96,7 @@ void calibrateAndCheckGt(std::string config_path, std::string gt_path) {
Calib.cam_group_[camera_group_idx]->getCameraPoseMat(camera_idx - 1);

double fx_pred = camera_matrix_pred.at<double>(0, 0);
double fy_pred = camera_matrix_pred.at<double>(1, 0);
double fy_pred = camera_matrix_pred.at<double>(1, 1);
double cx_pred = camera_matrix_pred.at<double>(0, 2);
double cy_pred = camera_matrix_pred.at<double>(1, 2);
cv::Mat rot_pred(3, 3, CV_64F);
Expand Down

0 comments on commit d8501be

Please sign in to comment.