41 #ifndef __ARTOOLKITPLUS_TRACKERSINGLEMARKERIMPL_HEADERFILE__ 42 #define __ARTOOLKITPLUS_TRACKERSINGLEMARKERIMPL_HEADERFILE__ 52 #define ARSM_TEMPL_FUNC template <int __PATTERN_SIZE_X, int __PATTERN_SIZE_Y, int __PATTERN_SAMPLE_NUM, int __MAX_LOAD_PATTERNS, int __MAX_IMAGE_PATTERNS> 53 #define ARSM_TEMPL_TRACKER TrackerSingleMarkerImpl<__PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS> 70 template <
int __PATTERN_SIZE_X,
int __PATTERN_SIZE_Y,
int __PATTERN_SAMPLE_NUM,
int __MAX_LOAD_PATTERNS=32,
int __MAX_IMAGE_PATTERNS=32>
97 virtual int calc(
const unsigned char* nImage,
int nPattern=-1,
bool nUpdateMatrix=
true,
123 bool loadCameraFile(
const char* nCamParamFile,
ARFloat nNearClip,
ARFloat nFarClip) {
return AR_TEMPL_TRACKER::loadCameraFile(nCamParamFile, nNearClip, nFarClip); }
133 int arLoadPatt(
char *filename) {
return AR_TEMPL_TRACKER::arLoadPatt(filename); }
134 int arFreePatt(
int patno) {
return AR_TEMPL_TRACKER::arFreePatt(patno); }
139 void activateVignettingCompensation(
bool nEnable,
int nCorners=0,
int nLeftRight=0,
int nTopBottom=0) { AR_TEMPL_TRACKER::activateVignettingCompensation(nEnable, nCorners, nLeftRight, nTopBottom); }
140 void changeCameraSize(
int nWidth,
int nHeight) { AR_TEMPL_TRACKER::changeCameraSize(nWidth, nHeight); }
144 void setThreshold(
int nValue) { AR_TEMPL_TRACKER::setThreshold(nValue); }
165 static void*
operator new(
size_t size);
167 static void operator delete(
void *rawMemory);
181 #include "../src/TrackerSingleMarkerImpl.cxx" 184 #endif //__ARTOOLKITPLUS_TRACKERSINGLEMARKERIMPL_HEADERFILE__
static void cleanup(void)
ARFileGrabber camera("dump_%02d.raw", CAM_W, CAM_H, 4)