Commit 82aad4c7 authored by oscar's avatar oscar

提交更新

parent 65ca39a6
......@@ -159,7 +159,7 @@ void get_camera_tolidar_loc(float u, float v, float& x, float& y)
std::vector<cv::Point2f> inputDistortedPoints;
std::vector<cv::Point2f> outputUndistortedPoints;
inputDistortedPoints.push_back(cv::Point2f(u, v));
cv::undistortPoints(inputDistortedPoints, outputUndistortedPoints, cameraMatrix, distCoeffs);
cv::undistortPoints(inputDistortedPoints, outputUndistortedPoints, cameraMatrix, distCoeffs, cv::Mat(), cameraMatrix);
if(outputUndistortedPoints.size() > 0)
SDK_LOG(SDK_INFO, "outputUndistortedPoints size = %d, x = %f,y = %f", outputUndistortedPoints.size(), outputUndistortedPoints[0].x, outputUndistortedPoints[0].y);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment