Skip to content

Commit a403924

Browse files
committed
Fixed solvePnPRansac minInliers parameter changed to confidence in OpenCV3 (OdometryMono)
1 parent c717020 commit a403924

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

corelib/src/OdometryMono.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,11 @@ Transform OdometryMono::computeTransform(const SensorData & data, OdometryInfo *
360360
true,
361361
this->getIterations(),
362362
this->getPnPReprojError(),
363-
0,
363+
#if CV_MAJOR_VERSION < 3
364+
0, // min inliers
365+
#else
366+
0.99, // confidence
367+
#endif
364368
inliersV,
365369
this->getPnPFlags());
366370

@@ -875,7 +879,11 @@ Transform OdometryMono::computeTransform(const SensorData & data, OdometryInfo *
875879
false,
876880
this->getIterations(),
877881
this->getPnPReprojError(),
878-
0,
882+
#if CV_MAJOR_VERSION < 3
883+
0, // min inliers
884+
#else
885+
0.99, // confidence
886+
#endif
879887
inliersPnP,
880888
this->getPnPFlags());
881889

0 commit comments

Comments
 (0)