OpenCV's projectPoints function

前端 未结 1 1644
南旧
南旧 2020-12-18 08:11

I\'m currently trying to implement a example of OpenCV\'s projectPoints method. The idea behind this method is taking as input a set of 3D points, translation/rotation vecto

相关标签:
1条回答
  • 2020-12-18 08:44

    It seems to be complaining about the type of the output vector of points. Try to replace your call to projectPoints:

    cv::projectPoints(objectPoints, rVec, tVec, intrisicMat, distCoeffs, projectedPoints);
    

    by this call:

    cv::projectPoints(objectPoints, rVec, tVec, intrisicMat, distCoeffs, imagePoints);
    

    This uses the variable of type std::vector<cv::Point2d> instead of std::vector<cv::Point2f>.

    0 讨论(0)
提交回复
热议问题