![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
An ARTrackable that auto-builds a map of matrix (2D barcode) markers. More...
#include <ARTrackableMultiSquareAuto.h>
Public Member Functions | |
| ARTrackableMultiSquareAuto () | |
| ~ARTrackableMultiSquareAuto () | |
| bool | initWithOriginMarkerUID (int originMarkerUID, ARdouble markerWidth) |
| bool | updateWithDetectedMarkers (ARMarkerInfo *markerInfo, int markerNum, int videoWidth, int videoHeight, AR3DHandle *ar3DHandle) |
| Updates the marker with new tracking info. More... | |
| bool | updateWithDetectedMarkersStereo (ARMarkerInfo *markerInfoL, int markerNumL, int videoWidthL, int videoHeightL, ARMarkerInfo *markerInfoR, int markerNumR, int videoWidthR, int videoHeightR, AR3DStereoHandle *handle, ARdouble transL2R[3][4]) |
| ARMultiMarkerInfoT * | copyMultiConfig () |
| Make a copy of the multi config. More... | |
Public Member Functions inherited from ARTrackable | |
| ARTrackable (TrackableType type) | |
| Constructor takes the type of this trackable. More... | |
| ARTrackable (const ARTrackable &)=delete | |
| Copy construction is undefined. More... | |
| ARTrackable & | operator= (const ARTrackable &)=delete |
| Copy assignment is undefined. More... | |
| virtual | ~ARTrackable () |
| void | setPositionScalefactor (ARdouble scale) |
| ARdouble | positionScalefactor () |
| virtual bool | update (const ARdouble transL2R[3][4]=NULL) |
| Completes an update begun in the parent class, performing filtering, generating OpenGL view matrix and notifying listeners (just a log message at the moment). More... | |
| ARPattern * | getPattern (int n) |
| Returns the specified pattern within this trackable. More... | |
| void | setFiltered (bool flag) |
| bool | isFiltered () |
| ARdouble | filterSampleRate () |
| void | setFilterSampleRate (ARdouble rate) |
| ARdouble | filterCutoffFrequency () |
| void | setFilterCutoffFrequency (ARdouble freq) |
Public Attributes | |
| ARdouble | m_ImageBorderZone = 0.2f |
| The proportion of the image width/height to consider as an "border" zone in which markers are not to be detected. Set to 0.0f to allow markers to appear anywhere in the image. More... | |
| bool | m_robustFlag = true |
| Flag specifying which pose estimation approach to use. More... | |
| ARdouble | m_maxErr = 4.0f |
| The maximum allowable pose estimate error. More... | |
Public Attributes inherited from ARTrackable | |
| int | UID |
| Internal unique ID (note: not the same as artoolkitX pattern ID) More... | |
| TrackableType | type |
| Type of trackable: single, multi, ... More... | |
| bool | visiblePrev |
| Whether or not the trackable was visible prior to last update. More... | |
| bool | visible |
| Whether or not the trackable is visible at current time. More... | |
| ARdouble | transformationMatrix [16] |
| Transformation suitable for use in OpenGL. More... | |
| ARdouble | transformationMatrixR [16] |
| Transformation suitable for use in OpenGL. More... | |
| int | patternCount |
| If this trackable has a surface appearance, the number of patterns that it has (1 for single). More... | |
| ARPattern ** | patterns |
| Array of pointers to patterns. More... | |
Additional Inherited Members | |
Public Types inherited from ARTrackable | |
| enum | TrackableType { SINGLE , MULTI , NFT , TwoD , MULTI_AUTO } |
Protected Member Functions inherited from ARTrackable | |
| void | allocatePatterns (int count) |
| Allocates space for patterns within this trackable. More... | |
| void | freePatterns () |
| Frees allocated patterns and resets the pattern count to zero. More... | |
Protected Attributes inherited from ARTrackable | |
| ARdouble | trans [3][4] |
| Transformation from camera to this trackable. If stereo, transform from left camera to this trackable. More... | |
| ARdouble | m_positionScaleFactor |
An ARTrackable that auto-builds a map of matrix (2D barcode) markers.
| ARTrackableMultiSquareAuto::ARTrackableMultiSquareAuto | ( | ) |
| ARTrackableMultiSquareAuto::~ARTrackableMultiSquareAuto | ( | ) |
| ARMultiMarkerInfoT * ARTrackableMultiSquareAuto::copyMultiConfig | ( | ) |
Make a copy of the multi config.
Caller must call arMultiFreeConfig() on the returned value when done.
| bool ARTrackableMultiSquareAuto::initWithOriginMarkerUID | ( | int | originMarkerUID, |
| ARdouble | markerWidth | ||
| ) |
| bool ARTrackableMultiSquareAuto::updateWithDetectedMarkers | ( | ARMarkerInfo * | markerInfo, |
| int | markerNum, | ||
| int | videoWidth, | ||
| int | videoHeight, | ||
| AR3DHandle * | ar3DHandle | ||
| ) |
Updates the marker with new tracking info.
Then calls ARTrackable::update()
| markerInfo | Array containing detected marker information |
| markerNum | Number of items in the array |
| ar3DHandle | AR3DHandle used to extract marker pose. |
| bool ARTrackableMultiSquareAuto::updateWithDetectedMarkersStereo | ( | ARMarkerInfo * | markerInfoL, |
| int | markerNumL, | ||
| int | videoWidthL, | ||
| int | videoHeightL, | ||
| ARMarkerInfo * | markerInfoR, | ||
| int | markerNumR, | ||
| int | videoWidthR, | ||
| int | videoHeightR, | ||
| AR3DStereoHandle * | handle, | ||
| ARdouble | transL2R[3][4] | ||
| ) |
| ARdouble ARTrackableMultiSquareAuto::m_ImageBorderZone = 0.2f |
The proportion of the image width/height to consider as an "border" zone in which markers are not to be detected. Set to 0.0f to allow markers to appear anywhere in the image.
| ARdouble ARTrackableMultiSquareAuto::m_maxErr = 4.0f |
The maximum allowable pose estimate error.
| bool ARTrackableMultiSquareAuto::m_robustFlag = true |
Flag specifying which pose estimation approach to use.
1.9.5