1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

imgproc: slightly change the signature of undistortPoints overload

This commit is contained in:
Vladislav Sovrasov
2017-09-14 11:13:36 +03:00
parent 701c7e5685
commit b421ebef86
3 changed files with 6 additions and 7 deletions
+2 -3
View File
@@ -3040,10 +3040,9 @@ CV_EXPORTS_W void undistortPoints( InputArray src, OutputArray dst,
@note Default version of cv::undistortPoints does 5 iterations to compute undistorted points.
*/
CV_EXPORTS_AS(undistortPointsExt) void undistortPoints( InputArray src, OutputArray dst,
CV_EXPORTS_AS(undistortPointsIter) void undistortPoints( InputArray src, OutputArray dst,
InputArray cameraMatrix, InputArray distCoeffs,
TermCriteria criteria,
InputArray R = noArray(), InputArray P = noArray());
InputArray R, InputArray P, TermCriteria criteria);
//! @} imgproc_transform
+3 -3
View File
@@ -475,15 +475,15 @@ void cv::undistortPoints( InputArray _src, OutputArray _dst,
InputArray _Rmat,
InputArray _Pmat )
{
undistortPoints(_src, _dst, _cameraMatrix, _distCoeffs, TermCriteria(TermCriteria::MAX_ITER, 5, 0.01), _Rmat, _Pmat);
undistortPoints(_src, _dst, _cameraMatrix, _distCoeffs, _Rmat, _Pmat, TermCriteria(TermCriteria::MAX_ITER, 5, 0.01));
}
void cv::undistortPoints( InputArray _src, OutputArray _dst,
InputArray _cameraMatrix,
InputArray _distCoeffs,
TermCriteria criteria,
InputArray _Rmat,
InputArray _Pmat )
InputArray _Pmat,
TermCriteria criteria)
{
Mat src = _src.getMat(), cameraMatrix = _cameraMatrix.getMat();
Mat distCoeffs = _distCoeffs.getMat(), R = _Rmat.getMat(), P = _Pmat.getMat();