Defines a simple interface for multi-marker tracking with ARToolKitPlus. More...
#include <TrackerMultiMarker.h>
Public Member Functions | |
virtual bool | init (const char *nCamParamFile, const char *nMultiFile, ARFloat nNearClip, ARFloat nFarClip, ARToolKitPlus::Logger *nLogger=NULL)=0 |
virtual int | calc (const unsigned char *nImage)=0 |
calculates the transformation matrix | |
virtual int | getNumDetectedMarkers () const =0 |
Returns the number of detected markers used for multi-marker tracking. | |
virtual void | setUseDetectLite (bool nEnable)=0 |
Enables usage of arDetectMarkerLite. Otherwise arDetectMarker is used. | |
virtual void | getDetectedMarkers (int *&nMarkerIDs)=0 |
Returns array of detected marker IDs. | |
virtual const ARMarkerInfo & | getDetectedMarker (int nWhich) const =0 |
Returns the ARMarkerInfo object for a found marker. | |
virtual const ARMultiMarkerInfoT * | getMultiMarkerConfig () const =0 |
Returns the loaded ARMultiMarkerInfoT object. | |
virtual void | getARMatrix (ARFloat nMatrix[3][4]) const =0 |
Provides access to ARToolKit' internal version of the transformation matrix. |
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.
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.
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().
virtual void ARToolKitPlus::TrackerMultiMarker::getDetectedMarkers | ( | int *& | nMarkerIDs | ) | [pure virtual] |
Returns array of detected marker IDs.
Only access the first getNumDetectedMarkers() markers
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.
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
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.