30 #ifndef _DETECT_CALIBRATION_PATTERN_ 31 #define _DETECT_CALIBRATION_PATTERN_ 33 #include <opencv2/core/core.hpp> 34 #include <opencv2/calib3d/calib3d.hpp> 35 #include <opencv2/calib3d/calib3d.hpp> 36 #include <opencv2/highgui/highgui.hpp> 37 #include <opencv2/imgproc/imgproc.hpp> 39 #include <Eigen/Dense> 40 #include <Eigen/Geometry> 41 #include <Eigen/StdVector> 56 void convertCVtoEigen(cv::Mat& tvec, cv::Mat& R, Eigen::Vector3f& translation, Eigen::Quaternionf& orientation);
64 cv::Point3f offset = cv::Point3f());
66 int detectPattern(cv::Mat& image_in, Eigen::Vector3f& translation, Eigen::Quaternionf& orientation,
69 void setCameraMatrices(cv::Matx33d K_, cv::Mat D_);
71 void setPattern(cv::Size grid_size_,
float square_size_,
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