added tests for http://code.opencv.org/issues/4011 and http://code.opencv.org/issues/3057; fixed random subset generation in both methods to increase chance for a good subset

This commit is contained in:
Vadim Pisarevsky
2015-05-25 21:46:05 +03:00
parent 2466ca02bf
commit 3bc5958c58
3 changed files with 124 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ bool solvePnP( InputArray _opoints, InputArray _ipoints,
PnP.compute_pose(R, tvec);
Rodrigues(R, rvec);
return true;
}
}*/
else
CV_Error(CV_StsBadArg, "The flags argument must be one of SOLVEPNP_ITERATIVE, SOLVEPNP_P3P, SOLVEPNP_EPNP or SOLVEPNP_DLS");
return false;