![]() |
SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
OpenCV ArUco cube marker tracker class derived from CVTrackedAruco. More...
#include <CVTrackedArucoCube.h>
Public Member Functions | |
| CVTrackedArucoCube (string calibIniPath, float edgeLength) | |
| bool | track (CVMat imageGray, CVMat imageBgr, CVCalibration *calib) |
| Tracks the all Aruco markers in the given image for the first sceneview. More... | |
Public Member Functions inherited from CVTrackedAruco | |
| CVTrackedAruco (int arucoID, string calibIniPath) | |
| const CVArucoParams & | params () const |
Public Member Functions inherited from CVTracked | |
| CVTracked () | |
| virtual | ~CVTracked ()=default |
| void | drawDetection (bool draw) |
| bool | isVisible () |
| bool | drawDetection () |
| CVMatx44f | objectViewMat () |
Public Attributes | |
| CVRect | _roi = CVRect(0, 0, 0, 0) |
Private Attributes | |
| float | _edgeLength |
| Averaged< CVVec3f > | _averagePosition |
| AveragedQuat4f | _averageRotation |
Additional Inherited Members | |
Static Public Member Functions inherited from CVTrackedAruco | |
| static void | drawArucoMarkerBoard (int dictionaryId, int numMarkersX, int numMarkersY, float markerEdgeLengthM, float markerSepaM, const string &imgName, float dpi=254.0f, bool showImage=false) |
| Helper function to draw and save an aruco marker board image. More... | |
| static void | drawArucoMarker (int dictionaryId, int minMarkerId, int maxMarkerId, int markerSizePX=200) |
| Helper function to draw and save an aruco marker set. More... | |
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 Member Functions inherited from CVTrackedAruco | |
| bool | trackAll (CVMat imageGray, CVMat imageBgr, CVCalibration *calib, CVRect roi=CVRect(0, 0, 0, 0)) |
Protected Attributes inherited from CVTrackedAruco | |
| vector< int > | arucoIDs |
| detected Aruco marker IDs More... | |
| CVVMatx44f | objectViewMats |
| object view matrices for all found markers 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... | |
OpenCV ArUco cube marker tracker class derived from CVTrackedAruco.
Tracks a cube of ArUco markers and averages their values. The origin of the cube is in the center. The markers must be placed in the following manner: ID 0: front ID 1: right ID 2: back ID 3: left ID 4: top ID 5: bottom
Definition at line 97 of file CVTrackedArucoCube.h.
| CVTrackedArucoCube::CVTrackedArucoCube | ( | string | calibIniPath, |
| float | edgeLength | ||
| ) |
Definition at line 21 of file CVTrackedArucoCube.cpp.
|
virtual |
Tracks the all Aruco markers in the given image for the first sceneview.
Reimplemented from CVTrackedAruco.
Definition at line 29 of file CVTrackedArucoCube.cpp.
Definition at line 109 of file CVTrackedArucoCube.h.
|
private |
Definition at line 110 of file CVTrackedArucoCube.h.
|
private |
Definition at line 107 of file CVTrackedArucoCube.h.
Definition at line 113 of file CVTrackedArucoCube.h.