Defines a simple interface for multi-marker tracking with ARToolKitPlus. More...
#include <TrackerMultiMarker.h>
Public Member Functions | |
virtual int | calc (const unsigned char *nImage)=0 |
calculates the transformation matrix | |
virtual void | getARMatrix (ARFloat nMatrix[3][4]) const =0 |
Provides access to ARToolKit' internal version of the transformation matrix. | |
virtual const ARMarkerInfo & | getDetectedMarker (int nWhich) const =0 |
Returns the ARMarkerInfo object for a found marker. | |
virtual void | getDetectedMarkers (int *&nMarkerIDs)=0 |
Returns array of detected marker IDs. | |
virtual const ARMultiMarkerInfoT * | getMultiMarkerConfig () const =0 |
Returns the loaded ARMultiMarkerInfoT object. | |
virtual int | getNumDetectedMarkers () const =0 |
Returns the number of detected markers used for multi-marker tracking. | |
virtual bool | init (const char *nCamParamFile, const char *nMultiFile, ARFloat nNearClip, ARFloat nFarClip, ARToolKitPlus::Logger *nLogger=NULL)=0 |
virtual bool | init (Camera *camerae, const char *nMultiFile, ARFloat nNearClip, ARFloat nFarClip, ARToolKitPlus::Logger *nLogger=NULL)=0 |
virtual void | setUseDetectLite (bool nEnable)=0 |
Enables usage of arDetectMarkerLite. Otherwise arDetectMarker is used. | |
virtual | ~TrackerMultiMarker () |
Defines a simple interface for multi-marker tracking with ARToolKitPlus.
ARToolKit::TrackerMultiMarker provides all methods to access ARToolKit for multi marker tracking without needing to mess around with it directly.
Definition at line 58 of file TrackerMultiMarker.h.
virtual ARToolKitPlus::TrackerMultiMarker::~TrackerMultiMarker | ( | ) | [inline, virtual] |
Definition at line 61 of file TrackerMultiMarker.h.
virtual int ARToolKitPlus::TrackerMultiMarker::calc | ( | const unsigned char * | nImage | ) | [pure virtual] |
calculates the transformation matrix
pass the image as RGBX (32-bits) in 320x240 pixels.
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
virtual void ARToolKitPlus::TrackerMultiMarker::getARMatrix | ( | ARFloat | nMatrix[3][4] | ) | const [pure virtual] |
Provides access to ARToolKit' internal version of the transformation matrix.
This method is primarily for compatibility issues with code previously using ARToolKit rather than ARToolKitPlus. This is the original transformation matrix ARToolKit calculates rather than the OpenGL style version of this matrix that can be retrieved via getModelViewMatrix().
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
virtual const ARMarkerInfo& ARToolKitPlus::TrackerMultiMarker::getDetectedMarker | ( | int | nWhich | ) | const [pure virtual] |
Returns the ARMarkerInfo object for a found marker.
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
virtual void ARToolKitPlus::TrackerMultiMarker::getDetectedMarkers | ( | int *& | nMarkerIDs | ) | [pure virtual] |
Returns array of detected marker IDs.
Only access the first getNumDetectedMarkers() markers
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
virtual const ARMultiMarkerInfoT* ARToolKitPlus::TrackerMultiMarker::getMultiMarkerConfig | ( | ) | const [pure virtual] |
Returns the loaded ARMultiMarkerInfoT object.
If loading the multi-marker config file failed then this method returns NULL.
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
virtual int ARToolKitPlus::TrackerMultiMarker::getNumDetectedMarkers | ( | ) | const [pure virtual] |
Returns the number of detected markers used for multi-marker tracking.
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
virtual bool ARToolKitPlus::TrackerMultiMarker::init | ( | const char * | nCamParamFile, |
const char * | nMultiFile, | ||
ARFloat | nNearClip, | ||
ARFloat | nFarClip, | ||
ARToolKitPlus::Logger * | nLogger = NULL |
||
) | [pure virtual] |
initializes ARToolKit initializes TrackerSingleMarker nCamParamFile is the name of the camera parameter file nNearClip & nFarClip are near and far clipping values for the OpenGL projection matrix nLogger is an instance which implements the ARToolKit::Logger interface
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
virtual bool ARToolKitPlus::TrackerMultiMarker::init | ( | Camera * | camerae, |
const char * | nMultiFile, | ||
ARFloat | nNearClip, | ||
ARFloat | nFarClip, | ||
ARToolKitPlus::Logger * | nLogger = NULL |
||
) | [pure virtual] |
virtual void ARToolKitPlus::TrackerMultiMarker::setUseDetectLite | ( | bool | nEnable | ) | [pure virtual] |
Enables usage of arDetectMarkerLite. Otherwise arDetectMarker is used.
In general arDetectMarker is more powerful since it keeps history about markers. In some cases such as very low camera refresh rates it is advantegous to change this. Using the non-lite version treats each image independent.
Implemented in ARToolKitPlus::TrackerMultiMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.