![]() |
ARX
1.2.0
The next-generation open source augmented reality toolkit.
|
#include <ARTrackerSquare.h>
Public Types | |
| typedef void(*) | MatrixModeAutoCreateNewTrackablesCallback_t(const ARTrackableSquare &trackable) |
Public Member Functions | |
| ARTrackerSquare () | |
| ~ARTrackerSquare () | |
| ARTrackerType | type () const override |
| std::vector< std::string > | trackableConfigurations () const override |
| bool | initialize () override |
| void | setDebugMode (bool debug) |
| Enables or disables debug mode in the tracker. | |
| bool | debugMode () const |
| Returns whether debug mode is currently enabled. | |
| void | setImageProcMode (int mode) |
| int | imageProcMode () const |
| void | setThreshold (int thresh) |
| Sets the threshold value used for image binarization. | |
| int | threshold () const |
| Returns the current threshold value used for image binarization. | |
| void | setThresholdMode (AR_LABELING_THRESH_MODE mode) |
| Sets the thresholding mode to use. | |
| AR_LABELING_THRESH_MODE | thresholdMode () const |
| Returns the current thresholding mode. | |
| void | setLabelingMode (int mode) |
| Sets the labeling mode to use. | |
| int | labelingMode () const |
| Returns the current labeling mode. | |
| void | setPatternDetectionMode (int mode) |
| int | patternDetectionMode () const |
| void | setPattRatio (float ratio) |
| float | pattRatio () const |
| void | setMatrixCodeType (AR_MATRIX_CODE_TYPE type) |
| AR_MATRIX_CODE_TYPE | matrixCodeType () const |
| void | setPatternSize (int patternSize) |
| int | patternSize () const |
| void | setPatternCountMax (int patternCountMax) |
| int | patternCountMax () const |
| void | setMatrixModeAutoCreateNewTrackables (bool on) |
| bool | matrixModeAutoCreateNewTrackables () const |
| void | setMatrixModeAutoCreateNewTrackablesCallback (MatrixModeAutoCreateNewTrackablesCallback_t callback) |
| MatrixModeAutoCreateNewTrackablesCallback_t | matrixModeAutoCreateNewTrackablesCallback () const |
| void | setMatrixModeAutoCreateNewTrackablesDefaultWidth (ARdouble width) |
| float | matrixModeAutoCreateNewTrackablesDefaultWidth () const |
| bool | start (ARParamLT *paramLT, AR_PIXEL_FORMAT pixelFormat) override |
| bool | start (ARParamLT *paramLT0, AR_PIXEL_FORMAT pixelFormat0, ARParamLT *paramLT1, AR_PIXEL_FORMAT pixelFormat1, const ARdouble transL2R[3][4]) override |
| bool | isRunning () override |
| bool | wantsUpdate () override |
| bool | update (AR2VideoBufferT *buff) override |
| bool | update (AR2VideoBufferT *buff0, AR2VideoBufferT *buff1) override |
| bool | stop () override |
| void | terminate () override |
| int | newTrackable (std::vector< std::string > config) override |
| ARTrackable factory method. | |
| unsigned int | countTrackables () override |
| std::shared_ptr< ARTrackable > | getTrackable (int UID) override |
| std::vector< std::shared_ptr< ARTrackable > > | getAllTrackables () override |
| bool | deleteTrackable (int UID) override |
| Removes the trackable with UID uid, if held by this tracker. | |
| void | deleteAllTrackables () override |
| bool | updateDebugTextureRGBA32 (const int videoSourceIndex, uint32_t *buffer) |
| Public Member Functions inherited from ARTrackerVideo | |
| ARTrackerVideo () | |
| virtual | ~ARTrackerVideo () |
| Public Member Functions inherited from ARTracker | |
| ARTracker () | |
| virtual | ~ARTracker () |
Static Public Attributes | |
| static constexpr float | k_matrixModeAutoCreateNewTrackablesDefaultWidth_default = 80.0f |
| typedef void(*) ARTrackerSquare::MatrixModeAutoCreateNewTrackablesCallback_t(const ARTrackableSquare &trackable) |
| ARTrackerSquare::ARTrackerSquare | ( | ) |
| ARTrackerSquare::~ARTrackerSquare | ( | ) |
|
overridevirtual |
Implements ARTracker.
| bool ARTrackerSquare::debugMode | ( | ) | const |
Returns whether debug mode is currently enabled.
|
overridevirtual |
Implements ARTracker.
|
overridevirtual |
Removes the trackable with UID uid, if held by this tracker.
Implements ARTracker.
|
overridevirtual |
Implements ARTracker.
|
overridevirtual |
Implements ARTracker.
| int ARTrackerSquare::imageProcMode | ( | ) | const |
|
overridevirtual |
|
overridevirtual |
Implements ARTracker.
| int ARTrackerSquare::labelingMode | ( | ) | const |
| AR_MATRIX_CODE_TYPE ARTrackerSquare::matrixCodeType | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
ARTrackable factory method.
single;data/hiro.patt;80 single_buffer;80;buffer=234 221 237... single_barcode;0;80 multi;data/multi/marker.dat nft;data/nft/pinball 2d;pinball.jpg;188.0
Implements ARTracker.
| int ARTrackerSquare::patternCountMax | ( | ) | const |
| int ARTrackerSquare::patternDetectionMode | ( | ) | const |
| int ARTrackerSquare::patternSize | ( | ) | const |
| float ARTrackerSquare::pattRatio | ( | ) | const |
| void ARTrackerSquare::setDebugMode | ( | bool | debug | ) |
Enables or disables debug mode in the tracker.
When enabled, a black and white debug image is generated during marker detection. The debug image is useful for visualising the binarization process and choosing a threshold value.
| debug | true to enable debug mode, false to disable debug mode |
| void ARTrackerSquare::setImageProcMode | ( | int | mode | ) |
| void ARTrackerSquare::setLabelingMode | ( | int | mode | ) |
Sets the labeling mode to use.
| mode | The new labeling mode to use. |
| void ARTrackerSquare::setMatrixCodeType | ( | AR_MATRIX_CODE_TYPE | type | ) |
|
inline |
|
inline |
|
inline |
| void ARTrackerSquare::setPatternCountMax | ( | int | patternCountMax | ) |
| void ARTrackerSquare::setPatternDetectionMode | ( | int | mode | ) |
| void ARTrackerSquare::setPatternSize | ( | int | patternSize | ) |
| void ARTrackerSquare::setPattRatio | ( | float | ratio | ) |
| void ARTrackerSquare::setThreshold | ( | int | thresh | ) |
Sets the threshold value used for image binarization.
| thresh | The new threshold value to use |
| void ARTrackerSquare::setThresholdMode | ( | AR_LABELING_THRESH_MODE | mode | ) |
Sets the thresholding mode to use.
| mode | The new thresholding mode to use. |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| int ARTrackerSquare::threshold | ( | ) | const |
Returns the current threshold value used for image binarization.
| AR_LABELING_THRESH_MODE ARTrackerSquare::thresholdMode | ( | ) | const |
Returns the current thresholding mode.
|
inlineoverridevirtual |
Implements ARTracker.
|
inlineoverridevirtual |
Implements ARTracker.
|
overridevirtual |
|
overridevirtual |
| bool ARTrackerSquare::updateDebugTextureRGBA32 | ( | const int | videoSourceIndex, |
| uint32_t * | buffer ) |
|
overridevirtual |
Implements ARTracker.
|
staticconstexpr |
1.18.0