Public Member Functions
ARToolKitPlus::TrackerMultiMarker Class Reference

Defines a simple interface for multi-marker tracking with ARToolKitPlus. More...

#include <TrackerMultiMarker.h>

Inheritance diagram for ARToolKitPlus::TrackerMultiMarker:
Inheritance graph
[legend]

List of all members.

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 ARMarkerInfogetDetectedMarker (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 ARMultiMarkerInfoTgetMultiMarkerConfig () 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 ()

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 61 of file TrackerMultiMarker.h.


Member Function Documentation

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]
virtual void ARToolKitPlus::TrackerMultiMarker::getDetectedMarkers ( int *&  nMarkerIDs) [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]
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 >.


The documentation for this class was generated from the following file:


v4r_artoolkitplus
Author(s): Markus Bader
autogenerated on Wed Aug 26 2015 16:41:53