Skip to content

Commit b421ebe

Browse files
committed
imgproc: slightly change the signature of undistortPoints overload
1 parent 701c7e5 commit b421ebe

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

modules/calib3d/test/test_undistort_points.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ TEST(Calib3d_Undistort, stop_criteria)
107107
const double maxError = 1e-6;
108108
TermCriteria criteria(TermCriteria::MAX_ITER + TermCriteria::EPS, 100, maxError);
109109
std::vector<Point2d> pt_undist_vec;
110-
undistortPoints(pt_distorted_vec, pt_undist_vec, cameraMatrix, distCoeffs, criteria);
110+
undistortPoints(pt_distorted_vec, pt_undist_vec, cameraMatrix, distCoeffs, noArray(), noArray(), criteria);
111111

112112
std::vector<Point2d> pt_redistorted_vec;
113113
std::vector<Point3d> pt_undist_vec_homogeneous;

modules/imgproc/include/opencv2/imgproc.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,10 +3040,9 @@ CV_EXPORTS_W void undistortPoints( InputArray src, OutputArray dst,
30403040
@note Default version of cv::undistortPoints does 5 iterations to compute undistorted points.
30413041
30423042
*/
3043-
CV_EXPORTS_AS(undistortPointsExt) void undistortPoints( InputArray src, OutputArray dst,
3043+
CV_EXPORTS_AS(undistortPointsIter) void undistortPoints( InputArray src, OutputArray dst,
30443044
InputArray cameraMatrix, InputArray distCoeffs,
3045-
TermCriteria criteria,
3046-
InputArray R = noArray(), InputArray P = noArray());
3045+
InputArray R, InputArray P, TermCriteria criteria);
30473046

30483047
//! @} imgproc_transform
30493048

modules/imgproc/src/undistort.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,15 +475,15 @@ void cv::undistortPoints( InputArray _src, OutputArray _dst,
475475
InputArray _Rmat,
476476
InputArray _Pmat )
477477
{
478-
undistortPoints(_src, _dst, _cameraMatrix, _distCoeffs, TermCriteria(TermCriteria::MAX_ITER, 5, 0.01), _Rmat, _Pmat);
478+
undistortPoints(_src, _dst, _cameraMatrix, _distCoeffs, _Rmat, _Pmat, TermCriteria(TermCriteria::MAX_ITER, 5, 0.01));
479479
}
480480

481481
void cv::undistortPoints( InputArray _src, OutputArray _dst,
482482
InputArray _cameraMatrix,
483483
InputArray _distCoeffs,
484-
TermCriteria criteria,
485484
InputArray _Rmat,
486-
InputArray _Pmat )
485+
InputArray _Pmat,
486+
TermCriteria criteria)
487487
{
488488
Mat src = _src.getMat(), cameraMatrix = _cameraMatrix.getMat();
489489
Mat distCoeffs = _distCoeffs.getMat(), R = _Rmat.getMat(), P = _Pmat.getMat();

0 commit comments

Comments
 (0)