25 #include <opencv2/opencv.hpp> 26 #include <opencv2/core/core_c.h> 42 void SetRansacParameters(
double probability = 0.99,
int minInliers = 6 ,
int maxIterations = 300);
44 cv::Mat
find(std::vector<bool> &vbInliers12,
int &nInliers);
46 cv::Mat
iterate(
int nIterations,
bool &bNoMore, std::vector<bool> &vbInliers,
int &nInliers);
61 void Project(
const std::vector<cv::Mat> &vP3Dw, std::vector<cv::Mat> &vP2D, cv::Mat Tcw, cv::Mat K);
62 void FromCameraToImage(
const std::vector<cv::Mat> &vP3Dc, std::vector<cv::Mat> &vP2D, cv::Mat K);
134 #endif // SIM3SOLVER_H
std::vector< size_t > mvnMaxError2
std::vector< cv::Mat > mvP2im2
cv::Mat find(std::vector< bool > &vbInliers12, int &nInliers)
std::vector< cv::Mat > mvX3Dc1
cv::Mat iterate(int nIterations, bool &bNoMore, std::vector< bool > &vbInliers, int &nInliers)
std::vector< size_t > mvSigmaSquare1
void Project(const std::vector< cv::Mat > &vP3Dw, std::vector< cv::Mat > &vP2D, cv::Mat Tcw, cv::Mat K)
std::vector< size_t > mvnMaxError1
void ComputeSim3(cv::Mat &P1, cv::Mat &P2)
std::vector< MapPoint * > mvpMatches12
std::vector< size_t > mvSigmaSquare2
std::vector< cv::Mat > mvP1im1
cv::Mat GetEstimatedRotation()
Sim3Solver(KeyFrame *pKF1, KeyFrame *pKF2, const std::vector< MapPoint * > &vpMatched12, const bool bFixScale=true)
std::vector< bool > mvbInliersi
float GetEstimatedScale()
void FromCameraToImage(const std::vector< cv::Mat > &vP3Dc, std::vector< cv::Mat > &vP2D, cv::Mat K)
std::vector< MapPoint * > mvpMapPoints2
void ComputeCentroid(cv::Mat &P, cv::Mat &Pr, cv::Mat &C)
void SetRansacParameters(double probability=0.99, int minInliers=6, int maxIterations=300)
std::vector< MapPoint * > mvpMapPoints1
std::vector< cv::Mat > mvX3Dc2
std::vector< size_t > mvnIndices1
std::vector< size_t > mvAllIndices
std::vector< bool > mvbBestInliers
cv::Mat GetEstimatedTranslation()