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
Base class for supported trackable types.
Definition: ARTrackable.h:62
Single marker type of ARTrackable.
Definition: ARTrackableSquare.h:50
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:389
bool useContPoseEstimation
Definition: ARTrackableSquare.h:72
int getPatternCount() override
Definition: ARTrackableSquare.cpp:357
bool initWithBarcode(int barcodeID, ARdouble width, uint64_t globalID_=0)
Init the trackable as a barcode.
Definition: ARTrackableSquare.cpp:134
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:109
std::pair< int, int > getPatternImageSize(int patternIndex, AR_MATRIX_CODE_TYPE matrixCodeType) override
Definition: ARTrackableSquare.cpp:368
~ARTrackableSquare()
Definition: ARTrackableSquare.cpp:59
ARdouble getConfidence()
Definition: ARTrackableSquare.cpp:158
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:362
bool initWithPatternFile(const char *path, ARdouble width, ARPattHandle *arPattHandle)
Definition: ARTrackableSquare.cpp:83
bool unload()
Definition: ARTrackableSquare.cpp:64
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:245
bool updateWithDetectedMarkers(ARMarkerInfo *markerInfo, int markerNum, AR3DHandle *ar3DHandle)
Updates the marker with new tracking info.
Definition: ARTrackableSquare.cpp:175
ARdouble getConfidenceCutoff()
Definition: ARTrackableSquare.cpp:163
void setConfidenceCutoff(ARdouble value)
Definition: ARTrackableSquare.cpp:168
ARdouble width()
Definition: ARTrackableSquare.h:76
ARTrackableSquare()
Definition: ARTrackableSquare.cpp:46
bool getPatternTransform(int patternIndex, ARdouble T[16]) override
Get the transform, relative to this trackable's origin, of this pattern.
Definition: ARTrackableSquare.cpp:379
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