#include <Initializer.h>
Public Member Functions | |
bool | Initialize (const Frame &CurrentFrame, const vector< int > &vMatches12, cv::Mat &R21, cv::Mat &t21, vector< cv::Point3f > &vP3D, vector< bool > &vbTriangulated) |
Initializer (const Frame &ReferenceFrame, float sigma=1.0, int iterations=200) | |
Private Types | |
typedef pair< int, int > | Match |
Private Member Functions | |
float | CheckFundamental (const cv::Mat &F21, vector< bool > &vbMatchesInliers, float sigma) |
float | CheckHomography (const cv::Mat &H21, const cv::Mat &H12, vector< bool > &vbMatchesInliers, float sigma) |
int | CheckRT (const cv::Mat &R, const cv::Mat &t, const vector< cv::KeyPoint > &vKeys1, const vector< cv::KeyPoint > &vKeys2, const vector< Match > &vMatches12, vector< bool > &vbInliers, const cv::Mat &K, vector< cv::Point3f > &vP3D, float th2, vector< bool > &vbGood, float ¶llax) |
cv::Mat | ComputeF21 (const vector< cv::Point2f > &vP1, const vector< cv::Point2f > &vP2) |
cv::Mat | ComputeH21 (const vector< cv::Point2f > &vP1, const vector< cv::Point2f > &vP2) |
void | DecomposeE (const cv::Mat &E, cv::Mat &R1, cv::Mat &R2, cv::Mat &t) |
void | FindFundamental (vector< bool > &vbInliers, float &score, cv::Mat &F21) |
void | FindHomography (vector< bool > &vbMatchesInliers, float &score, cv::Mat &H21) |
void | Normalize (const vector< cv::KeyPoint > &vKeys, vector< cv::Point2f > &vNormalizedPoints, cv::Mat &T) |
bool | ReconstructF (vector< bool > &vbMatchesInliers, cv::Mat &F21, cv::Mat &K, cv::Mat &R21, cv::Mat &t21, vector< cv::Point3f > &vP3D, vector< bool > &vbTriangulated, float minParallax, int minTriangulated) |
bool | ReconstructH (vector< bool > &vbMatchesInliers, cv::Mat &H21, cv::Mat &K, cv::Mat &R21, cv::Mat &t21, vector< cv::Point3f > &vP3D, vector< bool > &vbTriangulated, float minParallax, int minTriangulated) |
void | Triangulate (const cv::KeyPoint &kp1, const cv::KeyPoint &kp2, const cv::Mat &P1, const cv::Mat &P2, cv::Mat &x3D) |
Private Attributes | |
cv::Mat | mK |
int | mMaxIterations |
float | mSigma |
float | mSigma2 |
vector< bool > | mvbMatched1 |
vector< cv::KeyPoint > | mvKeys1 |
vector< cv::KeyPoint > | mvKeys2 |
vector< Match > | mvMatches12 |
vector< vector< size_t > > | mvSets |
Definition at line 31 of file Initializer.h.
|
private |
Definition at line 33 of file Initializer.h.
ORB_SLAM2::Initializer::Initializer | ( | const Frame & | ReferenceFrame, |
float | sigma = 1.0 , |
||
int | iterations = 200 |
||
) |
Definition at line 33 of file Initializer.cc.
|
private |
Definition at line 390 of file Initializer.cc.
|
private |
Definition at line 305 of file Initializer.cc.
|
private |
Definition at line 798 of file Initializer.cc.
|
private |
Definition at line 268 of file Initializer.cc.
|
private |
Definition at line 226 of file Initializer.cc.
|
private |
Definition at line 909 of file Initializer.cc.
|
private |
Definition at line 175 of file Initializer.cc.
|
private |
Definition at line 124 of file Initializer.cc.
bool ORB_SLAM2::Initializer::Initialize | ( | const Frame & | CurrentFrame, |
const vector< int > & | vMatches12, | ||
cv::Mat & | R21, | ||
cv::Mat & | t21, | ||
vector< cv::Point3f > & | vP3D, | ||
vector< bool > & | vbTriangulated | ||
) |
Definition at line 44 of file Initializer.cc.
|
private |
Definition at line 749 of file Initializer.cc.
|
private |
Definition at line 470 of file Initializer.cc.
|
private |
Definition at line 572 of file Initializer.cc.
|
private |
Definition at line 734 of file Initializer.cc.
|
private |
Definition at line 86 of file Initializer.h.
|
private |
Definition at line 92 of file Initializer.h.
|
private |
Definition at line 89 of file Initializer.h.
|
private |
Definition at line 89 of file Initializer.h.
|
private |
Definition at line 83 of file Initializer.h.
|
private |
Definition at line 76 of file Initializer.h.
|
private |
Definition at line 79 of file Initializer.h.
|
private |
Definition at line 82 of file Initializer.h.
|
private |
Definition at line 95 of file Initializer.h.