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
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>
.