![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
#include <ARX/AR/ar.h>#include <stdio.h>#include <stdlib.h>#include <math.h>#include <ARX/AR2/tracking.h>#include <ARX/AR2/config.h>#include <ARX/AR2/template.h>Macros | |
| #define | USE_SEARCH1 1 |
| #define | USE_SEARCH2 1 |
| #define | USE_SEARCH3 1 |
| #define | SKIP_INTERVAL 3 |
| #define | KEEP_NUM 3 |
Functions | |
| int | ar2GetBestMatching (ARUint8 *img, ARUint8 *mfImage, int xsize, int ysize, AR_PIXEL_FORMAT pixFormat, AR2TemplateT *mtemp, int rx, int ry, int search[3][2], int *bx, int *by, float *val) |
| Get best match for a candidate feature template. More... | |
| #define KEEP_NUM 3 |
| #define SKIP_INTERVAL 3 |
| #define USE_SEARCH1 1 |
| #define USE_SEARCH2 1 |
| #define USE_SEARCH3 1 |
| int ar2GetBestMatching | ( | ARUint8 * | img, |
| ARUint8 * | mfImage, | ||
| int | xsize, | ||
| int | ysize, | ||
| AR_PIXEL_FORMAT | pixFormat, | ||
| AR2TemplateT * | mtemp, | ||
| int | rx, | ||
| int | ry, | ||
| int | search[3][2], | ||
| int * | bx, | ||
| int * | by, | ||
| float * | val | ||
| ) |
Get best match for a candidate feature template.
| img | Incoming image to match against. |
| mfImage | Buffer same size as img, to provide working memory for status of matched features. |
| xsize | Horizontal size of img and mfImage. |
| ysize | Vertical size of img and mfImage. |
| pixFormat | Pixel format of img. |
| mtemp | Template undergoing matching. |
| rx | search radius in x dimension. |
| ry | search radius in y dimension. |
| search | screen coordinates (second dimension is x and y) for up to three previous positions of this feature. |
| bx | On return, x position of best candidate. |
| by | On return, y position of best candidate. |
| val | On return, the quality of the match of the best candidate. |
1.9.5