12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #ifndef FRAMEDRAWER_H
- #define FRAMEDRAWER_H
- #include "Tracking.h"
- #include "MapPoint.h"
- #include "Atlas.h"
- #include<opencv2/core/core.hpp>
- #include<opencv2/features2d/features2d.hpp>
- #include<mutex>
- #include <unordered_set>
- namespace ORB_SLAM3
- {
- class Tracking;
- class Viewer;
- class FrameDrawer
- {
- public:
- EIGEN_MAKE_ALIGNED_OPERATOR_NEW
- FrameDrawer(Atlas* pAtlas);
-
- void Update(Tracking *pTracker);
-
- cv::Mat DrawFrame(float imageScale=1.f);
- cv::Mat DrawRightFrame(float imageScale=1.f);
- bool both;
- protected:
- void DrawTextInfo(cv::Mat &im, int nState, cv::Mat &imText);
-
- cv::Mat mIm, mImRight;
- int N;
- vector<cv::KeyPoint> mvCurrentKeys,mvCurrentKeysRight;
- vector<bool> mvbMap, mvbVO;
- bool mbOnlyTracking;
- int mnTracked, mnTrackedVO;
- vector<cv::KeyPoint> mvIniKeys;
- vector<int> mvIniMatches;
- int mState;
- std::vector<float> mvCurrentDepth;
- float mThDepth;
- Atlas* mpAtlas;
- std::mutex mMutex;
- vector<pair<cv::Point2f, cv::Point2f> > mvTracks;
- Frame mCurrentFrame;
- vector<MapPoint*> mvpLocalMap;
- vector<cv::KeyPoint> mvMatchedKeys;
- vector<MapPoint*> mvpMatchedMPs;
- vector<cv::KeyPoint> mvOutlierKeys;
- vector<MapPoint*> mvpOutlierMPs;
- map<long unsigned int, cv::Point2f> mmProjectPoints;
- map<long unsigned int, cv::Point2f> mmMatchedInImage;
- };
- }
- #endif
|