Opencv--undistortPoints()和cvUndistortPoints()

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

相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页