Functions
arGetTransMatCont.c File Reference
#include <AR/ar.h>
Include dependency graph for lib/SRC/AR/arGetTransMatCont.c:

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])

Function Documentation

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).

Parameters:
marker_infothe 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_convthe previous transformation matrix obtain.
centerthe 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.
widththe size of the marker (in mm).
convthe transformation matrix from the marker coordinates to camera coordinate frame, that is the relative position of real camera to the real marker
Returns:
always 0.

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:00