42#ifndef ARTRACKERSQUARE_H
43#define ARTRACKERSQUARE_H
56 return ARTrackerType::SQUARE_FIDUCIAL;
60 std::vector<std::string> sv;
61 sv.push_back(
"single");
62 sv.push_back(
"single_barcode");
63 sv.push_back(
"single_buffer");
64 sv.push_back(
"multi");
166 bool start(
ARParamLT *paramLT, AR_PIXEL_FORMAT pixelFormat)
override;
167 bool start(
ARParamLT *paramLT0, AR_PIXEL_FORMAT pixelFormat0,
ARParamLT *paramLT1, AR_PIXEL_FORMAT pixelFormat1,
const ARdouble transL2R[3][4])
override;
172 bool stop()
override;
175 int newTrackable(std::vector<std::string> config)
override;
177 std::shared_ptr<ARTrackable>
getTrackable(
int UID)
override;
185 std::vector<std::shared_ptr<ARTrackable>> m_trackables;
191 int m_patternDetectionMode;
195 int m_patternCountMax;
196 bool m_matrixModeAutoCreateNewTrackables;
197 float m_matrixModeAutoCreateNewTrackablesDefaultWidth;
ARTrackerType
Definition: ARTracker.h:51
artoolkitX core routines.
AR_MATRIX_CODE_TYPE
Values specifying the type of matrix code in use.
Definition: ar.h:320
double ARdouble
Definition: ar.h:99
AR_LABELING_THRESH_MODE
Values controlling the labeling thresholding mode.
Definition: ar.h:160
Single marker type of ARTrackable.
Definition: ARTrackableSquare.h:50
Definition: ARTrackerSquare.h:50
void setMatrixModeAutoCreateNewTrackables(bool on)
Definition: ARTrackerSquare.h:152
int newTrackable(std::vector< std::string > config) override
ARTrackable factory method.
Definition: ARTrackerSquare.cpp:510
~ARTrackerSquare()
Definition: ARTrackerSquare.cpp:72
bool wantsUpdate() override
Definition: ARTrackerSquare.cpp:368
bool matrixModeAutoCreateNewTrackables() const
Definition: ARTrackerSquare.h:154
void deleteAllTrackables() override
Definition: ARTrackerSquare.cpp:717
void setImageProcMode(int mode)
Definition: ARTrackerSquare.cpp:116
int imageProcMode() const
Definition: ARTrackerSquare.cpp:130
MatrixModeAutoCreateNewTrackablesCallback_t matrixModeAutoCreateNewTrackablesCallback() const
Definition: ARTrackerSquare.h:158
ARTrackerSquare()
Definition: ARTrackerSquare.cpp:48
unsigned int countTrackables() override
Definition: ARTrackerSquare.cpp:688
std::vector< std::string > trackableConfigurations() const override
Definition: ARTrackerSquare.h:59
void setThresholdMode(AR_LABELING_THRESH_MODE mode)
Sets the thresholding mode to use.
Definition: ARTrackerSquare.cpp:154
void setDebugMode(bool debug)
Enables or disables debug mode in the tracker.
Definition: ARTrackerSquare.cpp:98
void setPatternSize(int patternSize)
Definition: ARTrackerSquare.cpp:245
void setLabelingMode(int mode)
Sets the labeling mode to use.
Definition: ARTrackerSquare.cpp:172
void terminate() override
Definition: ARTrackerSquare.cpp:502
void setMatrixModeAutoCreateNewTrackablesCallback(MatrixModeAutoCreateNewTrackablesCallback_t callback)
Definition: ARTrackerSquare.h:157
AR_MATRIX_CODE_TYPE matrixCodeType() const
Definition: ARTrackerSquare.cpp:240
bool debugMode() const
Returns whether debug mode is currently enabled.
Definition: ARTrackerSquare.cpp:111
void setMatrixCodeType(AR_MATRIX_CODE_TYPE type)
Definition: ARTrackerSquare.cpp:227
AR_LABELING_THRESH_MODE thresholdMode() const
Returns the current thresholding mode.
Definition: ARTrackerSquare.cpp:167
void setThreshold(int thresh)
Sets the threshold value used for image binarization.
Definition: ARTrackerSquare.cpp:135
bool initialize() override
Definition: ARTrackerSquare.cpp:77
float matrixModeAutoCreateNewTrackablesDefaultWidth() const
Definition: ARTrackerSquare.h:164
int patternSize() const
Definition: ARTrackerSquare.cpp:261
std::shared_ptr< ARTrackable > getTrackable(int UID) override
Definition: ARTrackerSquare.cpp:693
static constexpr float k_matrixModeAutoCreateNewTrackablesDefaultWidth_default
Definition: ARTrackerSquare.h:161
float pattRatio() const
Definition: ARTrackerSquare.cpp:222
void setPatternDetectionMode(int mode)
Definition: ARTrackerSquare.cpp:190
void setMatrixModeAutoCreateNewTrackablesDefaultWidth(ARdouble width)
Definition: ARTrackerSquare.h:162
void setPattRatio(float ratio)
Definition: ARTrackerSquare.cpp:208
bool isRunning() override
Definition: ARTrackerSquare.cpp:88
ARTrackerType type() const override
Definition: ARTrackerSquare.h:55
int labelingMode() const
Returns the current labeling mode.
Definition: ARTrackerSquare.cpp:185
int threshold() const
Returns the current threshold value used for image binarization.
Definition: ARTrackerSquare.cpp:149
std::vector< std::shared_ptr< ARTrackable > > getAllTrackables() override
Definition: ARTrackerSquare.cpp:702
void setPatternCountMax(int patternCountMax)
Definition: ARTrackerSquare.cpp:266
int patternCountMax() const
Definition: ARTrackerSquare.cpp:282
bool updateDebugTextureRGBA32(const int videoSourceIndex, uint32_t *buffer)
Definition: ARTrackerSquare.cpp:726
void(* MatrixModeAutoCreateNewTrackablesCallback_t)(const ARTrackableSquare &trackable)
Definition: ARTrackerSquare.h:156
bool deleteTrackable(int UID) override
Removes the trackable with UID uid, if held by this tracker.
Definition: ARTrackerSquare.cpp:707
int patternDetectionMode() const
Definition: ARTrackerSquare.cpp:203
bool stop() override
Definition: ARTrackerSquare.cpp:478
Definition: ARTrackerVideo.h:49
A structure which carries information about a video frame retrieved by the video library.
Definition: ar.h:148
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
Structure holding state of an instance of the square marker tracker.
Definition: ar.h:342
Structure holding camera parameters, in lookup table form.
Definition: param.h:151
A structure which holds descriptions of trained patterns for template matching.
Definition: ar.h:268