1 | initial version |
Hello,
i think you did a mistake here:
cv::undistortPoints(cornersLeft, UndistCoords1, camMat1, distCoeff1);
Use the following:
cv::undistortPoints(cornersLef, UndistCoords1, camMat1, distCoeff1, cv::noArray(), camMat1);
... otherwise it will take a pre-defined camera Matrix which doesn't belong to your calibration parameters.
Instead of writing every value into the projection matrix you can also use something like:
rMat.copyTo(RTMat(cv::Rect(cv::Point(0, 0), rMat.size())));
... but this is just a side note.
Hope this solved your issue.
2 | No.2 Revision |
Hello,
i think you did a mistake here:
cv::undistortPoints(cornersLeft, UndistCoords1, camMat1, distCoeff1);
Use the following:
cv::undistortPoints(cornersLef, UndistCoords1, camMat1, distCoeff1, cv::noArray(), camMat1);
... otherwise it will take a pre-defined camera Matrix which doesn't belong to your calibration parameters.
Instead of writing every value into the projection matrix you can also use something like:
rMat.copyTo(RTMat(cv::Rect(cv::Point(0, 0), rMat.size())));
... but this is just a side note.
Hope this solved solves your issue.
3 | No.3 Revision |
Hello,
i think you did a mistake here:
cv::undistortPoints(cornersLeft, UndistCoords1, camMat1, distCoeff1);
Use the following:
cv::undistortPoints(cornersLef, UndistCoords1, camMat1, distCoeff1, cv::noArray(), camMat1);
... otherwise it will take a pre-defined camera Matrix which doesn't belong to your calibration parameters.
Instead of writing every value into the projection matrix you can also use something like:
rMat.copyTo(RTMat(cv::Rect(cv::Point(0, 0), rMat.size())));
... but and append the translation values. But this is just a side note.
Hope this solves your issue.
4 | No.4 Revision |
Hello,
i think you did a mistake here:
cv::undistortPoints(cornersLeft, UndistCoords1, camMat1, distCoeff1);
Use the following:
cv::undistortPoints(cornersLef, UndistCoords1, camMat1, distCoeff1, cv::noArray(), camMat1);
... otherwise it will take a pre-defined camera Matrix which doesn't belong to your calibration parameters.for additional information see
Instead of writing every value into the projection matrix you can also use something like:
rMat.copyTo(RTMat(cv::Rect(cv::Point(0, 0), rMat.size())));
... and append the translation values. But this is just a side note.
Hope this solves your issue.
5 | No.5 Revision |
Hello,
i think you did a mistake here:
cv::undistortPoints(cornersLeft, UndistCoords1, camMat1, distCoeff1);
Use the following:
cv::undistortPoints(cornersLef, cv::undistortPoints(cornersLeft, UndistCoords1, camMat1, distCoeff1, cv::noArray(), camMat1);
... for additional information see
Instead of writing every value into the projection matrix you can also use something like:
rMat.copyTo(RTMat(cv::Rect(cv::Point(0, rotMat.copyTo(RTMat(cv::Rect(cv::Point(0, 0), rMat.size())));
rotMat.size())));
... and append the translation values. But this is just a side note.
Hope this solves your issue.