cv::Mat M = cv::estimateAffinePartial2D(imgPoints, robotPoints);
angle = atan2(M.at<double>(1, 0), M.at<double>(0, 0)) * 180 / CV_PI;
参考:
cv::Mat M = cv::estimateAffinePartial2D(imgPoints, robotPoints);
angle = atan2(M.at<double>(1, 0), M.at<double>(0, 0)) * 180 / CV_PI;
参考: