Opencv--undistortPoints()和cvUndistortPoints()

undistortPoints()

正确用法:

std::vector inputDistortedPoints = ...
std::vector 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

你可能感兴趣的:(OpenCV)