diff --git a/include/camera_calibrator.hpp b/include/camera_calibrator.hpp index 9702bf5..ebe929a 100644 --- a/include/camera_calibrator.hpp +++ b/include/camera_calibrator.hpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "logging.hpp" diff --git a/src/camera_calibrator.cpp b/src/camera_calibrator.cpp index 8948e59..992ac0f 100644 --- a/src/camera_calibrator.cpp +++ b/src/camera_calibrator.cpp @@ -62,8 +62,15 @@ void CameraCalibrator::get_result(cv::Mat &camera_matrix, cv::Mat &k, std::vector &rvecsMat, std::vector &tvecsMat) { double re_error = - cv::calibrateCamera(_boards_pts_3d, _imgs_pts, image_size, camera_matrix, - k, rvecsMat, tvecsMat, CV_CALIB_FIX_PRINCIPAL_POINT); + cv::calibrateCamera(_boards_pts_3d, + _imgs_pts, + image_size, + camera_matrix, + k, + rvecsMat, + tvecsMat, + cv::CALIB_FIX_PRINCIPAL_POINT); + std::cout << "reprojection is " << re_error << std::endl; Eigen::Matrix3d camera_intrinsic;