Ask Your Question

Revision history [back]

click to hide/show revision 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.

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.

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.

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.

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.