Skip to content

Commit

Permalink
Fixed solvePnPRansac minInliers parameter changed to confidence in Op…
Browse files Browse the repository at this point in the history
…enCV3
  • Loading branch information
matlabbe committed Jul 27, 2015
1 parent 1d926fe commit c717020
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions corelib/src/OdometryBOW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ Transform OdometryBOW::computeTransform(
UASSERT(data.stereoCameraModel().isValid() || (data.cameraModels().size() == 1 && data.cameraModels()[0].isValid()));
const CameraModel & cameraModel = data.stereoCameraModel().isValid()?data.stereoCameraModel().left():data.cameraModels()[0];

UDEBUG("");
t = util3d::estimateMotion3DTo2D(
localMap_,
newSignature->getWords(),
Expand Down
6 changes: 5 additions & 1 deletion corelib/src/OdometryOpticalFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ Transform OdometryOpticalFlow::computeTransform(
true,
this->getIterations(),
this->getPnPReprojError(),
0,
#if CV_MAJOR_VERSION < 3
0, // min inliers
#else
0.99, // confidence
#endif
inliersV,
this->getPnPFlags());

Expand Down
6 changes: 5 additions & 1 deletion corelib/src/util3d_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,11 @@ std::multimap<int, pcl::PointXYZ> generateWords3DMono(
true,
pnpIterations,
pnpReprojError,
0,
#if CV_MAJOR_VERSION < 3
0, // min inliers
#else
0.99, // confidence
#endif
inliersV,
pnpFlags);

Expand Down
6 changes: 5 additions & 1 deletion corelib/src/util3d_motion_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ Transform estimateMotion3DTo2D(
true,
iterations,
reprojError,
0,
#if CV_MAJOR_VERSION < 3
0, // min inliers
#else
0.99, // confidence
#endif
inliers,
flagsPnP);

Expand Down

0 comments on commit c717020

Please sign in to comment.