undistortPoints()
正确用法:
std::vector<cv::Point2f> inputDistortedPoints = ...
std::vector<cv::Point2f> outputUndistortedPoints;
cv::Mat cameraMatrix = ...
cv::Mat distCoeffs = ...
cv::undistortPoints(inputDistortedPoints, outputUndistortedPoints, cameraMatrix, distCoeffs, cv::noArray(), cameraMatrix);
错误用法:
cv::undistortPoints(inputDistortedPoints, outputUndistortedPoints, cameraMatrix, distCoeffs)
cvUndistortPoints()
用法和上面类似,但传入的变量类型为CvMat*。
转载自:
博主:cvml
博文地址:https://blog.csdn.net/qq_15505637/article/details/76197820
来源:CSDN