TrackerSingleMarkerImpl implements the TrackerSingleMarker interface. More...
#include <TrackerSingleMarkerImpl.h>
Public Member Functions | |
void | activateAutoThreshold (bool nEnable) |
Turns automatic threshold calculation on/off. More... | |
void | activateBinaryMarker (int nThreshold) |
activates binary markers More... | |
void | activateVignettingCompensation (bool nEnable, int nCorners=0, int nLeftRight=0, int nTopBottom=0) |
activates the complensation of brightness falloff in the corners of the camera image More... | |
virtual int | addPattern (const char *nFileName) |
adds a pattern to ARToolKit More... | |
int | arDetectMarker (ARUint8 *dataPtr, int thresh, ARMarkerInfo **marker_info, int *marker_num) |
marker detection using tracking history More... | |
int | arDetectMarkerLite (ARUint8 *dataPtr, int thresh, ARMarkerInfo **marker_info, int *marker_num) |
marker detection without using tracking history More... | |
int | arFreePatt (int patno) |
frees a pattern from memory More... | |
ARFloat | arGetTransMat (ARMarkerInfo *marker_info, ARFloat center[2], ARFloat width, ARFloat conv[3][4]) |
calculates the transformation matrix between camera and the given marker More... | |
ARFloat | arGetTransMatCont (ARMarkerInfo *marker_info, ARFloat prev_conv[3][4], ARFloat center[2], ARFloat width, ARFloat conv[3][4]) |
int | arLoadPatt (char *filename) |
loads a pattern from a file More... | |
int | arMultiFreeConfig (ARMultiMarkerInfoT *config) |
frees a multimarker config from memory More... | |
ARFloat | arMultiGetTransMat (ARMarkerInfo *marker_info, int marker_num, ARMultiMarkerInfoT *config) |
calculates the transformation matrix between camera and the given multi-marker config More... | |
ARMultiMarkerInfoT * | arMultiReadConfigFile (const char *filename) |
reads a standard artoolkit multimarker config file More... | |
virtual int | calc (const unsigned char *nImage, int nPattern=-1, bool nUpdateMatrix=true, ARMarkerInfo **nMarker_info=NULL, int *nNumMarkers=NULL) |
calculates the transformation matrix More... | |
ARFloat | calcOpenGLMatrixFromMarker (ARMarkerInfo *nMarkerInfo, ARFloat nPatternCenter[2], ARFloat nPatternSize, ARFloat *nOpenGLMatrix) |
Calculates the OpenGL transformation matrix for a specific marker info. More... | |
void | changeCameraSize (int nWidth, int nHeight) |
Changes the resolution of the camera after the camerafile was already loaded. More... | |
void | cleanup () |
does final clean up (memory deallocation) More... | |
ARFloat | executeMultiMarkerPoseEstimator (ARMarkerInfo *marker_info, int marker_num, ARMultiMarkerInfoT *config) |
Calls the pose estimator set with setPoseEstimator() for multi marker tracking. More... | |
ARFloat | executeSingleMarkerPoseEstimator (ARMarkerInfo *marker_info, ARFloat center[2], ARFloat width, ARFloat conv[3][4]) |
Calls the pose estimator set with setPoseEstimator() for single marker tracking. More... | |
virtual void | getARMatrix (ARFloat nMatrix[3][4]) const |
Provides access to ARToolKit' patt_trans matrix. More... | |
int | getBitsPerPixel () const |
Returns the numbber of bits per pixel for the compiled-in pixel format. More... | |
Camera * | getCamera () |
Returns the current camera. More... | |
virtual ARFloat | getConfidence () const |
Returns the confidence value of the currently best detected marker. More... | |
const char * | getDescription () |
Returns a short description with compiled-in settings. More... | |
const ARFloat * | getModelViewMatrix () const |
Returns an opengl-style modelview transformation matrix. More... | |
int | getNumLoadablePatterns () const |
Returns the maximum number of patterns that can be loaded. More... | |
PIXEL_FORMAT | getPixelFormat () const |
Returns the compiled-in pixel format. More... | |
Profiler & | getProfiler () |
Returns the internal profiler object. More... | |
const ARFloat * | getProjectionMatrix () const |
Returns an opengl-style projection transformation matrix. More... | |
int | getThreshold () const |
Returns the current threshold value. More... | |
virtual bool | init (const char *nCamParamFile, ARFloat nNearClip, ARFloat nFarClip, ARToolKitPlus::Logger *nLogger=NULL) |
initializes TrackerSingleMarker More... | |
virtual bool | init (Camera *camera, ARFloat nNearClip, ARFloat nFarClip, ARToolKitPlus::Logger *nLogger=NULL) |
bool | isAutoThresholdActivated () const |
Returns true if automatic threshold detection is enabled. More... | |
bool | loadCameraFile (const char *nCamParamFile, ARFloat nNearClip, ARFloat nFarClip) |
Loads a camera calibration file and stores data internally. More... | |
ARFloat | rppGetTransMat (ARMarkerInfo *marker_info, ARFloat center[2], ARFloat width, ARFloat conv[3][4]) |
ARFloat | rppMultiGetTransMat (ARMarkerInfo *marker_info, int marker_num, ARMultiMarkerInfoT *config) |
void | setBorderWidth (ARFloat nFraction) |
Sets a new relative border width. ARToolKit's default value is 0.25. More... | |
void | setCamera (Camera *nCamera) |
Sets a new camera without specifying new near and far clip values. More... | |
void | setCamera (Camera *nCamera, ARFloat nNearClip, ARFloat nFarClip) |
Sets a new camera including specifying new near and far clip values. More... | |
void | setImageProcessingMode (IMAGE_PROC_MODE nMode) |
Sets an image processing mode (half or full resolution) More... | |
void | setLoadUndistLUT (bool nSet) |
Set to true to try loading camera undistortion table from a cache file. More... | |
void | setLogger (ARToolKitPlus::Logger *nLogger) |
sets an instance which implements the ARToolKit::Logger interface More... | |
void | setMarkerMode (MARKER_MODE nMarkerMode) |
Activate the usage of id-based markers rather than template based markers. More... | |
void | setNumAutoThresholdRetries (int nNumRetries) |
Sets the number of times the threshold is randomized in case no marker was visible (Minimum: 1, Default: 2) More... | |
virtual void | setPatternWidth (ARFloat nWidth) |
Sets the width and height of the patterns. More... | |
bool | setPixelFormat (PIXEL_FORMAT nFormat) |
Sets the pixel format of the camera image. More... | |
bool | setPoseEstimator (POSE_ESTIMATOR nMethod) |
Changes the Pose Estimation Algorithm. More... | |
void | setThreshold (int nValue) |
Sets the threshold value that is used for black/white conversion. More... | |
void | setUndistortionMode (UNDIST_MODE nMode) |
Changes the undistortion mode. More... | |
TrackerSingleMarkerImpl (int nWidth=DEF_CAMWIDTH, int nHeight=DEF_CAMHEIGHT) | |
~TrackerSingleMarkerImpl () | |
Public Member Functions inherited from ARToolKitPlus::TrackerSingleMarker | |
virtual | ~TrackerSingleMarker () |
Public Member Functions inherited from ARToolKitPlus::Tracker | |
virtual | ~Tracker () |
Static Public Member Functions | |
static size_t | getMemoryRequirements () |
static void | operator delete (void *rawMemory) |
static void * | operator new (size_t size) |
Additional Inherited Members | |
Protected Types inherited from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS > | |
typedef int(TrackerImpl::* | ARPARAM_UNDIST_FUNC) (Camera *pCam, ARFloat ox, ARFloat oy, ARFloat *ix, ARFloat *iy) |
typedef ARFloat(TrackerImpl::* | MULTI_POSE_ESTIMATOR_FUNC) (ARMarkerInfo *marker_info, int marker_num, ARMultiMarkerInfoT *config) |
typedef ARFloat(TrackerImpl::* | POSE_ESTIMATOR_FUNC) (ARMarkerInfo *marker_info, ARFloat center[2], ARFloat width, ARFloat conv[3][4]) |
enum | { PATTERN_WIDTH = __PATTERN_SIZE_X, PATTERN_HEIGHT = __PATTERN_SIZE_Y, PATTERN_SAMPLE_NUM = __PATTERN_SAMPLE_NUM, MAX_LOAD_PATTERNS = __MAX_LOAD_PATTERNS, MAX_IMAGE_PATTERNS = __MAX_IMAGE_PATTERNS, WORK_SIZE = 1024*MAX_IMAGE_PATTERNS, LUM_TABLE_SIZE = 0xffff + 1 } |
Protected Member Functions inherited from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS > | |
int | arActivatePatt (int patno) |
int | arDeactivatePatt (int patno) |
ARMarkerInfo2 * | arDetectMarker2 (ARInt16 *limage, int label_num, int *label_ref, int *warea, ARFloat *wpos, int *wclip, int area_max, int area_min, ARFloat factor, int *marker_num) |
int | arGetAngle (ARFloat rot[3][3], ARFloat *wa, ARFloat *wb, ARFloat *wc) |
int | arGetCode (ARUint8 *image, int *x_coord, int *y_coord, int *vertex, int *code, int *dir, ARFloat *cf, int thresh) |
int | arGetContour (ARInt16 *limage, int *label_ref, int label, int clip[4], ARMarkerInfo2 *marker_infoTWO) |
int | arGetInitRot (ARMarkerInfo *marker_info, ARFloat cpara[3][4], ARFloat rot[3][3]) |
int | arGetLine (int x_coord[], int y_coord[], int coord_num, int vertex[], ARFloat line[4][3], ARFloat v[4][2]) |
int | arGetLine2 (int x_coord[], int y_coord[], int coord_num, int vertex[], ARFloat line[4][3], ARFloat v[4][2], Camera *pCam) |
ARMarkerInfo * | arGetMarkerInfo (ARUint8 *image, ARMarkerInfo2 *marker_info2, int *marker_num, int thresh) |
int | arGetNewMatrix (ARFloat a, ARFloat b, ARFloat c, ARFloat trans[3], ARFloat trans2[3][4], ARFloat cpara[3][4], ARFloat ret[3][4]) |
int | arGetPatt (ARUint8 *image, int *x_coord, int *y_coord, int *vertex, ARUint8 ext_pat[PATTERN_HEIGHT][PATTERN_WIDTH][3]) |
int | arGetRot (ARFloat a, ARFloat b, ARFloat c, ARFloat rot[3][3]) |
ARFloat | arGetTransMat2 (ARFloat rot[3][3], ARFloat ppos2d[][2], ARFloat ppos3d[][2], int num, ARFloat conv[3][4]) |
ARFloat | arGetTransMat4 (ARFloat rot[3][3], ARFloat ppos2d[][2], ARFloat ppos3d[][3], int num, ARFloat conv[3][4]) |
ARFloat | arGetTransMat5 (ARFloat rot[3][3], ARFloat ppos2d[][2], ARFloat ppos3d[][3], int num, ARFloat conv[3][4], Camera *pCam) |
ARFloat | arGetTransMatCont2 (ARMarkerInfo *marker_info, ARFloat center[2], ARFloat width, ARFloat conv[3][4]) |
ARFloat | arGetTransMatContSub (ARMarkerInfo *marker_info, ARFloat prev_conv[3][4], ARFloat center[2], ARFloat width, ARFloat conv[3][4]) |
ARFloat | arGetTransMatSub (ARFloat rot[3][3], ARFloat ppos2d[][2], ARFloat pos3d[][3], int num, ARFloat conv[3][4], Camera *pCam) |
int | arInitCparam (Camera *pCam) |
ARInt16 * | arLabeling (ARUint8 *image, int thresh, int *label_num, int **area, ARFloat **pos, int **clip, int **label_ref) |
ARInt16 * | arLabeling_ABGR (ARUint8 *image, int thresh, int *label_num, int **area, ARFloat **pos, int **clip, int **label_ref) |
ARInt16 * | arLabeling_BGR (ARUint8 *image, int thresh, int *label_num, int **area, ARFloat **pos, int **clip, int **label_ref) |
ARInt16 * | arLabeling_LUM (ARUint8 *image, int thresh, int *label_num, int **area, ARFloat **pos, int **clip, int **label_ref) |
ARInt16 * | arLabeling_RGB (ARUint8 *image, int thresh, int *label_num, int **area, ARFloat **pos, int **clip, int **label_ref) |
ARInt16 * | arLabeling_RGB565 (ARUint8 *image, int thresh, int *label_num, int **area, ARFloat **pos, int **clip, int **label_ref) |
ARFloat | arModifyMatrix (ARFloat rot[3][3], ARFloat trans[3], ARFloat cpara[3][4], ARFloat vertex[][3], ARFloat pos2d[][2], int num) |
ARFloat | arModifyMatrix2 (ARFloat rot[3][3], ARFloat trans[3], ARFloat cpara[3][4], ARFloat vertex[][3], ARFloat pos2d[][2], int num) |
int | arMultiActivate (ARMultiMarkerInfoT *config) |
int | arMultiDeactivate (ARMultiMarkerInfoT *config) |
int | arParamIdeal2Observ_std (Camera *pCam, ARFloat ix, ARFloat iy, ARFloat *ox, ARFloat *oy) |
int | arParamObserv2Ideal_LUT (Camera *pCam, ARFloat ox, ARFloat oy, ARFloat *ix, ARFloat *iy) |
int | arParamObserv2Ideal_none (Camera *pCam, ARFloat ox, ARFloat oy, ARFloat *ix, ARFloat *iy) |
int | arParamObserv2Ideal_std (Camera *pCam, ARFloat ox, ARFloat oy, ARFloat *ix, ARFloat *iy) |
int | bitfield_check_BCH (ARUint8 *data, int *code, int *dir, ARFloat *cf, int thresh) |
int | bitfield_check_simple (ARUint8 *data, int *code, int *dir, ARFloat *cf, int thresh) |
void | buildUndistO2ITable (Camera *pCam) |
int | check_square (int area, ARMarkerInfo2 *marker_infoTWO, ARFloat factor) |
void | checkImageBuffer () |
bool | checkPixelFormat () |
void | checkRGB565LUT () |
void | convertTransformationMatrixToOpenGLStyle (ARFloat para[3][4], ARFloat gl_para[16]) |
int | downsamplePattern (ARUint8 *data, unsigned char *imgPtr) |
void | gen_evec (void) |
int | pattern_match (ARUint8 *data, int *code, int *dir, ARFloat *cf) |
int | verify_markers (ARMarkerInfo *marker_info, int marker_num, ARMultiMarkerInfoT *config) |
ARFloat | arGetTransMat3 (ARFloat rot[3][3], ARFloat ppos2d[][2], ARFloat ppos3d[][2], int num, ARFloat conv[3][4], Camera *pCam) |
void | setFittingMode (int nWhich) |
TrackerImpl () | |
virtual | ~TrackerImpl () |
Static Protected Member Functions inherited from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS > | |
static int | arMatrixPCA (ARMat *input, ARMat *evec, ARVec *ev, ARVec *mean) |
static int | arMatrixPCA2 (ARMat *input, ARMat *evec, ARVec *ev) |
static int | arParamDecomp (ARParam *source, ARParam *icpara, ARFloat trans[3][4]) |
static int | arParamDecompMat (ARFloat source[3][4], ARFloat cpara[3][4], ARFloat trans[3][4]) |
static int | arParamLoadDouble (char *filename, int num, ARParamDouble *param,...) |
static int | arParamSaveDouble (char *filename, int num, ARParamDouble *param,...) |
static int | arUtilMatInv (ARFloat s[3][4], ARFloat d[3][4]) |
static int | arUtilMatMul (ARFloat s1[3][4], ARFloat s2[3][4], ARFloat d[3][4]) |
static bool | convertProjectionMatrixToOpenGLStyle (ARParam *param, ARFloat gnear, ARFloat gfar, ARFloat m[16]) |
static bool | convertProjectionMatrixToOpenGLStyle2 (ARFloat cparam[3][4], int width, int height, ARFloat gnear, ARFloat gfar, ARFloat m[16]) |
static size_t | getDynamicMemoryRequirements () |
static int | arParamIdeal2Observ (Camera *pCam, ARFloat ix, ARFloat iy, ARFloat *ox, ARFloat *oy) |
static int | arParamObserv2Ideal (Camera *pCam, ARFloat ox, ARFloat oy, ARFloat *ix, ARFloat *iy) |
static bool | calcCameraMatrix (const char *nCamParamFile, int nWidth, int nHeight, ARFloat nNear, ARFloat nFar, ARFloat *nMatrix) |
Calculates the camera matrix from an ARToolKit camera file. More... | |
static void | operator delete (void *rawMemory) |
static void * | operator new (size_t size) |
TrackerSingleMarkerImpl implements the TrackerSingleMarker interface.
__PATTERN_SIZE_X describes the pattern image width (16 by default). __PATTERN_SIZE_Y describes the pattern image height (16 by default). __PATTERN_SAMPLE_NUM describes the maximum resolution at which a pattern is sampled from the camera image (64 by default, must a a multiple of __PATTERN_SIZE_X and __PATTERN_SIZE_Y). __MAX_LOAD_PATTERNS describes the maximum number of pattern files that can be loaded. __MAX_IMAGE_PATTERNS describes the maximum number of patterns that can be analyzed in a camera image. Reduce __MAX_LOAD_PATTERNS and __MAX_IMAGE_PATTERNS to reduce memory footprint.
Definition at line 71 of file TrackerSingleMarkerImpl.h.
ARToolKitPlus::TrackerSingleMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >::TrackerSingleMarkerImpl | ( | int | nWidth = DEF_CAMWIDTH , |
int | nHeight = DEF_CAMHEIGHT |
||
) |
ARToolKitPlus::TrackerSingleMarkerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >::~TrackerSingleMarkerImpl | ( | ) |
|
inlinevirtual |
Turns automatic threshold calculation on/off.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 146 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
activates binary markers
markers are converted to pure black/white during loading
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 137 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
activates the complensation of brightness falloff in the corners of the camera image
some cameras have a falloff in brightness at the border of the image, which creates problems with thresholding the image. use this function to set a (linear) adapted threshold value. the threshold value will stay exactly the same at the center but will deviate near to the border. all values specify a difference, not absolute values! nCorners define the falloff a all four corners. nLeftRight defines the falloff at the half y-position at the left and right side of the image. nTopBottom defines the falloff at the half x-position at the top and bottom side of the image. all values between these 9 points (center, 4 corners, left, right, top, bottom) will be interpolated.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 139 of file TrackerSingleMarkerImpl.h.
|
virtual |
adds a pattern to ARToolKit
pass the patterns filename
Implements ARToolKitPlus::TrackerSingleMarker.
|
inlinevirtual |
marker detection using tracking history
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 126 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
marker detection without using tracking history
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 127 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
frees a pattern from memory
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 134 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
calculates the transformation matrix between camera and the given marker
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 129 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 130 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
loads a pattern from a file
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 133 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
frees a multimarker config from memory
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 135 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
calculates the transformation matrix between camera and the given multi-marker config
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 128 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
reads a standard artoolkit multimarker config file
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 136 of file TrackerSingleMarkerImpl.h.
|
virtual |
calculates the transformation matrix
pass the image as RGBX (32-bits) in 320x240 pixels. if nPattern is not -1 then only this pattern is accepted otherwise any found pattern will be used.
Implements ARToolKitPlus::TrackerSingleMarker.
|
inlinevirtual |
Calculates the OpenGL transformation matrix for a specific marker info.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 160 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Changes the resolution of the camera after the camerafile was already loaded.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 140 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
does final clean up (memory deallocation)
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 121 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Calls the pose estimator set with setPoseEstimator() for multi marker tracking.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 162 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Calls the pose estimator set with setPoseEstimator() for single marker tracking.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 161 of file TrackerSingleMarkerImpl.h.
|
virtual |
Provides access to ARToolKit' patt_trans matrix.
This method is primarily for compatibility issues with code previously using ARToolKit rather than ARToolKitPlus. patt_trans is the original transformation matrix ARToolKit calculates rather than the OpenGL style version of this matrix that can be retrieved via getModelViewMatrix().
Implements ARToolKitPlus::TrackerSingleMarker.
|
inlinevirtual |
Returns the numbber of bits per pixel for the compiled-in pixel format.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 153 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns the current camera.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 157 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns the confidence value of the currently best detected marker.
Implements ARToolKitPlus::TrackerSingleMarker.
Definition at line 113 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns a short description with compiled-in settings.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 151 of file TrackerSingleMarkerImpl.h.
|
static |
|
inlinevirtual |
Returns an opengl-style modelview transformation matrix.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 149 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns the maximum number of patterns that can be loaded.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 154 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns the compiled-in pixel format.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 152 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns the internal profiler object.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 156 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns an opengl-style projection transformation matrix.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 150 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Returns the current threshold value.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 145 of file TrackerSingleMarkerImpl.h.
|
virtual |
initializes TrackerSingleMarker
nCamParamFile is the name of the camera parameter file nLogger is an instance which implements the ARToolKit::Logger interface
Implements ARToolKitPlus::TrackerSingleMarker.
|
virtual |
Implements ARToolKitPlus::TrackerSingleMarker.
|
inlinevirtual |
Returns true if automatic threshold detection is enabled.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 147 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Loads a camera calibration file and stores data internally.
To prevent memory leaks, this method internally deletes an existing camera. If you want to use more than one camera, retrieve the existing camera using getCamera() and call setCamera(NULL); before loading another camera file. On destruction, ARToolKitPlus will only destroy the currently set camera. All other cameras have to be destroyed manually.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 123 of file TrackerSingleMarkerImpl.h.
|
static |
|
static |
|
inlinevirtual |
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 132 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 131 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets a new relative border width. ARToolKit's default value is 0.25.
Take caution that the markers need of course really have thiner borders. Values other than 0.25 have not been tested for regular pattern-based matching, but only for id-encoded markers. It might be that the pattern creation process needs to be updated too.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 143 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets a new camera without specifying new near and far clip values.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 158 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets a new camera including specifying new near and far clip values.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 159 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets an image processing mode (half or full resolution)
Half resolution is faster but less accurate. When using full resolution smaller markers will be detected at a higher accuracy (or even detected at all).
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 155 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Set to true to try loading camera undistortion table from a cache file.
On slow platforms (e.g. Smartphone) creation of the undistortion lookup-table can take quite a while. Consequently caching will speedup the start phase. If set to true and no cache file could be found a new one will be created. The cache file will get the same name as the camera file with the added extension '.LUT'
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 124 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
sets an instance which implements the ARToolKit::Logger interface
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 125 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Activate the usage of id-based markers rather than template based markers.
id-based markers directly encode the marker id in the image. see arBitFieldPattern.h for more information
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 138 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets the number of times the threshold is randomized in case no marker was visible (Minimum: 1, Default: 2)
Autothreshold requires a visible marker to estime the optimal thresholding value. If no marker is visible ARToolKitPlus randomizes the thresholding value until a marker is found. This function sets the number of times ARToolKitPlus will randomize the threshold value and research for a marker per calc() invokation until it gives up. A value of 2 means that ARToolKitPlus will analyze the image a second time with an other treshold value if it does not find a marker the first time. Each unsuccessful try uses less processing power than a single full successful position estimation.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 148 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets the width and height of the patterns.
Implements ARToolKitPlus::TrackerSingleMarker.
Definition at line 101 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets the pixel format of the camera image.
Default format is RGB888 (PIXEL_FORMAT_RGB)
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 122 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Changes the Pose Estimation Algorithm.
POSE_ESTIMATOR_ORIGINAL (default): arGetTransMat() POSE_ESTIMATOR_RPP: "Robust Pose Estimation from a Planar Target"
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 142 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Sets the threshold value that is used for black/white conversion.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 144 of file TrackerSingleMarkerImpl.h.
|
inlinevirtual |
Changes the undistortion mode.
Default value is UNDIST_STD which means that artoolkit's standard undistortion method is used.
Reimplemented from ARToolKitPlus::TrackerImpl< __PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS >.
Definition at line 141 of file TrackerSingleMarkerImpl.h.
|
protected |
Definition at line 172 of file TrackerSingleMarkerImpl.h.
|
protected |
Definition at line 174 of file TrackerSingleMarkerImpl.h.
|
protected |
Definition at line 175 of file TrackerSingleMarkerImpl.h.
|
protected |
Definition at line 173 of file TrackerSingleMarkerImpl.h.