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 (OdometryMono)
  • Loading branch information
matlabbe committed Jul 27, 2015
1 parent c717020 commit a403924
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions corelib/src/OdometryMono.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ Transform OdometryMono::computeTransform(const SensorData & data, OdometryInfo *
true,
this->getIterations(),
this->getPnPReprojError(),
0,
#if CV_MAJOR_VERSION < 3
0, // min inliers
#else
0.99, // confidence
#endif
inliersV,
this->getPnPFlags());

Expand Down Expand Up @@ -875,7 +879,11 @@ Transform OdometryMono::computeTransform(const SensorData & data, OdometryInfo *
false,
this->getIterations(),
this->getPnPReprojError(),
0,
#if CV_MAJOR_VERSION < 3
0, // min inliers
#else
0.99, // confidence
#endif
inliersPnP,
this->getPnPFlags());

Expand Down

0 comments on commit a403924

Please sign in to comment.