Removing rng_seed arg in order to maintain ABI compatibility. Hardcoding seed

pull/3588/head
Vijay Pradeep 10 years ago
parent 1292fdf71a
commit 49bc100e51
  1. 3
      modules/calib3d/include/opencv2/calib3d/calib3d.hpp
  2. 3
      modules/calib3d/src/solvepnp.cpp

@ -488,8 +488,7 @@ CV_EXPORTS_W void solvePnPRansac( InputArray objectPoints,
float reprojectionError = 8.0,
int minInliersCount = 100,
OutputArray inliers = noArray(),
int flags = ITERATIVE,
int rng_seed = 0);
int flags = ITERATIVE);
//! initializes camera matrix from a few 3D points and the corresponding projections.
CV_EXPORTS_W Mat initCameraMatrix2D( InputArrayOfArrays objectPoints,

@ -303,8 +303,9 @@ void cv::solvePnPRansac(InputArray _opoints, InputArray _ipoints,
InputArray _cameraMatrix, InputArray _distCoeffs,
OutputArray _rvec, OutputArray _tvec, bool useExtrinsicGuess,
int iterationsCount, float reprojectionError, int minInliersCount,
OutputArray _inliers, int flags, int _rng_seed)
OutputArray _inliers, int flags)
{
const int _rng_seed = 0;
Mat opoints = _opoints.getMat(), ipoints = _ipoints.getMat();
Mat cameraMatrix = _cameraMatrix.getMat(), distCoeffs = _distCoeffs.getMat();

Loading…
Cancel
Save