mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Fixing trusty build
This commit is contained in:
@@ -439,10 +439,13 @@ cv::Mat findEssentialMat( InputArray _points1, InputArray _points2, InputArray _
|
||||
threshold /= (fx+fy)/2;
|
||||
|
||||
Mat E;
|
||||
Ptr<PointSetRegistrator::Callback> cb; // pointer to callback
|
||||
cb = Ptr<EMEstimatorCallback>(new EMEstimatorCallback());
|
||||
|
||||
if( method == RANSAC )
|
||||
createRANSACPointSetRegistrator(makePtr<EMEstimatorCallback>(), 6, threshold, prob)->run(points1, points2, E, _mask);
|
||||
createRANSACPointSetRegistrator(cb, 6, threshold, prob)->run(points1, points2, E, _mask);
|
||||
else
|
||||
createLMeDSPointSetRegistrator(makePtr<EMEstimatorCallback>(), 6, prob)->run(points1, points2, E, _mask);
|
||||
createLMeDSPointSetRegistrator(cb, 6, prob)->run(points1, points2, E, _mask);
|
||||
|
||||
return E;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user