mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +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,
|
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());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user