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