1 #ifndef _DETECT_CALIBRATION_PATTERN_ 2 #define _DETECT_CALIBRATION_PATTERN_ 4 #include <opencv2/core/core.hpp> 5 #include <opencv2/calib3d/calib3d.hpp> 6 #include <opencv2/calib3d/calib3d.hpp> 7 #include <opencv2/highgui/highgui.hpp> 8 #include <opencv2/imgproc/imgproc.hpp> 10 #include <Eigen/Dense> 11 #include <Eigen/Geometry> 12 #include <Eigen/StdVector> 27 void convertCVtoEigen(cv::Mat& tvec, cv::Mat& R, Eigen::Vector3f& translation, Eigen::Quaternionf& orientation);
34 static object_pts_t calcChessboardCorners(cv::Size boardSize,
37 cv::Point3f
offset = cv::Point3f());
39 int detectPattern(cv::Mat& inm, Eigen::Vector3f& translation, Eigen::Quaternionf& orientation);
41 void setCameraMatrices(cv::Matx33d K_, cv::Matx33d D_);
43 void setPattern(cv::Size grid_size_,
float square_size_,
44 Pattern pattern_type_, cv::Point3f offset_ = cv::Point3f());
void convertCVtoEigen(cv::Mat &tvec, cv::Mat &R, Eigen::Vector3f &translation, Eigen::Quaternionf &orientation)
object_pts_t ideal_points
std::vector< cv::Point3f > object_pts_t
std::vector< cv::Point2f > observation_pts_t