Fixed solvePnPRansac minInliers parameter changed to confidence in OpenCV3 (OdometryMono)

This commit is contained in:
matlabbe
2015-07-27 16:14:55 -04:00
parent c717020405
commit a4039241c5

View File

@@ -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());
@@ -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());