27 #ifndef __EMSCRIPTEN__
28 # include <opencv2/aruco.hpp>
29 # include <opencv2/xfeatures2d.hpp>
76 vector<float> weights);
78 vector<float> weights);
Live video camera calibration class with OpenCV an OpenCV calibration.
CVTracked is the pure virtual base class for tracking features in video.
static AvgFloat trackingTimesMS
Averaged time for video tracking in ms.
bool _isVisible
Flag if marker is visible.
static AvgFloat optFlowTimesMS
Averaged time for video feature optical flow tracking in ms.
CVMatx44f _objectViewMat
view transformation matrix
static void createRvecTvec(const CVMatx44f &glMat, CVMat &tVec, CVMat &rVec)
Creates the OpenCV rvec & tvec vectors from an column major OpenGL 4x4 matrix.
static AvgFloat detectTimesMS
Averaged time for video feature detection & description in ms.
virtual bool track(CVMat imageGray, CVMat imageBgr, CVCalibration *calib)=0
static CVMatx44f calcObjectMatrix(const CVMatx44f &cameraObjectMat, const CVMatx44f &objectViewMat)
bool _drawDetection
Flag if detection should be drawn into image.
static cv::Matx44f createGLMatrix(const CVMat &tVec, const CVMat &rVec)
Create an OpenGL 4x4 matrix from an OpenCV translation & rotation vector.
static SLQuat4f averageQuaternion(vector< SLQuat4f > quaternions, vector< float > weights)
static AvgFloat detect1TimesMS
Averaged time for video feature detection subpart 1 in ms.
virtual ~CVTracked()=default
static void resetTimes()
Resets all static variables.
HighResTimer _timer
High resolution timer.
static AvgFloat detect2TimesMS
Averaged time for video feature detection subpart 2 in ms.
static AvgFloat matchTimesMS
Averaged time for video feature matching in ms.
static AvgFloat poseTimesMS
Averaged time for video feature pose estimation in ms.
void drawDetection(bool draw)
CVMatx44f objectViewMat()
static CVVec3f averageVector(vector< CVVec3f > vectors, vector< float > weights)
High Resolution Timer class using C++11.
Utils::Averaged< float > AvgFloat