#include <AR/ar.h>
Go to the source code of this file.
Functions | |
double | arGetTransMatCont (ARMarkerInfo *marker_info, double prev_conv[3][4], double center[2], double width, double conv[3][4]) |
compute camera position in function of detected marker with an history function. | |
static double | arGetTransMatContSub (ARMarkerInfo *marker_info, double prev_conv[3][4], double center[2], double width, double conv[3][4]) |
double arGetTransMatCont | ( | ARMarkerInfo * | marker_info, |
double | prev_conv[3][4], | ||
double | center[2], | ||
double | width, | ||
double | conv[3][4] | ||
) |
compute camera position in function of detected marker with an history function.
calculate the transformation between a detected marker and the real camera, i.e. the position and orientation of the camera relative to the tracking mark. Since this routine operate on previous values, the result are more stable (less jittering).
marker_info | the structure containing the parameters for the marker for which the camera position and orientation is to be found relative to. This structure is found using arDetectMarker. |
prev_conv | the previous transformation matrix obtain. |
center | the physical center of the marker. arGetTransMat assumes that the marker is in x-y plane, and z axis is pointing downwards from marker plane. So vertex positions can be represented in 2D coordinates by ignoring the z axis information. The marker vertices are specified in order of clockwise. |
width | the size of the marker (in mm). |
conv | the transformation matrix from the marker coordinates to camera coordinate frame, that is the relative position of real camera to the real marker |
Definition at line 16 of file lib/SRC/AR/arGetTransMatCont.c.
static double arGetTransMatContSub | ( | ARMarkerInfo * | marker_info, |
double | prev_conv[3][4], | ||
double | center[2], | ||
double | width, | ||
double | conv[3][4] | ||
) | [static] |
Definition at line 38 of file lib/SRC/AR/arGetTransMatCont.c.