![]()  | 
  
    SLProject
    4.2.000
    
   A platform independent 3D computer graphics framework for desktop OS,  Android,  iOS and online in web browsers 
   | 
 
Tracker that uses the ORB-Slam based WAI library (Where Am I) More...
#include <CVTrackedWAI.h>
Public Member Functions | |
| CVTrackedWAI (const string &vocabularyFile) | |
| ~CVTrackedWAI () override | |
| bool | track (CVMat imageGray, CVMat imageBgr, CVCalibration *calib) final | 
  Public Member Functions inherited from CVTracked | |
| CVTracked () | |
| virtual | ~CVTracked ()=default | 
| void | drawDetection (bool draw) | 
| bool | isVisible () | 
| bool | drawDetection () | 
| CVMatx44f | objectViewMat () | 
Private Attributes | |
| WAISlam * | _waiSlamer = nullptr | 
| ORB_SLAM2::ORBextractor * | _trackingExtractor = nullptr | 
| ORB_SLAM2::ORBextractor * | _initializationExtractor = nullptr | 
| WAIOrbVocabulary * | _voc | 
Additional Inherited Members | |
  Static Public Member Functions inherited from CVTracked | |
| static cv::Matx44f | createGLMatrix (const CVMat &tVec, const CVMat &rVec) | 
| Create an OpenGL 4x4 matrix from an OpenCV translation & rotation vector.  More... | |
| static void | createRvecTvec (const CVMatx44f &glMat, CVMat &tVec, CVMat &rVec) | 
| Creates the OpenCV rvec & tvec vectors from an column major OpenGL 4x4 matrix.  More... | |
| static CVMatx44f | calcObjectMatrix (const CVMatx44f &cameraObjectMat, const CVMatx44f &objectViewMat) | 
| static CVVec3f | averageVector (vector< CVVec3f > vectors, vector< float > weights) | 
| static SLQuat4f | averageQuaternion (vector< SLQuat4f > quaternions, vector< float > weights) | 
| static void | resetTimes () | 
| Resets all static variables.  More... | |
  Static Public Attributes inherited from CVTracked | |
| static AvgFloat | trackingTimesMS | 
| Averaged time for video tracking in ms.  More... | |
| static AvgFloat | detectTimesMS | 
| Averaged time for video feature detection & description in ms.  More... | |
| static AvgFloat | detect1TimesMS | 
| Averaged time for video feature detection subpart 1 in ms.  More... | |
| static AvgFloat | detect2TimesMS | 
| Averaged time for video feature detection subpart 2 in ms.  More... | |
| static AvgFloat | matchTimesMS | 
| Averaged time for video feature matching in ms.  More... | |
| static AvgFloat | optFlowTimesMS | 
| Averaged time for video feature optical flow tracking in ms.  More... | |
| static AvgFloat | poseTimesMS | 
| Averaged time for video feature pose estimation in ms.  More... | |
  Protected Attributes inherited from CVTracked | |
| bool | _isVisible | 
| Flag if marker is visible.  More... | |
| bool | _drawDetection | 
| Flag if detection should be drawn into image.  More... | |
| CVMatx44f | _objectViewMat | 
| view transformation matrix  More... | |
| HighResTimer | _timer | 
| High resolution timer.  More... | |
Tracker that uses the ORB-Slam based WAI library (Where Am I)
Definition at line 25 of file CVTrackedWAI.h.
      
  | 
  explicit | 
Definition at line 15 of file CVTrackedWAI.cpp.
      
  | 
  override | 
Definition at line 34 of file CVTrackedWAI.cpp.
      
  | 
  finalvirtual | 
This function is called every frame in the apps onUpdateVideo function. It uses the on-the-fly built 3D point cloud generated by the ORB-SLAM2 library that is integrated within the lib-WAI. It only works well if the camera is calibrated.
| imageGray | Image for processing | 
| imageBgr | Image for visualizations | 
| calib | Pointer to a valid camera calibration | 
Implements CVTracked.
Definition at line 49 of file CVTrackedWAI.cpp.
      
  | 
  private | 
Definition at line 38 of file CVTrackedWAI.h.
      
  | 
  private | 
Definition at line 37 of file CVTrackedWAI.h.
      
  | 
  private | 
Definition at line 39 of file CVTrackedWAI.h.
      
  | 
  private | 
Definition at line 36 of file CVTrackedWAI.h.