10 #ifndef SLPROJECT_CVTRACKEDARUCOCUBE_H
11 #define SLPROJECT_CVTRACKEDARUCOCUBE_H
25 init(numValues, initValue);
31 assert(numValues > 0 &&
"Num. of values must be greater than zero");
33 _values.resize(numValues, initValue);
42 assert(
_values.size() > 0 &&
"_value vector not initialized");
56 for (
int i = 0; i <
_values.size(); i++)
void init(int numValues, SLQuat4f initValue)
Initializes the average value array to a given value.
vector< SLQuat4f > _values
value array
AveragedQuat4f(int numValues, SLQuat4f initValue)
void set(SLQuat4f value)
Sets the current value in the value array and builds the average.
int _currentValueIndex
current value index within _values
float _oneOverNumValues
multiplier instead of divider
SLQuat4f _average
average value
Live video camera calibration class with OpenCV an OpenCV calibration.
OpenCV ArUco cube marker tracker class derived from CVTrackedAruco.
Averaged< CVVec3f > _averagePosition
AveragedQuat4f _averageRotation
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.
OpenCV ArUco marker tracker class derived from CVTracked.
void set(T x, T y, T z, T w)
T dot(const SLQuat4< T > &q) const