41 #ifndef __ARTOOLKITPLUS_TRACKERMULTIMARKERIMPL_HEADERFILE__ 42 #define __ARTOOLKITPLUS_TRACKERMULTIMARKERIMPL_HEADERFILE__ 50 #define ARMM_TEMPL_FUNC template <int __PATTERN_SIZE_X, int __PATTERN_SIZE_Y, int __PATTERN_SAMPLE_NUM, int __MAX_LOAD_PATTERNS, int __MAX_IMAGE_PATTERNS> 51 #define ARMM_TEMPL_TRACKER TrackerMultiMarkerImpl<__PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS> 68 template <
int __PATTERN_SIZE_X,
int __PATTERN_SIZE_Y,
int __PATTERN_SAMPLE_NUM,
int __MAX_LOAD_PATTERNS=32,
int __MAX_IMAGE_PATTERNS=32>
82 virtual bool init(
const char* nCamParamFile,
const char* nMultiFile,
ARFloat nNearClip,
ARFloat nFarClip,
91 virtual int calc(
const unsigned char* nImage);
127 bool loadCameraFile(
const char* nCamParamFile,
ARFloat nNearClip,
ARFloat nFarClip) {
return AR_TEMPL_TRACKER::loadCameraFile(nCamParamFile, nNearClip, nFarClip); }
137 int arLoadPatt(
char *filename) {
return AR_TEMPL_TRACKER::arLoadPatt(filename); }
138 int arFreePatt(
int patno) {
return AR_TEMPL_TRACKER::arFreePatt(patno); }
143 void activateVignettingCompensation(
bool nEnable,
int nCorners=0,
int nLeftRight=0,
int nTopBottom=0) { AR_TEMPL_TRACKER::activateVignettingCompensation(nEnable, nCorners, nLeftRight, nTopBottom); }
144 void changeCameraSize(
int nWidth,
int nHeight) { AR_TEMPL_TRACKER::changeCameraSize(nWidth, nHeight); }
148 void setThreshold(
int nValue) { AR_TEMPL_TRACKER::setThreshold(nValue); }
168 static void*
operator new(
size_t size);
170 static void operator delete(
void *rawMemory);
188 #include "../src/TrackerMultiMarkerImpl.cxx" 191 #endif //__ARTOOLKITPLUS_TRACKERMULTIMARKERIMPL_HEADERFILE__
static void cleanup(void)
ARFileGrabber camera("dump_%02d.raw", CAM_W, CAM_H, 4)