mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Fixed solvePnPRansac minInliers parameter changed to confidence in OpenCV3 (OdometryMono)
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user