Functions |
int | arGetLine (int x_coord[], int y_coord[], int coord_num, int vertex[], double line[4][3], double v[4][2]) |
| estimate a line from a list of point.
|
static int | arGetLine2 (int x_coord[], int y_coord[], int coord_num, int vertex[], double line[4][3], double v[4][2], double *dist_factor) |
ARUint32 | arGetVersion (char **versionStringRef) |
| Get the ARToolKit version information in numberic and string format.
|
int | arInitCparam (ARParam *param) |
| initialize camera parameters.
|
int | arsGetLine (int x_coord[], int y_coord[], int coord_num, int vertex[], double line[4][3], double v[4][2], int LorR) |
int | arsInitCparam (ARSParam *sparam) |
int | arUtilMat2QuatPos (double m[3][4], double q[4], double p[3]) |
| extract a quaternion/position of matrix.
|
int | arUtilMatInv (double s[3][4], double d[3][4]) |
| Inverse a non-square matrix.
|
int | arUtilMatMul (double s1[3][4], double s2[3][4], double d[3][4]) |
| Multiplication of two matrix.
|
int | arUtilQuatPos2Mat (double q[4], double p[3], double m[3][4]) |
| create a matrix with a quaternion/position.
|
void | arUtilSleep (int msec) |
| sleep the actual thread.
|
double | arUtilTimer (void) |
| get the time with the ARToolkit timer.
|
void | arUtilTimerReset (void) |
| reset the internal timer of ARToolkit.
|
Variables |
int | arDebug = 0 |
| activate artoolkit debug mode
|
int | arFittingMode = DEFAULT_FITTING_MODE |
| fitting display mode use by ARToolkit.
|
ARUint8 * | arImage = NULL |
| internal image
|
ARUint8 * | arImageL = NULL |
int | arImageProcMode = DEFAULT_IMAGE_PROC_MODE |
| define the image size mode for marker detection.
|
ARUint8 * | arImageR = NULL |
int | arImXsize |
| internal image size in width.
|
int | arImYsize |
| internal image size in heigth
|
int | arMatchingPCAMode = DEFAULT_MATCHING_PCA_MODE |
| XXXBK.
|
ARParam | arParam |
| internal intrinsic camera parameter
|
double | arsMatR2L [3][4] |
ARSParam | arsParam |
int | arTemplateMatchingMode = DEFAULT_TEMPLATE_MATCHING_MODE |
| XXXBK.
|
static int | sms |
static int | ss |
ARUint32 arGetVersion |
( |
char ** |
versionStringRef |
) |
|
Get the ARToolKit version information in numberic and string format.
As of version 2.72, ARToolKit now allows querying of the version number of the toolkit available at runtime. It is highly recommended that any calling program that depends on features in a certain ARToolKit version, check at runtime that it is linked to a version of ARToolKit that can supply those features. It is NOT sufficient to check the ARToolKit SDK header versions, since with ARToolKit implemented in dynamically-loaded libraries, there is no guarantee that the version of ARToolKit installed on the machine at run-time will as recent as the version of the ARToolKit SDK which the host program was compiled against. The version information is reported in binary-coded decimal format, and optionally in an ASCII string. See the config.h header for more discussion of the definition of major, minor, tiny and build version numbers.
- Parameters:
-
| versionStringRef | If non-NULL, the location pointed to will be filled with a pointer to a string containing the version information. Fields in the version string are separated by spaces. As of version 2.72.0, there is only one field implemented, and this field contains the major, minor and tiny version numbers in dotted-decimal format. The string is guaranteed to contain at least this field in all future versions of the toolkit. Later versions of the toolkit may add other fields to this string to report other types of version information. The storage for the string is malloc'ed inside the function. The caller is responsible for free'ing the string. |
- Returns:
- Returns the full version number of the ARToolKit in binary coded decimal (BCD) format. BCD format allows simple tests of version number in the caller e.g. if ((arGetVersion(NULL) >> 16) > 0x0272) printf("This release is later than 2.72\n"); The major version number is encoded in the most-significant byte (bits 31-24), the minor version number in the second-most-significant byte (bits 23-16), the tiny version number in the third-most-significant byte (bits 15-8), and the build version number in the least-significant byte (bits 7-0).
Definition at line 40 of file arUtil.c.
int arInitCparam |
( |
ARParam * |
param |
) |
|
initialize camera parameters.
set the camera parameters specified in the camera parameters structure *param to static memory in the AR library. These camera parameters are typically read from a data file at program startup. In the video-see through AR applications, the default camera parameters are sufficient, no camera calibration is needed.
- Parameters:
-
| param | the camera parameter structure |
- Returns:
- always 0
Definition at line 66 of file arUtil.c.