39#ifndef ARMARKERSQUARE_H
40#define ARMARKERSQUARE_H
44#define AR_PATTERN_TYPE_TEMPLATE 0
45#define AR_PATTERN_TYPE_MATRIX 1
102 std::pair<float, float>
getPatternSize(
int patternIndex)
override;
AR_MATRIX_CODE_TYPE
Values specifying the type of matrix code in use.
Definition ar.h:320
double ARdouble
Definition ar.h:99
ARTrackable(TrackableType type)
Constructor takes the type of this trackable.
Definition ARTrackable.cpp:59
ARPattHandle * m_arPattHandle
Definition ARTrackableSquare.h:56
ARdouble m_cf
Definition ARTrackableSquare.h:58
bool getPatternImage(int patternIndex, uint32_t *pattImageBuffer, AR_MATRIX_CODE_TYPE matrixCodeType) override
Definition ARTrackableSquare.cpp:391
bool useContPoseEstimation
Definition ARTrackableSquare.h:72
int getPatternCount() override
Definition ARTrackableSquare.cpp:359
bool initWithBarcode(int barcodeID, ARdouble width, uint64_t globalID_=0)
Init the trackable as a barcode.
Definition ARTrackableSquare.cpp:135
int patt_id
Pattern ID provided by libAR.
Definition ARTrackableSquare.h:65
ARdouble m_cfMin
Definition ARTrackableSquare.h:59
bool initWithPatternFromBuffer(const char *buffer, ARdouble width, ARPattHandle *arPattHandle)
Definition ARTrackableSquare.cpp:110
std::pair< int, int > getPatternImageSize(int patternIndex, AR_MATRIX_CODE_TYPE matrixCodeType) override
Definition ARTrackableSquare.cpp:370
ARdouble getConfidence()
Definition ARTrackableSquare.cpp:160
uint64_t globalID
Definition ARTrackableSquare.h:67
int patt_type
Definition ARTrackableSquare.h:66
void setWidth(ARdouble width)
Definition ARTrackableSquare.h:77
std::pair< float, float > getPatternSize(int patternIndex) override
Definition ARTrackableSquare.cpp:364
bool initWithPatternFile(const char *path, ARdouble width, ARPattHandle *arPattHandle)
Definition ARTrackableSquare.cpp:84
bool unload()
Definition ARTrackableSquare.cpp:65
ARdouble m_width
Definition ARTrackableSquare.h:57
bool updateWithDetectedMarkersStereo(ARMarkerInfo *markerInfoL, int markerNumL, ARMarkerInfo *markerInfoR, int markerNumR, AR3DStereoHandle *handle, ARdouble transL2R[3][4])
Definition ARTrackableSquare.cpp:247
bool updateWithDetectedMarkers(ARMarkerInfo *markerInfo, int markerNum, AR3DHandle *ar3DHandle)
Updates the marker with new tracking info.
Definition ARTrackableSquare.cpp:177
ARdouble getConfidenceCutoff()
Definition ARTrackableSquare.cpp:165
void setConfidenceCutoff(ARdouble value)
Definition ARTrackableSquare.cpp:170
ARdouble width()
Definition ARTrackableSquare.h:76
ARTrackableSquare()
Definition ARTrackableSquare.cpp:47
bool getPatternTransform(int patternIndex, ARdouble T[16]) override
Get the transform, relative to this trackable's origin, of this pattern.
Definition ARTrackableSquare.cpp:381
Structure holding state of an instance of the monocular pose estimator.
Definition ar.h:385
Structure holding state of an instance of the stereo pose estimator.
Definition ar.h:395
Describes a detected trapezoidal area (a candidate for a marker match).
Definition ar.h:213
A structure which holds descriptions of trained patterns for template matching.
Definition ar.h:268