25 #include <opencv2/opencv.hpp> 41 void SetRansacParameters(
double probability = 0.99,
int minInliers = 6 ,
int maxIterations = 300);
43 cv::Mat find(std::vector<bool> &vbInliers12,
int &nInliers);
45 cv::Mat iterate(
int nIterations,
bool &bNoMore, std::vector<bool> &vbInliers,
int &nInliers);
47 cv::Mat GetEstimatedRotation();
48 cv::Mat GetEstimatedTranslation();
49 float GetEstimatedScale();
54 void ComputeCentroid(cv::Mat &P, cv::Mat &Pr, cv::Mat &C);
56 void ComputeSim3(cv::Mat &P1, cv::Mat &P2);
60 void Project(
const std::vector<cv::Mat> &vP3Dw, std::vector<cv::Mat> &vP2D, cv::Mat Tcw, cv::Mat K);
61 void FromCameraToImage(
const std::vector<cv::Mat> &vP3Dc, std::vector<cv::Mat> &vP2D, cv::Mat K);
70 std::vector<cv::Mat> mvX3Dc1;
71 std::vector<cv::Mat> mvX3Dc2;
72 std::vector<MapPoint*> mvpMapPoints1;
73 std::vector<MapPoint*> mvpMapPoints2;
74 std::vector<MapPoint*> mvpMatches12;
75 std::vector<size_t> mvnIndices1;
76 std::vector<size_t> mvSigmaSquare1;
77 std::vector<size_t> mvSigmaSquare2;
78 std::vector<size_t> mvnMaxError1;
79 std::vector<size_t> mvnMaxError2;
90 std::vector<bool> mvbInliersi;
95 std::vector<bool> mvbBestInliers;
98 cv::Mat mBestRotation;
99 cv::Mat mBestTranslation;
106 std::vector<size_t> mvAllIndices;
109 std::vector<cv::Mat> mvP1im1;
110 std::vector<cv::Mat> mvP2im2;
116 int mRansacMinInliers;
133 #endif // SIM3SOLVER_H Definition: KeyFrame.h:43
Definition: Sim3Solver.h:35
Definition: Converter.cpp:24