26 #include<opencv2/core/core.hpp> 27 #include<opencv2/features2d/features2d.hpp> 41 ORBmatcher(
float nnratio=0.6,
bool checkOri=
true);
44 static int DescriptorDistance(
const cv::Mat &a,
const cv::Mat &b);
48 int SearchByProjection(
Frame &F,
const std::vector<MapPoint*> &vpMapPoints,
const float th=3);
52 int SearchByProjection(
Frame &CurrentFrame,
const Frame &LastFrame,
const float th,
const bool bMono);
56 int SearchByProjection(
Frame &CurrentFrame,
KeyFrame* pKF,
const std::set<MapPoint*> &sAlreadyFound,
const float th,
const int ORBdist);
60 int SearchByProjection(
KeyFrame* pKF, cv::Mat Scw,
const std::vector<MapPoint*> &vpPoints, std::vector<MapPoint*> &vpMatched,
int th);
65 int SearchByBoW(
KeyFrame *pKF,
Frame &F, std::vector<MapPoint*> &vpMapPointMatches);
66 int SearchByBoW(
KeyFrame *pKF1,
KeyFrame* pKF2, std::vector<MapPoint*> &vpMatches12);
69 int SearchForInitialization(
Frame &F1,
Frame &F2, std::vector<cv::Point2f> &vbPrevMatched, std::vector<int> &vnMatches12,
int windowSize=10);
73 std::vector<pair<size_t, size_t> > &vMatchedPairs,
const bool bOnlyStereo);
77 int SearchBySim3(
KeyFrame* pKF1,
KeyFrame* pKF2, std::vector<MapPoint *> &vpMatches12,
const float &s12,
const cv::Mat &R12,
const cv::Mat &t12,
const float th);
80 int Fuse(
KeyFrame* pKF,
const vector<MapPoint *> &vpMapPoints,
const float th=3.0);
83 int Fuse(
KeyFrame* pKF, cv::Mat Scw,
const std::vector<MapPoint*> &vpPoints,
float th, vector<MapPoint *> &vpReplacePoint);
87 static const int TH_LOW;
88 static const int TH_HIGH;
89 static const int HISTO_LENGTH;
94 bool CheckDistEpipolarLine(
const cv::KeyPoint &kp1,
const cv::KeyPoint &kp2,
const cv::Mat &F12,
const KeyFrame *pKF);
96 float RadiusByViewingCos(
const float &viewCos);
98 void ComputeThreeMaxima(std::vector<int>* histo,
const int L,
int &ind1,
int &ind2,
int &ind3);
101 bool mbCheckOrientation;
106 #endif // ORBMATCHER_H Definition: KeyFrame.h:43
Definition: Converter.cpp:24
Definition: ORBmatcher.h:37