![]() |
SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <WAISlam.h>
Classes | |
struct | Params |
Public Member Functions | |
WAISlam (const cv::Mat &intrinsic, const cv::Mat &distortion, WAIOrbVocabulary *voc, KPextractor *iniExtractor, KPextractor *relocExtractor, KPextractor *extractor, std::unique_ptr< WAIMap > globalMap, WAISlam::Params params) | |
virtual | ~WAISlam () |
virtual void | reset () |
void | changeIntrinsic (cv::Mat intrinsic, cv::Mat distortion) |
void | createFrame (WAIFrame &frame, cv::Mat &imageGray) |
virtual void | updatePose (WAIFrame &frame) |
virtual bool | update (cv::Mat &imageGray) |
virtual void | updatePoseKFIntegration (WAIFrame &frame) |
virtual void | resume () |
virtual bool | isTracking () |
virtual bool | hasStateIdle () |
virtual void | requestStateIdle () |
virtual bool | retainImage () |
void | transformCoords (cv::Mat transform) |
std::vector< WAIMapPoint * > | getMatchedMapPoints (WAIFrame *frame) |
int | getMatchedCorrespondances (WAIFrame *frame, std::pair< std::vector< cv::Point2f >, std::vector< cv::Point3f >> &matching) |
virtual bool | isInitialized () |
virtual WAIMap * | getMap () |
virtual WAIFrame | getLastFrame () |
virtual WAIFrame * | getLastFramePtr () |
virtual std::vector< WAIMapPoint * > | getLocalMapPoints () |
virtual int | getNumKeyFrames () |
virtual std::vector< WAIMapPoint * > | getMapPoints () |
virtual std::vector< WAIKeyFrame * > | getKeyFrames () |
virtual std::string | getPrintableState () |
virtual int | getKeyPointCount () |
virtual int | getKeyFrameCount () |
virtual int | getMapPointCount () |
virtual cv::Mat | getPose () |
virtual void | setCamExrinsicGuess (cv::Mat extrinsicGuess) |
virtual void | setMap (std::unique_ptr< WAIMap > globalMap) |
virtual WAITrackingState | getTrackingState () |
virtual void | drawInfo (cv::Mat &imageBGR, float scale, bool showInitLine, bool showKeyPoints, bool showKeyPointsMatched) |
KPextractor * | getKPextractor () |
int | getMapPointMatchesCount () const |
std::string | getLoopCloseStatus () |
int | getLoopCloseCount () |
int | getKeyFramesInLoopCloseQueueCount () |
Protected Member Functions | |
void | updateState (WAITrackingState state) |
bool | finishRequested () |
void | requestFinish () |
bool | isStop () |
bool | isFinished () |
void | flushQueue () |
int | getNextFrame (WAIFrame &frame) |
![]() | |
virtual | ~WAISlamTools () |
WAISlamTools () | |
Static Protected Member Functions | |
static void | updatePoseThread (WAISlam *ptr) |
![]() | |
static void | countReprojectionOutliers (WAIFrame &frame, unsigned int &m, unsigned int &n, unsigned int &outliers) |
Additional Inherited Members | |
![]() | |
static void | drawKeyPointInfo (WAIFrame &frame, cv::Mat &image, float scale) |
static void | drawKeyPointMatches (WAIFrame &frame, cv::Mat &image, float scale) |
static void | drawInitInfo (WAIInitializerData &iniData, WAIFrame &frame, cv::Mat &imageBGR, float scale) |
static bool | initialize (WAIInitializerData &iniData, WAIFrame &frame, WAIOrbVocabulary *voc, LocalMap &localMap, int mapPointsNeeded=100) |
static bool | genInitialMap (WAIMap *globalMap, LocalMapping *localMapper, LoopClosing *loopCloser, LocalMap &localMap) |
static bool | oldInitialize (WAIFrame &frame, WAIInitializerData &iniData, WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, LoopClosing *loopCloser, WAIOrbVocabulary *voc, int mapPointsNeeded=100) |
static int | findFrameFixedMapMatches (WAIFrame &frame, WAIMap *waiMap, std::vector< cv::Point2f > &points2d, std::vector< cv::Point3f > &points3d) |
static bool | relocalization (WAIFrame ¤tFrame, WAIMap *waiMap, LocalMap &localMap, float minCommonWordFactor, int &inliers, bool minAccScoreFilter=false) |
static bool | relocalizationGPS (WAIFrame ¤tFrame, WAIMap *waiMap, LocalMap &localMap, cv::Mat locENU, cv::Mat dirENU, float minCommonWordFactor, int &inliers, bool minAccScoreFilter) |
static bool | tracking (WAIMap *map, LocalMap &localMap, WAIFrame &frame, WAIFrame &lastFrame, int lastRelocFrameId, cv::Mat &velocity, int &inliers) |
static bool | strictTracking (WAIMap *map, LocalMap &localMap, WAIFrame &frame, WAIFrame &lastFrame, int lastRelocFrameId, int &inliers) |
static bool | trackLocalMap (LocalMap &localMap, WAIFrame &frame, int lastRelocFrameId, int &inliers) |
static void | mapping (WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int inliers, const unsigned long lastRelocFrameId, unsigned long &lastKeyFrameFrameId) |
static void | strictMapping (WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int inliers, const unsigned long lastRelocFrameId, unsigned long &lastKeyFrameFrameId) |
static void | motionModel (WAIFrame &frame, WAIFrame &lastFrame, cv::Mat &velocity, cv::Mat &pose) |
static bool | trackReferenceKeyFrame (LocalMap &map, WAIFrame &lastFrame, WAIFrame &frame) |
static bool | strictTrackReferenceKeyFrame (LocalMap &map, WAIFrame &lastFrame, WAIFrame &frame) |
static bool | trackWithMotionModel (cv::Mat velocity, WAIFrame &previousFrame, WAIFrame &frame) |
static void | updateLocalMap (WAIFrame &frame, LocalMap &localMap) |
static int | trackLocalMapPoints (LocalMap &localMap, int lastRelocFrameId, WAIFrame &frame) |
static bool | needNewKeyFrame (WAIMap *globalMap, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int nInliners, const unsigned long lastRelocFrameId, const unsigned long lastKeyFrameFrameId) |
static bool | strictNeedNewKeyFrame (WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int nInliers, const unsigned long lastRelocFrameId, const unsigned long lastKeyFrameFrameId) |
static void | createNewKeyFrame (LocalMapping *localMapper, LocalMap &localMap, WAIMap *globalMap, WAIFrame &frame, unsigned long &lastKeyFrameFrameId) |
static WAIFrame | createMarkerFrame (std::string markerFile, KPextractor *markerExtractor, const cv::Mat &markerCameraIntrinsic, WAIOrbVocabulary *voc) |
static bool | findMarkerHomography (WAIFrame &markerFrame, WAIKeyFrame *kfCand, cv::Mat &homography, int minMatches) |
static bool | doMarkerMapPreprocessing (std::string markerFile, cv::Mat &nodeTransform, float markerWidthInM, KPextractor *markerExtractor, WAIMap *map, const cv::Mat &markerCameraIntrinsic, WAIOrbVocabulary *voc) |
static bool | detectCycle (WAIKeyFrame *kf, std::set< WAIKeyFrame * > &visitedNode) |
static bool | checkKFConnectionsTree (WAIMap *map) |
WAISlam::WAISlam | ( | const cv::Mat & | intrinsic, |
const cv::Mat & | distortion, | ||
WAIOrbVocabulary * | voc, | ||
KPextractor * | iniExtractor, | ||
KPextractor * | relocExtractor, | ||
KPextractor * | extractor, | ||
std::unique_ptr< WAIMap > | globalMap, | ||
WAISlam::Params | params | ||
) |
Definition at line 15 of file WAISlam.cpp.
|
virtual |
Definition at line 93 of file WAISlam.cpp.
void WAISlam::changeIntrinsic | ( | cv::Mat | intrinsic, |
cv::Mat | distortion | ||
) |
Definition at line 156 of file WAISlam.cpp.
Definition at line 162 of file WAISlam.cpp.
|
virtual |
Definition at line 488 of file WAISlam.cpp.
|
protected |
Definition at line 231 of file WAISlam.cpp.
|
protected |
Definition at line 197 of file WAISlam.cpp.
|
inlinevirtual |
int WAISlam::getKeyFramesInLoopCloseQueueCount | ( | ) |
Definition at line 639 of file WAISlam.cpp.
|
inline |
|
virtual |
Definition at line 459 of file WAISlam.cpp.
|
virtual |
Definition at line 465 of file WAISlam.cpp.
|
inlinevirtual |
int WAISlam::getLoopCloseCount | ( | ) |
Definition at line 634 of file WAISlam.cpp.
std::string WAISlam::getLoopCloseStatus | ( | ) |
Definition at line 629 of file WAISlam.cpp.
int WAISlam::getMapPointMatchesCount | ( | ) | const |
Definition at line 624 of file WAISlam.cpp.
|
inlinevirtual |
int WAISlam::getMatchedCorrespondances | ( | WAIFrame * | frame, |
std::pair< std::vector< cv::Point2f >, std::vector< cv::Point3f >> & | matching | ||
) |
Definition at line 531 of file WAISlam.cpp.
std::vector< WAIMapPoint * > WAISlam::getMatchedMapPoints | ( | WAIFrame * | frame | ) |
Definition at line 515 of file WAISlam.cpp.
|
protected |
Definition at line 212 of file WAISlam.cpp.
|
virtual |
Definition at line 551 of file WAISlam.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 579 of file WAISlam.cpp.
|
protected |
Definition at line 237 of file WAISlam.cpp.
|
protected |
Definition at line 243 of file WAISlam.cpp.
|
virtual |
Definition at line 585 of file WAISlam.cpp.
|
protected |
Definition at line 225 of file WAISlam.cpp.
|
virtual |
Definition at line 563 of file WAISlam.cpp.
|
virtual |
Definition at line 121 of file WAISlam.cpp.
|
virtual |
Definition at line 249 of file WAISlam.cpp.
|
virtual |
Definition at line 591 of file WAISlam.cpp.
|
virtual |
Definition at line 557 of file WAISlam.cpp.
Definition at line 615 of file WAISlam.cpp.
void WAISlam::transformCoords | ( | cv::Mat | transform | ) |
Definition at line 596 of file WAISlam.cpp.
|
virtual |
Definition at line 471 of file WAISlam.cpp.
Definition at line 291 of file WAISlam.cpp.
Definition at line 395 of file WAISlam.cpp.
Definition at line 257 of file WAISlam.cpp.
|
protected |
Definition at line 206 of file WAISlam.cpp.
|
protected |
|
protected |