![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
#include <stdio.h>
#include <ARX/AR/ar.h>
#include <ARX/KPM/kpm.h>
#include "kpmPrivate.h"
#include "AnnMatch.h"
#include "AnnMatch2.h"
Functions | |
KpmHandle * | kpmCreateHandle (ARParamLT *cparamLT) |
Allocate and initialise essential structures for KPM tracking, using full six degree-of-freedom tracking. More... | |
KpmHandle * | kpmCreateHandleHomography (int xsize, int ysize) |
Allocate and initialise essential structures for KPM tracking, using homography-only tracking. More... | |
KpmHandle * | kpmCreateHandle2 (int xsize, int ysize) |
int | kpmHandleGetXSize (const KpmHandle *kpmHandle) |
int | kpmHandleGetYSize (const KpmHandle *kpmHandle) |
int | kpmSetProcMode (KpmHandle *kpmHandle, KPM_PROC_MODE mode) |
int | kpmGetProcMode (KpmHandle *kpmHandle, KPM_PROC_MODE *mode) |
int | kpmSetDetectedFeatureMax (KpmHandle *kpmHandle, int detectedMaxFeature) |
int | kpmGetDetectedFeatureMax (KpmHandle *kpmHandle, int *detectedMaxFeature) |
int | kpmSetSurfThreadNum (KpmHandle *kpmHandle, int surfThreadNum) |
int | kpmDeleteHandle (KpmHandle **kpmHandle) |
Finalise and dispose of structures for KPM tracking. More... | |
Allocate and initialise essential structures for KPM tracking, using full six degree-of-freedom tracking.
cparamLT | Pointer to an ARParamLT structure holding camera parameters in lookup-table form. The pointer only is copied, and the ARParamLT structure itself is NOT copied, and must remain valid for the lifetime of the KpmHandle. This structure also specifies the size of video frames which will be later supplied to the kpmMatching() function as cparamLT->param.xsize and cparamLT->param.ysize. |
KpmHandle * kpmCreateHandle2 | ( | int | xsize, |
int | ysize | ||
) |
KpmHandle * kpmCreateHandleHomography | ( | int | xsize, |
int | ysize | ||
) |
Allocate and initialise essential structures for KPM tracking, using homography-only tracking.
Homography tracking assumes that the camera has zero lens-distortion, and this does not depend on camera parameters. It is therefore unable to provide correctly calibrated position measurements, but the resulting pose is suitable for visual overlay purposes.
xsize | Width of video frames which will be later supplied to the kpmMatching() function. |
ysize | Height of video frames which will be later supplied to the kpmMatching() function. |
int kpmDeleteHandle | ( | KpmHandle ** | kpmHandle | ) |
Finalise and dispose of structures for KPM tracking.
Once KPM processing has completed, this routine should be called to dispose of memory allocated.
kpmHandle | Pointer to a location which holds a pointer to a KpmHandle structure. On return, the location pointed to will be set to NULL. |
int kpmGetDetectedFeatureMax | ( | KpmHandle * | kpmHandle, |
int * | detectedMaxFeature | ||
) |
int kpmGetProcMode | ( | KpmHandle * | kpmHandle, |
KPM_PROC_MODE * | mode | ||
) |
int kpmHandleGetXSize | ( | const KpmHandle * | kpmHandle | ) |
int kpmHandleGetYSize | ( | const KpmHandle * | kpmHandle | ) |
int kpmSetDetectedFeatureMax | ( | KpmHandle * | kpmHandle, |
int | detectedMaxFeature | ||
) |
int kpmSetProcMode | ( | KpmHandle * | kpmHandle, |
KPM_PROC_MODE | mode | ||
) |
int kpmSetSurfThreadNum | ( | KpmHandle * | kpmHandle, |
int | surfThreadNum | ||
) |